chore: Add custom RuboCop cop to enforce one class per file (#12947)
This commit is contained in:
@@ -44,6 +44,7 @@ class ArticleKeyConverter
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:disable Style/OneClassPerFile
|
||||
class UpdateArticleImageKeys < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
# Iterate through all articles
|
||||
@@ -53,3 +54,4 @@ class UpdateArticleImageKeys < ActiveRecord::Migration[7.0]
|
||||
end
|
||||
end
|
||||
end
|
||||
# rubocop:enable Style/OneClassPerFile
|
||||
|
||||
Reference in New Issue
Block a user