Skip to content

Instantly share code, notes, and snippets.

@JanBe
Created June 30, 2017 11:08
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 JanBe/238b4e4aa2289b2938f61d11e738dc3f to your computer and use it in GitHub Desktop.
Save JanBe/238b4e4aa2289b2938f61d11e738dc3f to your computer and use it in GitHub Desktop.
COMPEON rubocop config
AllCops:
TargetRubyVersion: 2.4
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'doc/**/*'
- 'vendor/**/*'
# Although it is a good idea to documentation at a class level, developers should
# not be forced to add a documentation. Because good naming or usefull conventions
# might make documentation redundant.
Documentation:
Enabled: false
# Because 80 would be too short and 99 fits perfectly into the code sections on
# GitHubs PR pages
Metrics/LineLength:
Max: 99
# We are way above the recommended maximum of 100 and this counter changes quite
# offen. Let's pin this to a unreasonable high number to avoid noise
Metrics/ClassLength:
Max: 512
# We can't reduce the BlockLength inside the admin/spec files, so we disable this check.
Metrics/BlockLength:
Exclude:
- 'app/admin/**/*'
- 'config/routes.rb'
- 'spec/**/*'
# We can't reduce the ModuleLength inside the spec files, so we disable this check.
Metrics/ModuleLength:
Exclude:
- 'spec/**/*'
Bundler/OrderedGems:
Enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment