aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-22 20:03:07 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-22 20:03:07 +0200
commit0b4cc3972482b2c15784631afe00f1d9277eb3ec (patch)
tree83271f43dd7c48811e3e02294406936f1fa36274 /.rubocop.yml
parentUse Ruby 2.4 as the lowest version (diff)
downloadpackages-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.yml16
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