-
-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring RuboCop up to date and eliminate warnings
- Loading branch information
1 parent
59958cd
commit b830671
Showing
12 changed files
with
59 additions
and
80 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 |
---|---|---|
@@ -1,78 +1,56 @@ | ||
require: rubocop-rspec | ||
require: | ||
- rubocop-performance | ||
- rubocop-rake | ||
- rubocop-rspec | ||
|
||
# This should always correspond to the earliest non-EOL Ruby version. | ||
AllCops: | ||
TargetRubyVersion: 2.4 | ||
NewCops: enable | ||
TargetRubyVersion: 3.1 | ||
|
||
# TODO: Re-enable this cop after TomDoc code deocumentation is added. | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Allow some style changes in the specs. | ||
Metrics/BlockLength: | ||
Exclude: | ||
- figaro.gemspec | ||
- spec/**/* | ||
Metrics/ModuleLength: | ||
Exclude: | ||
- spec/**/* | ||
Layout/LineLength: | ||
Exclude: | ||
- figaro.gemspec | ||
- spec/**/* | ||
RSpec/ContextWording: | ||
Enabled: false | ||
RSpec/DescribedClass: | ||
Enabled: false | ||
RSpec/ExampleLength: | ||
Enabled: false | ||
RSpec/MultipleExpectations: | ||
Gemspec/DevelopmentDependencies: | ||
Enabled: false | ||
|
||
# These style conventions are personal preference. | ||
Layout/ArgumentAlignment: | ||
EnforcedStyle: with_fixed_indentation | ||
Layout/ClosingHeredocIndentation: | ||
Enabled: false | ||
Layout/FirstHashElementIndentation: | ||
EnforcedStyle: consistent | ||
Layout/HashAlignment: | ||
EnforcedLastArgumentHashStyle: ignore_implicit | ||
Layout/LineEndStringConcatenationIndentation: | ||
EnforcedStyle: indented | ||
Layout/LineLength: | ||
Enabled: false | ||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
Layout/MultilineOperationIndentation: | ||
EnforcedStyle: indented | ||
Layout/ParameterAlignment: | ||
EnforcedStyle: with_fixed_indentation | ||
Metrics/ParameterLists: | ||
|
||
Metrics: | ||
Enabled: false | ||
|
||
Naming/AccessorMethodName: | ||
Enabled: false | ||
Naming/HeredocDelimiterNaming: | ||
Enabled: false | ||
Naming/RescuedExceptionsVariableName: | ||
PreferredName: error | ||
Style/DoubleNegation: | ||
|
||
RSpec/BeEq: | ||
Enabled: false | ||
RSpec/ContextWording: | ||
Enabled: false | ||
RSpec/DescribedClass: | ||
Enabled: false | ||
RSpec/ExampleLength: | ||
Enabled: false | ||
RSpec/MultipleExpectations: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
Style/FetchEnvVar: | ||
Enabled: false | ||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
Style/SymbolArray: | ||
EnforcedStyle: brackets | ||
Style/WordArray: | ||
EnforcedStyle: brackets | ||
|
||
# New cops: | ||
Layout/SpaceAroundMethodCallOperator: | ||
Enabled: true | ||
Lint/RaiseException: | ||
Enabled: true | ||
Lint/StructNewOverride: | ||
Enabled: true | ||
Style/ExponentialNotation: | ||
Enabled: true | ||
Style/HashEachMethods: | ||
Enabled: true | ||
Style/HashTransformKeys: | ||
Enabled: true | ||
Style/HashTransformValues: | ||
Enabled: 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
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
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
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
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
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