chore: Add custom RuboCop cop to enforce one class per file (#12947)

This commit is contained in:
Vinay Keerthi
2025-11-26 12:53:04 +05:30
committed by GitHub
parent 7b20ecd27b
commit 94a9e4e067
3 changed files with 92 additions and 0 deletions

View File

@@ -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