Skip to content

Commit cb97334

Browse files
authored
Merge pull request danger#1519 from ydah/fixfixme
Resolve FIXME comments for `Metrics/BlockLength` in .rubocop.yml #trivial
2 parents 7d92b8d + 683c689 commit cb97334

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

.rubocop.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,9 @@ Style/BlockComments:
122122
Layout/MultilineMethodCallIndentation:
123123
EnforcedStyle: indented
124124

125-
# FIXME: 25
126125
Metrics/BlockLength:
127-
Max: 345
128126
Exclude:
129-
- "**/*_spec.rb"
127+
- "spec/**/*"
130128

131129
Naming/FileName:
132130
Enabled: false

lib/danger/request_sources/github/github.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def submit_inline_comments_for_kind!(kind, messages, diff_lines, danger_comments
329329
is_markdown_content = kind == :markdown
330330
emoji = { warning: "warning", error: "no_entry_sign", message: "book" }[kind]
331331

332-
messages.reject do |m|
332+
messages.reject do |m| # rubocop:todo Metrics/BlockLength
333333
next false unless m.file && m.line
334334

335335
position = find_position_in_diff diff_lines, m, kind

lib/danger/request_sources/gitlab.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def submit_inline_comments_for_kind!(kind, messages, _diff_lines, danger_comment
395395
is_markdown_content = kind == :markdown
396396
emoji = { warning: "warning", error: "no_entry_sign", message: "book" }[kind]
397397

398-
messages.reject do |m|
398+
messages.reject do |m| # rubocop:todo Metrics/BlockLength
399399
next false unless m.file && m.line
400400
# Reject if it's out of range and in dismiss mode
401401
next true if dismiss_out_of_range_messages_for(kind) && is_out_of_range(mr_changes.changes, m)

lib/danger/request_sources/vsts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def submit_inline_comments_for_kind!(kind, messages, danger_threads, previous_vi
185185
is_markdown_content = kind == :markdown
186186
emoji = { warning: "warning", error: "no_entry_sign", message: "book" }[kind]
187187

188-
messages.reject do |m|
188+
messages.reject do |m| # rubocop:todo Metrics/BlockLength
189189
next false unless m.file && m.line
190190

191191
# Once we know we're gonna submit it, we format it

0 commit comments

Comments
 (0)