rubocopital 0.7.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa91448eedebae43c1fda455137780e6a8c79b72bc6ea614b653a45c29ef7443
4
- data.tar.gz: c134b1779190323312c903335b456642293ee35a3ca96320d8c793bbfaacabf4
3
+ metadata.gz: a44d29c545f71dd22af55d799e3ad770234f2d22ba7c7bde5a159e0fd6135c80
4
+ data.tar.gz: 92e76fcf364aa414181903a0842bdad4e1dd5c7e1649d04401d9f210a37ed404
5
5
  SHA512:
6
- metadata.gz: e9334d8baa0e4377e9a09a9cbdec723bf6a91a3cf2fae7c61564e2cdf4b5ff410b0455f626013e52cdd39393614f67426d3ae7c73f6c1cc83d03044be38f519e
7
- data.tar.gz: f08d8109365ca006946776f531969d054df10c743dc6d739efd5ca61c1fb2f518a360253deef34184860d69c2e608767c254a654b90afe67091fca28f6297f99
6
+ metadata.gz: 9131b2ad3253b0f327d4ecaf751af263a5063782152967ea8c6ddb3fb1d496d3e47ec9ea3d4594db0b698dda5806234716de8ecec78c9f036379ab71dacccff2
7
+ data.tar.gz: a3d2aa3566cd7eb021080d1a1b5b94a8e8028123b27d56755a24610f0ef7838440673690b5abb1ef20df9d7acf6b8d4874d7ae5bcd12bdd9aba8eb50ef889811
@@ -3,6 +3,22 @@ name: Ruby
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
+ build-ruby-30:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v1
12
+ - name: Set up Ruby 3.0
13
+ uses: actions/setup-ruby@v1
14
+ with:
15
+ ruby-version: 3.0.x
16
+ - name: Build and test with Rake
17
+ run: |
18
+ gem install bundler
19
+ bundle install --jobs 4 --retry 3
20
+ bundle exec rake
21
+
6
22
  build-ruby-26:
7
23
 
8
24
  runs-on: ubuntu-latest
@@ -38,3 +38,18 @@ Performance/BindCall:
38
38
 
39
39
  Performance/BigDecimalWithNumericArgument:
40
40
  Enabled: true
41
+
42
+ Performance/BlockGivenWithExplicitBlock:
43
+ Enabled: true
44
+
45
+ Performance/CollectionLiteralInLoop:
46
+ Enabled: true
47
+
48
+ Performance/ConstantRegexp:
49
+ Enabled: true
50
+
51
+ Performance/MethodObjectAsBlock:
52
+ Enabled: true
53
+
54
+ Performance/Sum:
55
+ Enabled: true
data/.rubocop.yml CHANGED
@@ -3,4 +3,6 @@ require:
3
3
  - rubocop-rails
4
4
  - rubocop-rspec
5
5
 
6
- inherit_from: default.yml
6
+ inherit_from:
7
+ - default.yml
8
+
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.0] - 05 Febuary 2021
10
+
11
+ ### Changed
12
+
13
+ - Upgrade Rubocop from 0.89.0 to 1.9.1
14
+ - Upgrade Rubocop-Performance from 1.7.1 to 1.9.2
15
+ - Upgrade Rubocop-Rails from 2.7.0 to 2.9.1
16
+
9
17
  ## [0.7.1] - 05 October 2020
10
18
 
11
19
  - Upgrade rubocop to 0.89.0 to prevent bug in 0.88.0
data/README.md CHANGED
@@ -7,7 +7,7 @@ This is the common configuration for ruby-style checks by [Rubocop](https://gith
7
7
  Add this line to your application's Gemfile under the `development` and `test` groups to include a specific version of this gem:
8
8
 
9
9
  ```ruby
10
- gem 'rubocopital', '~> 0.6.1', require: false
10
+ gem 'rubocopital', '~> 1.0.0', require: false
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -36,7 +36,7 @@ you can just add them below.
36
36
  - default.yml
37
37
 
38
38
  AllCops:
39
- TargetRubyVersion: 2.3
39
+ TargetRubyVersion: 3.0
40
40
  DisplayCopNames: false
41
41
  DisplayStyleGuide: true
42
42
  ```
data/default.yml CHANGED
@@ -1,4 +1,6 @@
1
- inherit_from: .rubocop-performance.yml
1
+ inherit_from:
2
+ - .rubocop-performance.yml
3
+ - new_cops.yml
2
4
 
3
5
  AllCops:
4
6
  TargetRubyVersion: 2.6
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubocopital
4
- VERSION = "0.7.1"
4
+ VERSION = "1.0.0"
5
5
  end
data/new_cops.yml ADDED
@@ -0,0 +1,99 @@
1
+ Lint/DuplicateRequire: # (new in 0.90)
2
+ Enabled: false
3
+ Lint/EmptyFile: # (new in 0.90)
4
+ Enabled: false
5
+ Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
6
+ Enabled: false
7
+ Lint/UselessMethodDefinition: # (new in 0.90)
8
+ Enabled: false
9
+ Style/CombinableLoops: # (new in 0.90)
10
+ Enabled: false
11
+ Style/KeywordParametersOrder: # (new in 0.90)
12
+ Enabled: false
13
+ Style/RedundantSelfAssignment: # (new in 0.90)
14
+ Enabled: false
15
+ Style/SoleNestedConditional: # (new in 0.89)
16
+ Enabled: false
17
+
18
+ Layout/BeginEndAlignment: # (new in 0.91)
19
+ Enabled: false
20
+ Lint/ConstantDefinitionInBlock: # (new in 0.91)
21
+ Enabled: false
22
+ Lint/IdentityComparison: # (new in 0.91)
23
+ Enabled: false
24
+ Lint/UselessTimes: # (new in 0.91)
25
+ Enabled: false
26
+
27
+ Lint/HashCompareByIdentity: # (new in 0.93)
28
+ Enabled: false
29
+ Lint/RedundantSafeNavigation: # (new in 0.93)
30
+ Enabled: false
31
+ Style/ClassEqualityComparison: # (new in 0.93)
32
+ Enabled: false
33
+
34
+ Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
35
+ Enabled: false
36
+ Lint/EmptyBlock: # (new in 1.1)
37
+ Enabled: false
38
+ Lint/ToEnumArguments: # (new in 1.1)
39
+ Enabled: false
40
+ Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
41
+ Enabled: false
42
+ Style/ArgumentsForwarding: # (new in 1.1)
43
+ Enabled: false
44
+ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
45
+ Enabled: false
46
+ Style/SwapValues: # (new in 1.1)
47
+ Enabled: false
48
+
49
+ Layout/SpaceBeforeBrackets: # (new in 1.7)
50
+ Enabled: false
51
+ Lint/AmbiguousAssignment: # (new in 1.7)
52
+ Enabled: false
53
+ Lint/DeprecatedConstants: # (new in 1.8)
54
+ Enabled: false
55
+ Lint/DuplicateBranch: # (new in 1.3)
56
+ Enabled: false
57
+ Lint/EmptyClass: # (new in 1.3)
58
+ Enabled: false
59
+ Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
60
+ Enabled: false
61
+ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
62
+ Enabled: false
63
+ Lint/NumberedParameterAssignment: # (new in 1.9)
64
+ Enabled: false
65
+ Lint/OrAssignmentToConstant: # (new in 1.9)
66
+ Enabled: false
67
+ Lint/RedundantDirGlobSort: # (new in 1.8)
68
+ Enabled: false
69
+ Lint/SymbolConversion: # (new in 1.9)
70
+ Enabled: false
71
+ Lint/TripleQuotes: # (new in 1.9)
72
+ Enabled: false
73
+ Lint/UnexpectedBlockArity: # (new in 1.5)
74
+ Enabled: false
75
+ Style/CollectionCompact: # (new in 1.2)
76
+ Enabled: false
77
+ Style/EndlessMethod: # (new in 1.8)
78
+ Enabled: false
79
+ Style/HashExcept: # (new in 1.7)
80
+ Enabled: false
81
+ Style/IfWithBooleanLiteralBranches: # (new in 1.9)
82
+ Enabled: false
83
+ Style/NegatedIfElseCondition: # (new in 1.2)
84
+ Enabled: false
85
+ Style/NilLambda: # (new in 1.3)
86
+ Enabled: false
87
+ Style/RedundantArgument: # (new in 1.4)
88
+ Enabled: false
89
+
90
+ Rails/AfterCommitOverride: # (new in 2.8)
91
+ Enabled: false
92
+ Rails/AttributeDefaultBlockValue: # (new in 2.9)
93
+ Enabled: false
94
+ Rails/SquishedSQLHeredocs: # (new in 2.8)
95
+ Enabled: false
96
+ Rails/WhereEquals: # (new in 2.9)
97
+ Enabled: false
98
+ Rails/WhereNot: # (new in 2.8)
99
+ Enabled: false
data/rubocopital.gemspec CHANGED
@@ -32,10 +32,10 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ["lib"]
34
34
 
35
- spec.add_runtime_dependency "rubocop", "~> 0.89.0"
36
- spec.add_runtime_dependency "rubocop-performance", "~> 1.7.1"
37
- spec.add_runtime_dependency "rubocop-rails", "2.7.0"
38
- spec.add_runtime_dependency "rubocop-rspec", "1.42.0"
35
+ spec.add_runtime_dependency "rubocop", "~> 1.9.0"
36
+ spec.add_runtime_dependency "rubocop-performance", "~> 1.9.2"
37
+ spec.add_runtime_dependency "rubocop-rails", "2.9.1"
38
+ spec.add_runtime_dependency "rubocop-rspec", "2.2.0"
39
39
 
40
40
  spec.add_development_dependency "bundler"
41
41
  spec.add_development_dependency "rake", ">= 12.3.3"
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocopital
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Eeken
8
8
  - Martijn Bleeker
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-10-05 00:00:00.000000000 Z
12
+ date: 2021-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,56 +17,56 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.89.0
20
+ version: 1.9.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.89.0
27
+ version: 1.9.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-performance
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.7.1
34
+ version: 1.9.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.7.1
41
+ version: 1.9.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rubocop-rails
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 2.7.0
48
+ version: 2.9.1
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 2.7.0
55
+ version: 2.9.1
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rubocop-rspec
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 1.42.0
62
+ version: 2.2.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 1.42.0
69
+ version: 2.2.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: bundler
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -138,6 +138,7 @@ files:
138
138
  - default.yml
139
139
  - lib/rubocopital.rb
140
140
  - lib/rubocopital/version.rb
141
+ - new_cops.yml
141
142
  - project.yml
142
143
  - rubocopital.gemspec
143
144
  homepage: https://github.com/youngcapital/rubocopital
@@ -147,7 +148,7 @@ metadata:
147
148
  hompeage_uri: https://github.com/youngcapital/rubocopital
148
149
  source_code_uri: https://github.com/youngcapital/rubocopital
149
150
  changelog_uri: https://github.com/youngcapital/rubocopital/blob/master/CHANGELOG.md
150
- post_install_message:
151
+ post_install_message:
151
152
  rdoc_options: []
152
153
  require_paths:
153
154
  - lib
@@ -162,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
163
  - !ruby/object:Gem::Version
163
164
  version: '0'
164
165
  requirements: []
165
- rubygems_version: 3.1.2
166
- signing_key:
166
+ rubygems_version: 3.1.4
167
+ signing_key:
167
168
  specification_version: 4
168
169
  summary: Shared rubocop configuration
169
170
  test_files: []