-
Notifications
You must be signed in to change notification settings - Fork 45
GPA Improvements: 1.15 to 2.02 #79
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
base: master
Are you sure you want to change the base?
Conversation
lib/papertrail/cli.rb
Outdated
| opts.on("--force-color", "Force use of ANSI color characters even on non-tty outputs (off)") do | ||
| options[:force_color] = true | ||
| end | ||
| opts.on("-V", "--version", "Display the version and exit") do |v| |
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.
Here's another unused block argument.
|
Agree with everything, had the same thoughts on all subjects. The global |
| - "**.rb" | ||
|
|
||
| exclude_paths: | ||
| - lib/papertrail/okjson.rb |
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.
Good idea
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.
I usually avoid adding codeclimate.yml (less clutter), but it is needed if we want to exclude the vendored okjson (which pulls the gpa down quite a bit...)
|
I'll give this a run through next week before merging and cutting a release. |

An assortment of small to medium changes to improve code standards:
okjsonfrom Code ClimateOptionsParserblocksconfigfilemethod toCliHelpersto avoid repeating the confusing condition+assignmentif configfile = find_configfilehttp_clientby adding anattempt times, wait, &blockmethod to handle HTTP retries in a single place.CC: #78