Skip to content

Commit

Permalink
Merge branch 'master' into amomchilov-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
amomchilov committed Jun 16, 2021
2 parents 2931094 + eba9ab8 commit 984ff11
Show file tree
Hide file tree
Showing 779 changed files with 11,509 additions and 7,861 deletions.
31 changes: 1 addition & 30 deletions .circleci/config.yml
Expand Up @@ -46,29 +46,6 @@ rubocop_steps: &rubocop_steps
jobs:

# Ruby 2.4
ruby-2.4-spec:
docker:
- image: circleci/ruby:2.4
environment:
<<: *common_env
steps:
*spec_steps
ruby-2.4-ascii_spec:
docker:
- image: circleci/ruby:2.4
environment:
<<: *common_env
steps:
*ascii_spec_steps
ruby-2.4-rubocop:
docker:
- image: circleci/ruby:2.4
environment:
<<: *common_env
steps:
*rubocop_steps

# Ruby 2.5
ruby-2.5-spec:
docker:
Expand Down Expand Up @@ -242,7 +219,7 @@ jobs:
- run:
name: Upload coverage results to Code Climate
command: |
./tmp/cc-test-reporter sum-coverage tmp/codeclimate.*.json --parts 6 --output tmp/codeclimate.total.json
./tmp/cc-test-reporter sum-coverage tmp/codeclimate.*.json --parts 5 --output tmp/codeclimate.total.json
./tmp/cc-test-reporter upload-coverage --input tmp/codeclimate.total.json
# Miscellaneous tasks
Expand All @@ -264,11 +241,6 @@ workflows:
jobs:
- documentation-checks
- cc-setup
- ruby-2.4-spec:
requires:
- cc-setup
- ruby-2.4-ascii_spec
- ruby-2.4-rubocop
- ruby-2.5-spec:
requires:
- cc-setup
Expand Down Expand Up @@ -302,7 +274,6 @@ workflows:

- cc-upload-coverage:
requires:
- ruby-2.4-spec
- ruby-2.5-spec
- ruby-2.6-spec
- ruby-2.7-spec
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -38,7 +38,7 @@ output by `rubocop -V`, include them as well. Here's an example:

```
$ [bundle exec] rubocop -V
1.12.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
1.17.0 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-linux)
- rubocop-performance 1.9.1
- rubocop-rspec 2.0.0
```
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
# [ ubuntu, macos, windows ]
os: [ windows ]
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', 'head' ]
ruby: [ '2.5', '2.6', '2.7', '3.0', 'head' ]
include:
- { os: windows, ruby: mingw }
exclude:
Expand Down
4 changes: 0 additions & 4 deletions .mergify.yml
Expand Up @@ -8,7 +8,6 @@ pull_request_rules:
- label=auto-merge
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- "status-success=windows 2.4"
- "status-success=windows 2.5"
- "status-success=windows 2.6"
- "status-success=windows 2.7"
Expand All @@ -20,9 +19,6 @@ pull_request_rules:
- "status-success=ci/circleci: jruby-9.2-ascii_spec"
- "status-success=ci/circleci: jruby-9.2-rubocop"
- "status-success=ci/circleci: jruby-9.2-spec"
- "status-success=ci/circleci: ruby-2.4-ascii_spec"
- "status-success=ci/circleci: ruby-2.4-rubocop"
- "status-success=ci/circleci: ruby-2.4-spec"
- "status-success=ci/circleci: ruby-2.5-ascii_spec"
- "status-success=ci/circleci: ruby-2.5-rubocop"
- "status-success=ci/circleci: ruby-2.5-spec"
Expand Down
24 changes: 10 additions & 14 deletions .rubocop.yml
Expand Up @@ -14,7 +14,7 @@ AllCops:
- 'tmp/**/*'
- '.git/**/*'
- 'bin/*'
TargetRubyVersion: 2.4
TargetRubyVersion: 2.5
SuggestExtensions: false

Naming/PredicateName:
Expand Down Expand Up @@ -46,19 +46,9 @@ Layout/EndOfLine:

Layout/ClassStructure:
Enabled: true
Categories:
module_inclusion:
- include
- prepend
- extend
ExpectedOrder:
- module_inclusion
- constants
- public_class_methods
- initializer
- instance_methods
- protected_methods
- private_methods

Layout/RedundantLineBreak:
Enabled: true

Layout/TrailingWhitespace:
AllowInHeredoc: false
Expand Down Expand Up @@ -129,6 +119,12 @@ Performance/CollectionLiteralInLoop:
- 'Rakefile'
- 'spec/**/*.rb'

Performance/EndWith:
SafeMultiline: false

Performance/StartWith:
SafeMultiline: false

RSpec/StubbedMock:
Enabled: false

Expand Down
16 changes: 8 additions & 8 deletions .rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2021-02-14 15:55:26 UTC using RuboCop version 1.9.1.
# on 2021-04-05 09:42:51 UTC using RuboCop version 1.12.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand All @@ -10,20 +10,20 @@
InternalAffairs/NodeDestructuring:
Enabled: false

# Offense count: 57
# Offense count: 49
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 187
Max: 186

# Offense count: 254
# Offense count: 228
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
Max: 14

# Offense count: 5
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
Max: 135
Max: 129

# Offense count: 10
RSpec/AnyInstance:
Expand All @@ -33,13 +33,13 @@ RSpec/AnyInstance:
- 'spec/rubocop/cop/team_spec.rb'
- 'spec/rubocop/target_finder_spec.rb'

# Offense count: 1119
# Offense count: 1147
# Configuration parameters: Prefixes.
# Prefixes: when, with, without
RSpec/ContextWording:
Enabled: false

# Offense count: 5579
# Offense count: 5619
# Configuration parameters: Max.
RSpec/ExampleLength:
Enabled: false
Expand All @@ -58,7 +58,7 @@ RSpec/ExpectOutput:
- 'spec/rubocop/result_cache_spec.rb'
- 'spec/rubocop/target_finder_spec.rb'

# Offense count: 365
# Offense count: 370
RSpec/MultipleExpectations:
Max: 25

Expand Down

0 comments on commit 984ff11

Please sign in to comment.