Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ep/h2c #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Ep/h2c #17

wants to merge 4 commits into from

Conversation

devzero2000
Copy link

I fixed the perlcritic warnings. To do this I also introduced "use strict; use warnings" and therefore I had to introduce the necessary changes described in the commits

perlcritic --verbose 6 h2c gives the following result:

Variable declared in conditional statement at line 400, near 'my $lib="--libcurl - -x localhost:0 " if($uselibcurl);'.  (Severity: 5)

Fix it.
 perlcritic --verbose 6 h2c gives the following result:

Bareword file handle opened at line 406, near 'open(C, "$curlcmd 2>/dev/null|");'.  (Severity: 5)

Fix it.
perlcritic --verbose 6 h2c gives the following result:

Two-argument "open" used at line 405, near 'open(C, "$curlcmd 2>/dev/null|");'.  (Severity: 5)

Fix it.
 perlcritic --verbose 6 h2c gives the following result:

Code before strictures are enabled at line 5, near 'sub usage {'.  (Severity: 5)

For fix it:

	- Add "use strict; use warnings"

	- Add where necessary the "my" keyword to the lexically scoped variables.

	- Fix also some uninitialized variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant