-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AllCops: MigratedSchemaVersion
ignored by many cops
#1410
Comments
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Jan 14, 2025
…hemaVersion` When implementing rubocop#1383, the detection of `AllCops: MigratedSchemaVersion` was initially considered only for cops related to migrations. However, feedback received later, such as in rubocop#1410, indicated that it is also expected to apply to `Style`, `Lint`, and other categories. This suggestion is reasonable, as warnings for migrated files may not be limited to database columns but could also include Ruby programming logic. Excluding `Style` and `Lint` from this consideration would not align with this feedback. This PR modifies the behavior so that all registered cops can detect the value of `AllCops: MigratedSchemaVersion`. Fixes rubocop#1410.
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Jan 14, 2025
…ratedSchemaVersion`
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Jan 14, 2025
…hemaVersion` When implementing rubocop#1383, the detection of `AllCops: MigratedSchemaVersion` was initially considered only for cops related to migrations. However, feedback received later, such as in rubocop#1410, indicated that it is also expected to apply to `Style`, `Lint`, and other categories. This suggestion is reasonable, as warnings for migrated files may not be limited to database columns but could also include Ruby programming logic. Excluding `Style` and `Lint` from this consideration would not align with this feedback. This PR modifies the behavior so that all registered cops can detect the value of `AllCops: MigratedSchemaVersion`. Fixes rubocop#1410.
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Jan 14, 2025
…ratedSchemaVersion`
9 tasks
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Jan 14, 2025
…hemaVersion` When implementing rubocop#1383, the detection of `AllCops: MigratedSchemaVersion` was initially considered only for cops related to migrations. However, feedback received later, such as in rubocop#1410, indicated that it is also expected to apply to `Style`, `Lint`, and other categories. This suggestion is reasonable, as warnings for migrated files may not be limited to database columns but could also include Ruby programming logic. Excluding `Style` and `Lint` from this consideration would not align with this feedback. This PR modifies the behavior so that all registered cops can detect the value of `AllCops: MigratedSchemaVersion`. Fixes rubocop#1410.
koic
added a commit
that referenced
this issue
Jan 18, 2025
…cops_migrated_schema_version [Fix #1410] Make registered cops aware of `AllCops: MigratedSchemaVersion`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
Adding
ignores all migration files on or before the given date-time, for all cops.
Actual behavior
Many cops still report violations, such as those from
RuboCop version
Related: #1383 (comment)
The text was updated successfully, but these errors were encountered: