Maintenance: Fix matching of zammad cops for addons and do not check create_table for reset column information.

This commit is contained in:
Rolf Schmidt 2020-11-23 10:08:28 +01:00 committed by Thorsten Eckel
parent 0e6cab4329
commit 34ed189881
2 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,7 @@ module RuboCop
module Zammad module Zammad
class ExistsResetColumnInformation < Cop class ExistsResetColumnInformation < Cop
def_node_matcher :table?, <<-PATTERN def_node_matcher :table?, <<-PATTERN
$(send _ {:create_table :change_table} ... ) $(send _ :change_table ... )
PATTERN PATTERN
def_node_matcher :column?, <<-PATTERN def_node_matcher :column?, <<-PATTERN

View file

@ -316,7 +316,9 @@ Zammad/PreferNegatedIfOverUnless:
Zammad/ExistsDateTimePrecision: Zammad/ExistsDateTimePrecision:
Include: Include:
- "db/migrate/*.rb" - "db/migrate/*.rb"
- "**/db/addon/**/*.rb"
Zammad/ExistsResetColumnInformation: Zammad/ExistsResetColumnInformation:
Include: Include:
- "db/migrate/*.rb" - "db/migrate/*.rb"
- "**/db/addon/**/*.rb"