diff --git a/lib/sgcop/version.rb b/lib/sgcop/version.rb index 986d1c4..623a9f5 100644 --- a/lib/sgcop/version.rb +++ b/lib/sgcop/version.rb @@ -1,3 +1,3 @@ module Sgcop - VERSION = '0.2.2'.freeze + VERSION = '0.2.3'.freeze end diff --git a/rails/rubocop.yml b/rails/rubocop.yml index ca2e8c4..ac26112 100644 --- a/rails/rubocop.yml +++ b/rails/rubocop.yml @@ -116,3 +116,21 @@ Naming/AsciiIdentifiers: Naming/MethodName: Exclude: - "spec/mailers/previews/*.rb" + +# rubocop 本体でまだデフォルト設定がPendingのルールの有効・無効設定 +Performance/AncestorsInclude: + Enabled: false +Performance/BigDecimalWithNumericArgument: + Enabled: true +Performance/RedundantSortBlock: + Enabled: true +Performance/RedundantStringChars: + Enabled: false +Performance/ReverseFirst: + Enabled: true +Performance/SortReverse: + Enabled: true +Performance/Squeeze: + Enabled: true +Performance/StringInclude: + Enabled: true diff --git a/ruby/rubocop.yml b/ruby/rubocop.yml index 35583df..c679351 100644 --- a/ruby/rubocop.yml +++ b/ruby/rubocop.yml @@ -126,33 +126,29 @@ Style/RedundantRegexpEscape: Enabled: true Style/RedundantFetchBlock: Enabled: true -Lint/RaiseException: +Style/ArrayCoercion: Enabled: true -Lint/StructNewOverride: +Style/CaseLikeIf: Enabled: true -Lint/DeprecatedOpenSSLConstant: +Style/HashAsLastArrayItem: Enabled: true -Lint/MixedRegexpCaptureTypes: +Style/HashLikeCase: Enabled: true -Layout/SpaceAroundMethodCallOperator: +Style/RedundantFileExtensionInRequire: Enabled: true -Layout/EmptyLinesAroundAttributeAccessor: +Lint/RaiseException: Enabled: true -Performance/AncestorsInclude: - Enabled: false -Performance/BigDecimalWithNumericArgument: +Lint/StructNewOverride: Enabled: true -Performance/RedundantSortBlock: +Lint/DeprecatedOpenSSLConstant: Enabled: true -Performance/RedundantStringChars: - Enabled: false -Performance/ReverseFirst: +Lint/MixedRegexpCaptureTypes: Enabled: true -Performance/SortReverse: +Lint/DuplicateElsifCondition: Enabled: true -Performance/Squeeze: +Layout/SpaceAroundMethodCallOperator: Enabled: true -Performance/StringInclude: +Layout/EmptyLinesAroundAttributeAccessor: Enabled: true # ============================================================ diff --git a/sgcop.gemspec b/sgcop.gemspec index 37a90b6..9e9deb8 100644 --- a/sgcop.gemspec +++ b/sgcop.gemspec @@ -34,8 +34,8 @@ Gem::Specification.new do |spec| spec.add_dependency 'brakeman' spec.add_dependency 'brakeman_translate_checkstyle_format' spec.add_dependency 'haml_lint', '~> 0.35.0' - spec.add_dependency 'rubocop', '~> 0.87.0' + spec.add_dependency 'rubocop', '~> 0.88.0' spec.add_dependency 'rubocop-performance', '~> 1.7.0' spec.add_dependency 'rubocop-rails', '~> 2.6.0' - spec.add_dependency 'rubocop-rspec', '~> 1.41.0' + spec.add_dependency 'rubocop-rspec', '~> 1.42.0' end