Created
January 29, 2019 15:42
-
-
Save RobinDaugherty/c50fd7ce2263e45658eeb384e7dbf0b1 to your computer and use it in GitHub Desktop.
Flowspace Codacy config
This file contains hidden or 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
--- | |
engines: | |
duplication: | |
enabled: true | |
exclude_paths: | |
- spec/ | |
metrics: | |
enabled: true | |
exclude_paths: | |
- spec/ |
This file contains hidden or 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
# | |
# For more information see https://github.com/bbatsov/rubocop/blob/master/config/default.yml | |
# | |
# However, do not include entire blocks here just because you want to change them. | |
# Include only the specific lines that you're changing from the defaults. | |
# | |
--- | |
require: rubocop-rspec | |
AllCops: | |
Exclude: | |
- 'bin/**/*' | |
- 'node_modules/**/*' | |
- 'Gemfile.lock' | |
- 'db/schema.rb' | |
- 'tmp/**/*' | |
- 'vendor/**/*' | |
- 'config.ru' | |
DisplayCopNames: true | |
DisplayStyleGuide: true | |
StyleGuideCopsOnly: false | |
Rails: | |
Enabled: true | |
Bundler/OrderedGems: | |
Enabled: false | |
Style/Documentation: | |
Exclude: | |
- 'db/**/*.rb' | |
Metrics/LineLength: | |
Max: 120 | |
Exclude: | |
- 'db/**/*.rb' | |
Metrics/MethodLength: | |
Exclude: | |
- 'db/**/*.rb' | |
Metrics/BlockLength: | |
Exclude: | |
- 'Guardfile' | |
- 'spec/**/*.rb' | |
- 'app/admin/**.rb' | |
- 'app/views/**.arb' | |
Style/BracesAroundHashParameters: | |
Enabled: false | |
Style/ClassCheck: | |
Enabled: false | |
Style/RegexpLiteral: | |
Exclude: | |
- 'Guardfile' | |
Style/SymbolArray: | |
MinSize: 3 | |
Layout/DotPosition: | |
EnforcedStyle: leading | |
Layout/IndentHash: | |
EnforcedStyle: consistent | |
Layout/MultilineOperationIndentation: | |
EnforcedStyle: indented | |
Layout/AlignParameters: | |
EnforcedStyle: with_fixed_indentation | |
Layout/IndentArray: | |
EnforcedStyle: consistent | |
Layout/MultilineMethodCallIndentation: | |
EnforcedStyle: indented | |
Lint/AmbiguousBlockAssociation: | |
Exclude: | |
- 'spec/**.rb' | |
Style/BlockDelimiters: | |
EnforcedStyle: semantic | |
Exclude: | |
- 'spec/factories/**/*.rb' | |
- 'spec/**/*.rb' | |
Style/Lambda: | |
EnforcedStyle: literal | |
Style/LambdaCall: | |
Exclude: | |
- '**/*.jbuilder' | |
Style/StringLiterals: | |
Enabled: false | |
Style/StringLiteralsInInterpolation: | |
Enabled: false | |
Style/TrailingCommaInArrayLiteral: | |
EnforcedStyleForMultiline: comma | |
Style/TrailingCommaInHashLiteral: | |
EnforcedStyleForMultiline: comma | |
Style/TrailingCommaInArguments: | |
EnforcedStyleForMultiline: comma | |
RSpec/ExampleLength: | |
Max: 10 | |
RSpec/MultipleExpectations: | |
Max: 5 | |
RSpec/NestedGroups: | |
Max: 6 | |
RSpec/LetSetup: | |
Enabled: false | |
RSpec/ContextWording: | |
Prefixes: | |
- when | |
- with | |
- without | |
- if | |
- and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment