forked from prometheus/client_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rubocop as development dependency
Re-introduce rubocop as per issue prometheus#132 and pin to a specific style guide used by GoCardless and open-sourced at gocardless/gc_ruboconfig. This should reduce the frequency that style guidelines change between versions.
- Loading branch information
1 parent
3652cf7
commit 6f8721c
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
inherit_gem: | ||
gc_ruboconfig: rubocop.yml | ||
|
||
# Set this to be the oldest supported version of Ruby for this library. See | ||
# COMPATIBILITY.md for our compatibility and deprecation policy. | ||
AllCops: | ||
TargetRubyVersion: 2.4 | ||
|
||
Metrics/MethodLength: | ||
Max: 15 | ||
|
||
Style/RescueStandardError: | ||
Exclude: | ||
- "*/**/*_spec.rb" | ||
|
||
Naming/UncommunicativeMethodParamName: | ||
AllowedNames: | ||
# These are the default allowed names, set by Rubocop | ||
- io | ||
- id | ||
# These are some custom names that we want to allow, since they aren't | ||
# uncommunicative - they're actually rather meaningful! | ||
- as | ||
# This is our increment kwarg for Prometheus metrics | ||
- by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters