Skip to content

Commit ba7d8ac

Browse files
committed
Add CountAsOne option to Metrics/BlockLength cop
1 parent 87c58ff commit ba7d8ac

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [0.8.7]
2+
- Add `CountAsOne` option to `Metrics/BlockLength` cop
3+
14
## [0.8.6]
25
- Set `Layout/FirstArrayElementIndentation` and `Layout/FirstHashElementIndentation` to `consistent`
36

config/base.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ Metrics/BlockLength:
217217
- 'config/environments/**/*.rb'
218218
- 'config/routes.rb'
219219
- 'db/**/*'
220+
CountAsOne:
221+
- array
222+
- hash
223+
- heredoc
220224

221225
Metrics/BlockNesting:
222226
Enabled: true

lib/renuocop/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Renuocop
4-
VERSION = "0.8.6"
4+
VERSION = "0.8.7"
55
end

0 commit comments

Comments
 (0)