Created
October 7, 2018 14:12
-
-
Save jattoabdul/30e4db2f9d1f3645a11425599d38c57d to your computer and use it in GitHub Desktop.
This should be in the .rubocop.yml file in the root of your rails app after installing and configuring rubocop
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
AllCops: | |
Exclude: | |
- "vendor/**/*" | |
- "db/**/*" | |
- "tmp/**/*" | |
- "bin/**/*" | |
- "log/**/*" | |
- "config/**/*" | |
- "app/assets/**/*" | |
- "Rakefile" | |
- "spec/cassettes/**/*" | |
- "micro-shared/**/*" | |
- "Gemfile" | |
- "Gemfile.lock" | |
- "node_modules/**/*" | |
UseCache: false | |
TargetRubyVersion: 2.5 | |
#################### Lint ########################### | |
Lint/AssignmentInCondition: | |
Enabled: false | |
Lint/HandleExceptions: | |
Enabled: false | |
Lint/UnusedBlockArgument: | |
Enabled: false | |
#################### Metric ########################### | |
Metrics/AbcSize: | |
Enabled: false | |
Max: 20 | |
Metrics/ClassLength: | |
Enabled: false | |
Metrics/MethodLength: | |
Enabled: false | |
Metrics/LineLength: | |
Enabled: false | |
Max: 120 | |
Metrics/BlockLength: | |
CountComments: false | |
Exclude: | |
- "spec/**/*" | |
- "link_community.gemspec" | |
Max: 150 | |
#################### Style ########################### | |
Style/RegexpLiteral: | |
Exclude: | |
- Guardfile | |
Style/FrozenStringLiteralComment: | |
Enabled: false | |
Style/PercentLiteralDelimiters: | |
Enabled: true | |
PreferredDelimiters: | |
"%": "()" | |
"%i": "()" | |
"%q": "()" | |
"%Q": "()" | |
"%r": "{}" | |
"%s": "()" | |
"%w": "()" | |
"%W": "()" | |
"%x": "()" | |
Style/WordArray: | |
Enabled: false | |
#################### Layout ########################### | |
Layout/TrailingBlankLines: | |
AutoCorrect: true | |
Layout/DotPosition: | |
Enabled: true | |
EnforcedStyle: trailing | |
SupportedStyles: | |
- leading | |
- trailing | |
Layout/IndentHash: | |
Enabled: true | |
EnforcedStyle: consistent | |
Layout/MultilineMethodCallIndentation: | |
Enabled: true | |
EnforcedStyle: indented | |
Layout/MultilineAssignmentLayout: | |
Enabled: true | |
EnforcedStyle: same_line | |
Layout/AlignParameters: | |
Enabled: true | |
EnforcedStyle: with_fixed_indentation | |
Layout/EndAlignment: | |
Enabled: true | |
EnforcedStyleAlignWith: start_of_line | |
Layout/CaseIndentation: | |
Enabled: true | |
EnforcedStyle: end | |
#################### Naming ########################### | |
Naming/PredicateName: | |
Enabled: true | |
NamePrefix: | |
- is_ | |
- has_ | |
- have_ | |
NamePrefixBlacklist: | |
- is_ | |
Exclude: | |
- spec/**/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment