Created
July 27, 2017 10:16
-
-
Save gambala/03716cc9650a5464d83afc2ab3c2127d to your computer and use it in GitHub Desktop.
Rubocop config
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
inherit_from: .rubocop_todo.yml | |
AllCops: | |
Exclude: | |
- 'bin/*' | |
- 'db/schema.rb' | |
- 'node_modules/**/*' | |
- 'vendor/**/*' | |
TargetRubyVersion: 2.4 | |
Layout/IndentationConsistency: | |
EnforcedStyle: normal | |
Lint/AssignmentInCondition: | |
Enabled: false | |
Lint/Debugger: | |
Enabled: true | |
Lint/DefEndAlignment: | |
AutoCorrect: true | |
Lint/EndAlignment: | |
AutoCorrect: true | |
EnforcedStyleAlignWith: keyword | |
Metrics/LineLength: | |
Enabled: false | |
Max: 100 | |
Rails: | |
Enabled: true | |
Style/AsciiComments: | |
Enabled: false | |
Style/Alias: | |
EnforcedStyle: prefer_alias_method | |
Style/AutoResourceCleanup: | |
Enabled: true | |
Style/ClassAndModuleChildren: | |
Enabled: false | |
Style/CollectionMethods: | |
Description: Preferred collection methods. | |
StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size | |
Enabled: true | |
PreferredMethods: | |
collect: map | |
collect!: map! | |
find: detect | |
find_all: select | |
reduce: inject | |
Style/Documentation: | |
Enabled: false | |
Style/FileName: | |
Description: Use snake_case for source file names. | |
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files | |
Enabled: false | |
Style/PercentLiteralDelimiters: | |
PreferredDelimiters: | |
'%i': '()' | |
'%I': '()' | |
'%r': '{}' | |
'%w': '()' | |
'%W': '()' | |
Style/StringLiterals: | |
EnforcedStyle: single_quotes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment