From 96677c14d1d4ac6d6765f4d010ead00e75cc9189 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 10 Jan 2016 21:55:45 +0100 Subject: [PATCH] update rubocop.yml * ignore bin folder (generated files) * allow same length for modules as for classes closes #6635 --- .rubocop.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index a2895b1d7..8cced7682 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,8 @@ AllCops: RunRailsCops: true Exclude: - - 'db/schema.rb' + - "bin/**/*" + - "db/schema.rb" # Commonly used screens these days easily fit more than 80 characters. Metrics/LineLength: @@ -15,6 +16,8 @@ Metrics/MethodLength: # The guiding principle of classes is SRP, SRP can't be accurately measured by LoC Metrics/ClassLength: Max: 1500 +Metrics/ModuleLength: + Max: 1500 # Raise AbcSize from 15 to 20 Metrics/AbcSize: