Skip to content

Fix rubocop error Style/DirectiveScope - #163

Merged
OJFord merged 1 commit into
masterfrom
fix-cop
Oct 8, 2026
Merged

OJFord merged 1 commit into
masterfrom
fix-cop

Conversation

@OJFord

@OJFord OJFord commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

This is presently causing:

Offenses:

spec/nandi/formatting_spec.rb:22:7: C: [Correctable] Style/DirectiveScope: Use disable-next instead of a disable/enable pair around a single statement.
# rubocop:disable Security/Eval
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

86 files inspected, 1 offense detected, 1 offense autocorrectable

in unrelated PRs, for example here.

This is presently causing:

> Offenses:
>
>   spec/nandi/formatting_spec.rb:22:7: C: [Correctable] Style/DirectiveScope: Use disable-next instead of a disable/enable pair around a single statement.
>        # rubocop:disable Security/Eval
>       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> 86 files inspected, 1 offense detected, 1 offense autocorrectable

in unrelated PRs, for example [here].

[here]: https://github.com/gocardless/nandi/actions/runs/37775202470/job/113304188629?pr=162
@OJFord
OJFord marked this pull request as ready for review October 8, 2026 12:21
@OJFord
OJFord added this pull request to stack #164 October 8, 2026 12:24
@OJFord
OJFord merged commit 6adf37b into master Oct 8, 2026
10 checks passed
@OJFord
OJFord deleted the fix-cop branch October 8, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants