Merge pull request #51804 from zzak/lint-debugger

Enable Lint/Debugger
This commit is contained in:
Rafael Mendonça França 2024-05-13 12:27:50 -04:00 committed by GitHub
commit 749d337809
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 6 deletions

@ -223,6 +223,11 @@ Lint/AmbiguousOperator:
Lint/AmbiguousRegexpLiteral:
Enabled: true
Lint/Debugger:
Enabled: true
DebuggerRequires:
- debug
Lint/DuplicateRequire:
Enabled: true

@ -371,7 +371,7 @@ GEM
racc (~> 1.4)
os (1.1.4)
parallel (1.24.0)
parser (3.2.2.4)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
path_expander (1.1.1)
@ -444,19 +444,19 @@ GEM
retriable (3.1.2)
rexml (3.2.6)
rouge (4.2.0)
rubocop (1.59.0)
rubocop (1.63.5)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.2.4)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
rubocop-md (1.2.2)
rubocop (>= 1.0)
rubocop-minitest (0.34.3)

@ -107,6 +107,7 @@ def absolute_html_path
"#{absolute_path}.html"
end
# rubocop:disable Lint/Debugger
def save_html
page.save_page(absolute_html_path)
end
@ -114,6 +115,7 @@ def save_html
def save_image
page.save_screenshot(absolute_image_path)
end
# rubocop:enable Lint/Debugger
def output_type
# Environment variables have priority

@ -1309,6 +1309,7 @@ def test_fixture_file_upload
end
end
# rubocop:disable Lint/Debugger
class PageDumpIntegrationTest < ActionDispatch::IntegrationTest
class FooController < ActionController::Base
def index
@ -1392,3 +1393,4 @@ def remove_dumps
end
end
end
# rubocop:enable Lint/Debugger