-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from grosser/grosser/cop
rubocop
- Loading branch information
Showing
15 changed files
with
244 additions
and
83 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
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,110 @@ | ||
require: | ||
- rubocop-rake | ||
- rubocop-rspec | ||
|
||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 3.0 # keep in sync with gemspec and actions.yml | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Bundler/OrderedGems: | ||
Enabled: false | ||
|
||
Metrics: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Layout/EmptyLineAfterMagicComment: | ||
Enabled: false | ||
|
||
Layout/EndAlignment: | ||
EnforcedStyleAlignWith: variable | ||
|
||
Layout/MultilineOperationIndentation: | ||
Enabled: false | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
EnforcedStyle: indented | ||
|
||
Style/NumericPredicate: | ||
EnforcedStyle: comparison | ||
|
||
Layout/EmptyLineAfterGuardClause: | ||
Enabled: false | ||
|
||
Layout/FirstHashElementLineBreak: | ||
Enabled: true # Opt-in | ||
|
||
# Opt-in | ||
Layout/FirstMethodArgumentLineBreak: | ||
Enabled: true # Opt-in | ||
|
||
Layout/FirstMethodParameterLineBreak: | ||
Enabled: true # Opt-in | ||
|
||
# https://github.com/rubocop-hq/rubocop/issues/5891 | ||
Style/SpecialGlobalVars: | ||
Enabled: false | ||
|
||
Style/WordArray: | ||
EnforcedStyle: brackets | ||
|
||
Style/SymbolArray: | ||
EnforcedStyle: brackets | ||
|
||
Style/GuardClause: | ||
Enabled: false | ||
|
||
Style/EmptyElse: | ||
Enabled: false | ||
|
||
RSpec/DescribedClass: | ||
EnforcedStyle: explicit | ||
|
||
Style/DoubleNegation: | ||
Enabled: false | ||
|
||
RSpec/VerifiedDoubles: | ||
Enabled: false | ||
|
||
RSpec/ExampleLength: | ||
Enabled: false | ||
|
||
Style/CombinableLoops: | ||
Enabled: false | ||
|
||
Lint/Void: | ||
Enabled: false | ||
|
||
Security/MarshalLoad: | ||
Enabled: false | ||
|
||
Lint/EmptyBlock: | ||
Exclude: [spec/**/*.rb] | ||
|
||
Naming/MethodParameterName: | ||
Exclude: [spec/**/*.rb] | ||
|
||
RSpec/BeforeAfterAll: | ||
Enabled: false | ||
|
||
# could change to `#method` and `.method` instead | ||
RSpec/DescribeSymbol: | ||
Enabled: false | ||
|
||
RSpec/NestedGroups: | ||
Enabled: false | ||
|
||
RSpec/EmptyExampleGroup: | ||
Enabled: false | ||
|
||
Lint/SuppressedException: | ||
Enabled: false | ||
|
||
# somehow crashes | ||
RSpec/VariableName: | ||
Enabled: false |
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,6 +1,10 @@ | ||
# frozen_string_literal: true | ||
source 'https://rubygems.org' | ||
gemspec | ||
|
||
gem 'bump' | ||
gem 'rake' | ||
gem 'rspec', '~>3.0' | ||
gem 'rubocop' | ||
gem 'rubocop-rake' | ||
gem 'rubocop-rspec' |
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
Oops, something went wrong.