Created
June 30, 2017 11:08
-
-
Save JanBe/238b4e4aa2289b2938f61d11e738dc3f to your computer and use it in GitHub Desktop.
COMPEON rubocop 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
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