Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -290,6 +296,9 @@ Rails/I18nLocaleTexts:
RSpec/ContextWording:
Enabled: false

RSpec/ExampleLength:
Max: 20

RSpec/AlignLeftLetBrace:
Enabled: true

Expand Down
2 changes: 1 addition & 1 deletion lib/Dutchie/Style/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Dutchie
module Style
VERSION = "2.1.0"
VERSION = "2.1.1"
public_constant :VERSION
end
end