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
I am not sure on which version it started (recently, something around ~80), but now I get a lot of warnings on lines looking like this:
# rubocop:disable SomeDepartment/SomeCop -- because something, something, and something
Seems like Migration/DepartmentName cop treats every comma as a sign to look for new cop... And becomes disappointed. Real example (at 0.83.0):
spec/factories/revision_data.rb:65:52: C: Migration/DepartmentName: Department name is missing.
# rubocop:disable Lint/PercentStringArray -- no, silly, we need those ","!
^^^^^
As there are no other warnings (like "unknown cop"), I believe the problem is just in Migration/DepartmentName cop.
The text was updated successfully, but these errors were encountered:
Fixesrubocop#7993.
This PR fixes a false positive for `Migration/DepartmentName` cop
when a disable comment contains an unexpected character for department name.
Fixes#7993.
This PR fixes a false positive for `Migration/DepartmentName` cop
when a disable comment contains an unexpected character for department name.
I am not sure on which version it started (recently, something around ~80), but now I get a lot of warnings on lines looking like this:
# rubocop:disable SomeDepartment/SomeCop -- because something, something, and something
Seems like
Migration/DepartmentName
cop treats every comma as a sign to look for new cop... And becomes disappointed. Real example (at 0.83.0):As there are no other warnings (like "unknown cop"), I believe the problem is just in
Migration/DepartmentName
cop.The text was updated successfully, but these errors were encountered: