If you disable a Rubocop rule in-line and do not re-enable it, will the rule be disabled for all subsequence files or is an in-line disable limited to the scope of the current file?
For example, if I enter this before a couple of methods that I know break the line length rule:
# rubocop:disable Metrics/LineLength
Is this rule disable for the rest of the file, or for all subsequent files in the current scan?
In-line config is applied to the given file only (just tested it).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With