Skip to content

Commit 749d337

Browse files
authored
Merge pull request rails#51804 from zzak/lint-debugger
Enable Lint/Debugger
2 parents 48d6285 + 833c1c9 commit 749d337

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ Lint/AmbiguousOperator:
223223
Lint/AmbiguousRegexpLiteral:
224224
Enabled: true
225225

226+
Lint/Debugger:
227+
Enabled: true
228+
DebuggerRequires:
229+
- debug
230+
226231
Lint/DuplicateRequire:
227232
Enabled: true
228233

Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ GEM
371371
racc (~> 1.4)
372372
os (1.1.4)
373373
parallel (1.24.0)
374-
parser (3.2.2.4)
374+
parser (3.3.1.0)
375375
ast (~> 2.4.1)
376376
racc
377377
path_expander (1.1.1)
@@ -444,19 +444,19 @@ GEM
444444
retriable (3.1.2)
445445
rexml (3.2.6)
446446
rouge (4.2.0)
447-
rubocop (1.59.0)
447+
rubocop (1.63.5)
448448
json (~> 2.3)
449449
language_server-protocol (>= 3.17.0)
450450
parallel (~> 1.10)
451-
parser (>= 3.2.2.4)
451+
parser (>= 3.3.0.2)
452452
rainbow (>= 2.2.2, < 4.0)
453453
regexp_parser (>= 1.8, < 3.0)
454454
rexml (>= 3.2.5, < 4.0)
455-
rubocop-ast (>= 1.30.0, < 2.0)
455+
rubocop-ast (>= 1.31.1, < 2.0)
456456
ruby-progressbar (~> 1.7)
457457
unicode-display_width (>= 2.4.0, < 3.0)
458-
rubocop-ast (1.30.0)
459-
parser (>= 3.2.1.0)
458+
rubocop-ast (1.31.3)
459+
parser (>= 3.3.1.0)
460460
rubocop-md (1.2.2)
461461
rubocop (>= 1.0)
462462
rubocop-minitest (0.34.3)

actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ def absolute_html_path
107107
"#{absolute_path}.html"
108108
end
109109

110+
# rubocop:disable Lint/Debugger
110111
def save_html
111112
page.save_page(absolute_html_path)
112113
end
113114

114115
def save_image
115116
page.save_screenshot(absolute_image_path)
116117
end
118+
# rubocop:enable Lint/Debugger
117119

118120
def output_type
119121
# Environment variables have priority

actionpack/test/controller/integration_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ def test_fixture_file_upload
13091309
end
13101310
end
13111311

1312+
# rubocop:disable Lint/Debugger
13121313
class PageDumpIntegrationTest < ActionDispatch::IntegrationTest
13131314
class FooController < ActionController::Base
13141315
def index
@@ -1392,3 +1393,4 @@ def remove_dumps
13921393
end
13931394
end
13941395
end
1396+
# rubocop:enable Lint/Debugger

0 commit comments

Comments
 (0)