Skip to content

Conversation

@rafaelfranca
Copy link
Member

# bad
some_code 'a' # rubocop:disable Style/StringLiterals

# bad
# rubocop:disable Layout/LineLength
very_long_line_of_code_that_exceeds_the_maximum_allowed_length
# rubocop:enable Layout/LineLength

@rafaelfranca rafaelfranca requested a review from a team as a code owner October 10, 2025 21:29
@rafaelfranca rafaelfranca changed the title Add cop to disallow disable directive in the code. Add cop to disallow disable directive in the code Oct 10, 2025
  ```
  # bad
  some_code 'a' # rubocop:disable Style/StringLiterals

  # bad
  # rubocop:disable Layout/LineLength
  very_long_line_of_code_that_exceeds_the_maximum_allowed_length
  # rubocop:enable Layout/LineLength
  ```
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.

1 participant