You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a rubocop:disable tag, it shouldn't be matched as a valid documentation
Actual behavior
When using a rubocop:disabled tag it is detected as documentation which leads to a chicken-and-egg question.
Steps to reproduce the problem
# rubocop:disable Style/Documentation# rubocop:disable Style/DocumentationMethodclassTimedefself.parse(t)# do somethingendend
This example will lead to a Unnecessary disabling of Style/Documentation. Message because rubocop thinks, that the disable part is a valid Documentation of that part of code.
The documentation cops `Style/Documentation` and
`Style/DocumentationMethod` would mistake RuboCop directives for class
documentation. This change fixes that.
Expected behavior
When using a rubocop:disable tag, it shouldn't be matched as a valid documentation
Actual behavior
When using a rubocop:disabled tag it is detected as documentation which leads to a chicken-and-egg question.
Steps to reproduce the problem
This example will lead to a
Unnecessary disabling of Style/Documentation.
Message because rubocop thinks, that the disable part is a valid Documentation of that part of code.RuboCop version
The text was updated successfully, but these errors were encountered: