diff --git a/ruby/rubocop/rubocop-base.yml b/ruby/rubocop/rubocop-base.yml index d473c007725b47398376acb1fe3a0a4fcd5e0a36..87c270596d7c03ebd7d4ee4d359da249a3d8ac15 100644 --- a/ruby/rubocop/rubocop-base.yml +++ b/ruby/rubocop/rubocop-base.yml @@ -107,10 +107,11 @@ Minitest/MultipleAssertions: # Rails/DangerousColumnNames: mainly to allow adding and changing column named 'id' # Rails/NegateInclude: allow classes to define include? and not force to also define exclude?, like IPAddr # Rails/RakeEnvironment: allow tasks to not depend on :environment task +# Rails/RefuteMethods: allow to use refute methods, especially useful for gems # Rails/ThreeStateBooleanColumn: allow usage of three-state boolean columns, it may be an STI table Style/DisableCopsWithinSourceCodeDirective: Enabled: true - AllowedCops: ['ItcGemRubocop/DevelopmentHosts', 'ItcGemRubocop/NocPortalRz', 'Lint/UnusedMethodArgument', 'Naming/PredicateName', 'Naming/VariableNumber', 'Rails/CreateTableWithTimestamps', 'Rails/DangerousColumnNames', 'Rails/NegateInclude', 'Rails/RakeEnvironment', 'Rails/ThreeStateBooleanColumn'] + AllowedCops: ['ItcGemRubocop/DevelopmentHosts', 'ItcGemRubocop/NocPortalRz', 'Lint/UnusedMethodArgument', 'Naming/PredicateName', 'Naming/VariableNumber', 'Rails/CreateTableWithTimestamps', 'Rails/DangerousColumnNames', 'Rails/NegateInclude', 'Rails/RakeEnvironment', 'Rails/RefuteMethods', 'Rails/ThreeStateBooleanColumn'] # documentation of classes in migrations and tests is not needed Style/Documentation: