-
Notifications
You must be signed in to change notification settings - Fork 473
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
[perlcritic] fix some severity 4 issues #1051
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,3 +177,5 @@ sub run { | |
} | ||
} | ||
} | ||
|
||
1; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,3 +111,5 @@ sub get_basic_credentials { | |
|
||
return $isproxy ? () : ($ENV{'http_username'}, $ENV{'http_password'}); | ||
} | ||
|
||
1; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,8 +59,6 @@ sub handle_request | |
} | ||
} | ||
|
||
package main; | ||
|
||
$ENV{PATH} = '/usr/bin:/bin'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer to revert to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cgzones: what do you think? |
||
|
||
# start the server on port 4948 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I am a huge fan of that one as
constant
is a core feature.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Far from knowing anything:
Readonly
seems to be a core library andconst
is a language feature, correct?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core library might be a little stretch. It's from CPAN.
Const is from a core lib.
Nothing is a language feature in term of const-ness.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh - OK - my misunderstanding of a local path.
In this case I would also tend to stick to the core feature set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cgzones: can we stick to
const
or is there a good reason forReadonly
?