-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix simplecov with jruby, add a .rubocop.yml config file
- Loading branch information
Samuel Beaulieu
committed
Dec 10, 2021
1 parent
356dfb3
commit 6b8a4c4
Showing
4 changed files
with
60 additions
and
5 deletions.
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,2 @@ | ||
# for simplecov to work in jruby, without this we are getting errors when debugging spec tests | ||
debug.fullTrace=true |
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,53 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
Include: | ||
- 'lib/**/*.rb' | ||
Exclude: | ||
- 'scripts/**/*' | ||
- 'spec/**/*' | ||
- 'vendor/**/*' | ||
- Gemfile | ||
- Rakefile | ||
|
||
# These short variable names make sense as exceptions to the rule, but generally I think short variable names do hurt readability | ||
Naming/MethodParameterName: | ||
AllowedNames: | ||
- vm | ||
- dc | ||
- s | ||
- x | ||
- f | ||
|
||
#new cops: | ||
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1) | ||
Enabled: true | ||
Lint/EmptyBlock: # (new in 1.1) | ||
Enabled: true | ||
Lint/ToEnumArguments: # (new in 1.1) | ||
Enabled: true | ||
Lint/UnmodifiedReduceAccumulator: # (new in 1.1) | ||
Enabled: true | ||
Style/ArgumentsForwarding: # (new in 1.1) | ||
Enabled: false | ||
Style/DocumentDynamicEvalDefinition: # (new in 1.1) | ||
Enabled: true | ||
Style/SwapValues: # (new in 1.1) | ||
Enabled: false | ||
|
||
#disabled | ||
|
||
Metrics/AbcSize: | ||
Max: 77 | ||
Metrics/ClassLength: | ||
Max: 430 | ||
Metrics/CyclomaticComplexity: | ||
Max: 14 | ||
Metrics/MethodLength: | ||
Max: 48 | ||
Metrics/PerceivedComplexity: | ||
Max: 14 | ||
Metrics/ParameterLists: | ||
Max: 6 | ||
Layout/LineLength: | ||
Max: 220 |
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
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