diff --git a/config/default.yml b/config/default.yml index f7c3b0e..15b9cc5 100644 --- a/config/default.yml +++ b/config/default.yml @@ -77,21 +77,27 @@ Layout/SpaceInsideBlockBraces: Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space +Metrics/AbcSize: + Max: 25 + # Exclude RSpec Metrics/BlockLength: Exclude: - "spec/factories/**/*.rb" AllowedMethods: ['describe', 'context'] -# Too short methods lead to extraction of single-use methods, which can make -# the code easier to read (by naming things), but can also clutter the class -Metrics/MethodLength: - Max: 20 - # The guiding principle of classes is SRP, SRP can't be accurately measured by LoC Metrics/ClassLength: Max: 1500 +Metrics/CyclomaticComplexity: + Max: 12 + +# Too short methods lead to extraction of single-use methods, which can make +# the code easier to read (by naming things), but can also clutter the class +Metrics/MethodLength: + Max: 40 + # Check with yard instead. Style/DocumentationMethod: Enabled: false @@ -290,6 +296,9 @@ Rails/I18nLocaleTexts: RSpec/ContextWording: Enabled: false +RSpec/ExampleLength: + Max: 20 + RSpec/AlignLeftLetBrace: Enabled: true diff --git a/lib/Dutchie/Style/version.rb b/lib/Dutchie/Style/version.rb index 7534a30..1b761c6 100644 --- a/lib/Dutchie/Style/version.rb +++ b/lib/Dutchie/Style/version.rb @@ -2,7 +2,7 @@ module Dutchie module Style - VERSION = "2.1.0" + VERSION = "2.1.1" public_constant :VERSION end end