Skip to content

Commit 1f11020

Browse files
committed
[Fix #158] Add Rails/DangerousColumnNames cop
1 parent cbf9caf commit 1f11020

File tree

5 files changed

+500
-0
lines changed

5 files changed

+500
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#158](https://github.com/rubocop/rubocop-rails/issues/158): Add `Rails/DangerousColumnNames` cop. ([@r7kamura][])

config/default.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ Rails/CreateTableWithTimestamps:
293293
- db/migrate/*_create_active_storage_tables.active_storage.rb
294294
- db/migrate/*_create_active_storage_variant_records.active_storage.rb
295295

296+
Rails/DangerousColumnNames:
297+
Description: >-
298+
Avoid dangerous column names.
299+
Enabled: pending
300+
VersionAdded: '<<next>>'
301+
Include:
302+
- 'db/**/*.rb'
303+
296304
Rails/Date:
297305
Description: >-
298306
Checks the correct usage of date aware methods,

0 commit comments

Comments
 (0)