diff options
author | 2019-07-22 20:03:07 +0200 | |
---|---|---|
committer | 2019-07-22 20:03:07 +0200 | |
commit | 0b4cc3972482b2c15784631afe00f1d9277eb3ec (patch) | |
tree | 83271f43dd7c48811e3e02294406936f1fa36274 /.rubocop.yml | |
parent | Use Ruby 2.4 as the lowest version (diff) | |
download | packages-5-0b4cc3972482b2c15784631afe00f1d9277eb3ec.tar.gz packages-5-0b4cc3972482b2c15784631afe00f1d9277eb3ec.tar.bz2 packages-5-0b4cc3972482b2c15784631afe00f1d9277eb3ec.zip |
Update rubocop configuration
Include the new performance and rails cops. Add a rubocop todo file
so that running rubocop now results in a clean run. Specific issues
from the todo file can be removed at a later stage.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to '.rubocop.yml')
-rw-r--r-- | .rubocop.yml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index 13714db..69ba68f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,15 @@ +inherit_from: .rubocop_todo.yml + +require: + - rubocop-performance + - rubocop-rails + AllCops: TargetRubyVersion: 2.4 + TargetRailsVersion: 5.2 + +Rails: + Enabled: true Style/FormatString: Enabled: false @@ -10,12 +20,6 @@ Style/Documentation: Style/PerlBackrefs: Enabled: false -Metrics/LineLength: - Max: 120 - -Metrics/MethodLength: - Max: 20 - Metrics/ModuleLength: Max: 200 |