Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aki77 committed Jul 16, 2020
1 parent 2c3eb66 commit 916bcf9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/sgcop/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sgcop
VERSION = '0.2.2'.freeze
VERSION = '0.2.3'.freeze
end
18 changes: 18 additions & 0 deletions rails/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 12 additions & 16 deletions ruby/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ============================================================
Expand Down
4 changes: 2 additions & 2 deletions sgcop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 916bcf9

Please sign in to comment.