Skip to content

Instantly share code, notes, and snippets.

@RobinDaugherty
Created January 29, 2019 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinDaugherty/c50fd7ce2263e45658eeb384e7dbf0b1 to your computer and use it in GitHub Desktop.
Save RobinDaugherty/c50fd7ce2263e45658eeb384e7dbf0b1 to your computer and use it in GitHub Desktop.
Flowspace Codacy config
---
engines:
duplication:
enabled: true
exclude_paths:
- spec/
metrics:
enabled: true
exclude_paths:
- spec/
#
# 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