diff --git a/.rubocop.yml b/.rubocop.yml index 09ebaf7e..a2accd46 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -151,8 +151,6 @@ Style/StringLiterals: Enabled: false Style/StringLiteralsInInterpolation: Enabled: false -Style/SymbolArray: - Enabled: false Style/TernaryParentheses: Enabled: false Style/TrailingCommaInArguments: diff --git a/bin/ridgepole b/bin/ridgepole index 4049c364..c6839048 100755 --- a/bin/ridgepole +++ b/bin/ridgepole @@ -148,7 +148,7 @@ ARGV.options do |opt| opt.parse! - if not mode or ([:apply, :export].include?(mode) and not config) or (options[:with_apply] and not config) + if not mode or (%i(apply export).include?(mode) and not config) or (options[:with_apply] and not config) puts opt.help exit 1 end diff --git a/lib/ridgepole/diff.rb b/lib/ridgepole/diff.rb index 4c1be066..672cd79d 100644 --- a/lib/ridgepole/diff.rb +++ b/lib/ridgepole/diff.rb @@ -169,7 +169,7 @@ def convert_to_primary_key_attrs(column_options) type = Ridgepole::DSLParser::TableDefinition::DEFAULT_PRIMARY_KEY_TYPE end - if [:integer, :bigint].include?(type) && !options.key?(:default) + if %i(integer bigint).include?(type) && !options.key?(:default) options[:auto_increment] = true end