Maintenance: Fix matching of zammad cops for addons and do not check create_table for reset column information.
This commit is contained in:
parent
0e6cab4329
commit
34ed189881
2 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@ module RuboCop
|
|||
module Zammad
|
||||
class ExistsResetColumnInformation < Cop
|
||||
def_node_matcher :table?, <<-PATTERN
|
||||
$(send _ {:create_table :change_table} ... )
|
||||
$(send _ :change_table ... )
|
||||
PATTERN
|
||||
|
||||
def_node_matcher :column?, <<-PATTERN
|
||||
|
|
|
@ -316,7 +316,9 @@ Zammad/PreferNegatedIfOverUnless:
|
|||
Zammad/ExistsDateTimePrecision:
|
||||
Include:
|
||||
- "db/migrate/*.rb"
|
||||
- "**/db/addon/**/*.rb"
|
||||
|
||||
Zammad/ExistsResetColumnInformation:
|
||||
Include:
|
||||
- "db/migrate/*.rb"
|
||||
- "**/db/addon/**/*.rb"
|
||||
|
|
Loading…
Reference in a new issue