forked from publiclab/mapknitter
-
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.
Adding rubocop sample config (publiclab#547)
* Adding rubocop sample config * Removing double_quotes enforcement * Using same rubocop yaml as in Plots2 * Autofixing rubocop offenses * Fixing conditions for CC Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Adding Performance cop and fixing some offenses * Fixing rubocop offenses and warnings * Downgrading rubocop version since publiclab#547 (comment)
- Loading branch information
1 parent
4255557
commit 4b0d59d
Showing
29 changed files
with
1,709 additions
and
298 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,79 @@ | ||
# Start with Spotifys style guide as a base then customize from there | ||
inherit_from: | ||
- .rubocop_shopify_styleguide.yml | ||
- .rubocop_todo.yml | ||
|
||
# Apply rule to all cops | ||
AllCops: | ||
Include: | ||
- '*/**/*.rb' | ||
- '/Rakefile' | ||
- '/config.ru' | ||
Exclude: | ||
- 'vendor/*' | ||
- 'spec/**/*' | ||
- 'bin/*' | ||
- 'doc/*' | ||
- 'log/*' | ||
- 'db/**/*' | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'config/**/*' | ||
- 'script/**/*' | ||
- 'lib/**/*' | ||
- 'test/**/*' | ||
- 'public/**/*' | ||
- 'Dangerfile' | ||
- 'app/views/**/*' | ||
TargetRubyVersion: '2.4' | ||
|
||
Layout/MultilineMethodCallIndentation: | ||
Enabled: false | ||
|
||
Style/RegexpLiteral: | ||
Enabled: false | ||
|
||
Style/IfInsideElse: | ||
Enabled: false | ||
|
||
Style/DateTime: | ||
Enabled: false | ||
|
||
Style/CaseEquality: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Lint/ParenthesesAsGroupedExpression: | ||
Enabled: false | ||
|
||
Layout/EndAlignment: | ||
Enabled: false | ||
|
||
Layout/DefEndAlignment: | ||
Enabled: false | ||
|
||
Lint/SafeNavigationChain: | ||
Enabled: false | ||
|
||
Lint/AssignmentInCondition: | ||
Enabled: false | ||
|
||
Naming/AccessorMethodName: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Metrics/ParameterLists: | ||
Enabled: false | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Max: 423 | ||
|
||
Style/Documentation: | ||
Enabled: false |
Oops, something went wrong.