diff --git a/.rubocop.yml b/.rubocop.yml index 440bede..81ad424 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,22 +2,35 @@ AllCops: Exclude: - 'vendor/**/*' - '.git/**/*' + - 'node_modules/**/*' + - 'bin/bundle' + - 'bin/cap*' + - 'bin/rails' + - 'bin/rake' + - 'bin/rspec' - 'bin/rubocop' - - 'slackbuilds/**/*' + - 'bin/setup' + - 'bin/spring' + - 'bin/update' + - 'bin/webpack*' + - '**/db/*schema.rb' + - 'pkg/**/*' + + TargetRubyVersion: '2.7' Style/Documentation: Enabled: false -Style/TrailingCommaInHashLiteral: - EnforcedStyleForMultiline: consistent_comma - -Style/FrozenStringLiteralComment: - Exclude: - - '**/db/migrate/*' +# False-Positive: non-string-variable + 'some string' +Style/StringConcatenation: + Enabled: false Layout/MultilineMethodCallIndentation: EnforcedStyle: indented +Layout/MultilineOperationIndentation: + EnforcedStyle: indented + Layout/ArgumentAlignment: EnforcedStyle: with_fixed_indentation @@ -25,6 +38,6 @@ Layout/EndAlignment: EnforcedStyleAlignWith: variable Metrics/BlockLength: - ExcludedMethods: - - describe - - refine + IgnoredMethods: + - describe + - refine diff --git a/Gemfile b/Gemfile index a5bdde9..22e48ad 100644 --- a/Gemfile +++ b/Gemfile @@ -4,6 +4,8 @@ # frozen_string_literal: true -source 'https://rubygems.caraus.de' +source "https://rubygems.org" -gem 'infra', '~> 2.0.0' +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +gem 'rubocop', '~> 1.7', require: false diff --git a/Gemfile.lock b/Gemfile.lock index dffcdc9..9d1e531 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,36 +1,32 @@ GEM - remote: https://rubygems.caraus.de/ + remote: https://rubygems.org/ specs: ast (2.4.1) - infra (2.0.0) - rake (~> 13.0) - rubocop (~> 0.89) parallel (1.20.1) - parser (2.7.2.0) + parser (3.0.0.0) ast (~> 2.4.1) rainbow (3.0.0) - rake (13.0.1) - regexp_parser (2.0.0) + regexp_parser (2.0.3) rexml (3.2.4) - rubocop (0.93.1) + rubocop (1.7.0) parallel (~> 1.10) parser (>= 2.7.1.5) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8) + regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 0.6.0) + rubocop-ast (>= 1.2.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.2.0) + rubocop-ast (1.4.0) parser (>= 2.7.1.5) - ruby-progressbar (1.10.1) + ruby-progressbar (1.11.0) unicode-display_width (1.7.0) PLATFORMS ruby DEPENDENCIES - infra (~> 2.0.0) + rubocop (~> 1.7) BUNDLED WITH 2.1.4