rubocop-bitcrowd 2.1.1 → 2.3.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: 4da182ba7e00886a23ae6412307b38b015086478f8b76dc459283e57038acbd0
4
- data.tar.gz: cabd8a92d6db0ffcae5ccb36b9484da47725da0d96de7d1ea3d7d8514b5bacae
3
+ metadata.gz: f1afcad46acf30a346e3dd85108dac524181ae6b6fe2f70bc9e2b3137b48d1ef
4
+ data.tar.gz: d07e727d1280c85c3eecf6f15637b6b3de822c41f9d88eef456ce2f84c38dc4e
5
5
  SHA512:
6
- metadata.gz: fb35623aff7a5a99eebeb6342a70ebc6d76b0558762172dd8cb185c3025e4067ec1cd2806d84cb6e4734b743afd4a05d6cf47671d4c76b109d23fe4f3ad3d691
7
- data.tar.gz: bdfedd513aa9301fd5ee8f15df0df430f69a1c7255453afec363a8b62c96007daedc8ff9301b44a7b303e83537f335569a8b68198e0e8222acd50c56147591ea
6
+ metadata.gz: bd4a62e0d3be6e42d1ec0966312aad254faa2d0355c8feb4fe1092e7bb880ce9e58ea7e4a2a4bad6541dabc20047fe0634ad0a83d066c94a419b44d1da3b134f
7
+ data.tar.gz: f54cfa9b71918f256c99e068afa8940b4ffb8282661ed98cfe4fb8d5fcfb0be2ec2413add7f610a9abbd558b986f4e03143bac73dcabf0bedbd4b239390797dd
@@ -0,0 +1 @@
1
+ require: rubocop-performance
@@ -0,0 +1,50 @@
1
+ require: rubocop-rails
2
+
3
+ Rails/ActionFilter:
4
+ Enabled: true
5
+
6
+ Rails/Date:
7
+ Enabled: true
8
+
9
+ Rails/Delegate:
10
+ Enabled: true
11
+
12
+ Rails/FindBy:
13
+ Enabled: true
14
+
15
+ Rails/FindEach:
16
+ Enabled: true
17
+
18
+ Rails/HasAndBelongsToMany:
19
+ Enabled: true
20
+
21
+ Rails/Output:
22
+ Enabled: true
23
+
24
+ Rails/PluralizationGrammar:
25
+ Enabled: true
26
+
27
+ Rails/HttpPositionalArguments:
28
+ Enabled: true
29
+
30
+ Rails/ReadWriteAttribute:
31
+ Enabled: true
32
+
33
+ Rails/ScopeArgs:
34
+ Enabled: true
35
+
36
+ Rails/SkipsModelValidations:
37
+ Enabled: false
38
+
39
+ Rails/TimeZone:
40
+ Enabled: true
41
+
42
+ Rails/UnknownEnv:
43
+ Environments:
44
+ - development
45
+ - test
46
+ - staging
47
+ - production
48
+
49
+ Rails/Validation:
50
+ Enabled: true
data/.rubocop.yml CHANGED
@@ -16,62 +16,6 @@ Style/Documentation:
16
16
  Lint/UselessAccessModifier:
17
17
  Enabled: true
18
18
 
19
- Metrics/LineLength:
20
- Enabled: true
21
- Max: 120
22
-
23
- Rails:
24
- Enabled: true
25
-
26
- Rails/ActionFilter:
27
- Enabled: true
28
-
29
- Rails/Date:
30
- Enabled: true
31
-
32
- Rails/Delegate:
33
- Enabled: true
34
-
35
- Rails/FindBy:
36
- Enabled: true
37
-
38
- Rails/FindEach:
39
- Enabled: true
40
-
41
- Rails/HasAndBelongsToMany:
42
- Enabled: true
43
-
44
- Rails/Output:
45
- Enabled: true
46
-
47
- Rails/PluralizationGrammar:
48
- Enabled: true
49
-
50
- Rails/HttpPositionalArguments:
51
- Enabled: true
52
-
53
- Rails/ReadWriteAttribute:
54
- Enabled: true
55
-
56
- Rails/ScopeArgs:
57
- Enabled: true
58
-
59
- Rails/SkipsModelValidations:
60
- Enabled: false
61
-
62
- Rails/TimeZone:
63
- Enabled: true
64
-
65
- Rails/UnknownEnv:
66
- Environments:
67
- - development
68
- - test
69
- - staging
70
- - production
71
-
72
- Rails/Validation:
73
- Enabled: true
74
-
75
19
  Style/AndOr:
76
20
  Enabled: true
77
21
 
@@ -98,11 +42,15 @@ Metrics/MethodLength:
98
42
 
99
43
  Metrics/BlockLength:
100
44
  Enabled: true
101
- ExcludedMethods: ['describe', 'context', 'define', 'factory', 'namespace']
45
+ IgnoredMethods: ['describe', 'context', 'define', 'factory', 'namespace']
102
46
 
103
47
  Metrics/AbcSize:
104
48
  Enabled: true
105
49
 
50
+ Layout/LineLength:
51
+ Enabled: true
52
+ Max: 120
53
+
106
54
  Layout/SpaceInsideArrayLiteralBrackets:
107
55
  Enabled: true
108
56
  AutoCorrect: true
data/CHANGELOG.md CHANGED
@@ -1,34 +1,93 @@
1
- # Rubocop-Bitcrowd Changelog
1
+ # Changelog rubocop-bitcrowd
2
2
 
3
- Presented in reverse chronological order.
3
+ Presented in reverse chronological order. Document adheres to [keepachangelog.com](https://keepachangelog.com/en/1.0.0/), though our sections are called "Deprecations", "Potentially breaking changes", "New features", and "Fixes".
4
4
 
5
- ## master
5
+ ## Unreleased
6
6
 
7
- https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.0...HEAD
7
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.3.0...HEAD
8
8
 
9
- *Put high-level summary here before releasing a new version*
9
+ ## `2.3.0` (2022-02-21)
10
10
 
11
- ### Deprecations:
11
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.2.0...v2.3.0
12
12
 
13
- * *Put deprecations here (in a brief bullet point)*
13
+ ### Fixes
14
+
15
+ * [#42](https://github.com/bitcrowd/rubocop-bitcrowd/pull/42) Fix deprecation warning by renaming `ExcludedMethods` to `IgnoredMethods` and lock the Rubocop version to `>= 1.5.0`.
16
+ See rubocop/rubocop#9098 and https://github.com/rubocop/rubocop/blob/1e55b1aa5e4c5eaeccad5d61f08b7930ed6bc341/relnotes/v1.5.0.md
17
+ * [#43](https://github.com/bitcrowd/rubocop-bitcrowd/pull/43) Update documentation mentioning the `master` branch, to use `main` instead
18
+
19
+ ## `2.2.0` (2020-03-26)
20
+
21
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.3...v2.2.0
22
+
23
+ With this version update, `rubocop-bitcrowd` adapts to RuboCop's new modularized architecture of having separate gems for different cop targets (Rails, Rspec, Performance).
24
+
25
+ `rubocop-bitcrowd` includes separate configuration files for each RuboCop gem. To continue using the previous configuration including rules for Rspec and Rails, add the respective gems to your Gemfile:
26
+
27
+ ```ruby
28
+ gem 'rubocop-rails', require: false
29
+ gem 'rubocop-rspec', require: false
30
+ ```
31
+
32
+ And update the configuration in your `.rubocop.yml` to include the bitcrowd rules:
14
33
 
15
- ### Potentially breaking changes:
34
+ ```yml
35
+ inherit_gem:
36
+ rubocop-bitcrowd:
37
+ - .rubocop.yml
38
+ - .rubocop-rspec.yml
39
+ - .rubocop-rails.yml
40
+ ```
41
+
42
+ As a new addition, `rubocop-bitcrowd` now also includes rules for the `rubocop-performance` gem. To use them, add the gem to your Gemfile:
43
+
44
+ ```ruby
45
+ gem 'rubocop-performance', require: false
46
+ ```
47
+
48
+ Then include the bitcrowd config in your `.rubocop.yml`:
49
+
50
+ ```yml
51
+ inherit_gem:
52
+ rubocop-bitcrowd:
53
+ - .rubocop.yml
54
+ - .rubocop-rspec.yml
55
+ - .rubocop-rails.yml
56
+ - .rubocop-performance.yml
57
+ ```
16
58
 
17
- * *Put potentially breaking changes here (in a brief bullet point)*
59
+ ### Potentially breaking changes
18
60
 
19
- ### New features:
61
+ * [#34](https://github.com/bitcrowd/rubocop-bitcrowd/pull/34) Extract `rails` cops into separate configuration based on [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails), following the modularization of `rubocop` itself.
20
62
 
21
- * *Put new features here (in a brief bullet point)*
63
+ ### New features
22
64
 
23
- ### Fixes:
65
+ * [#32](https://github.com/bitcrowd/rubocop-bitcrowd/pull/32) add possibility to include [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance) cops.
24
66
 
25
- * *Put fixes here (in a brief bullet point)*
67
+ ## `2.1.3` (2020-03-26)
68
+
69
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.2...v2.1.3
70
+
71
+ This releases silences some deprecation warnings and locks down the minimal `rubocop` version `rubocop-bitcrowd` depends on.
72
+
73
+ ### Fixes
74
+
75
+ * [#31](https://github.com/bitcrowd/rubocop-bitcrowd/pull/31) Fix deprecation warning by moving `LineLength` cop from `Metrics` to `Layout` and lock the Rubocop version to `>= 0.78.0` and `< 0.79`.
76
+ * [#31](https://github.com/bitcrowd/rubocop-bitcrowd/pull/31) Lock down the minimal `rubocop` version we depend on. Similar to [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec) we're only setting the lower boundary now.
77
+
78
+ ## `2.1.2` (2019-12-17)
79
+
80
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.1...v2.1.2
81
+
82
+ ### Fixes
83
+
84
+ * Remove rubocop version lock to 0.57.x
26
85
 
27
86
  ## `2.1.1` (2019-12-17)
28
87
 
29
88
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.0...v2.1.1
30
89
 
31
- ### Fixes:
90
+ ### Fixes
32
91
 
33
92
  * Add compartment to `Documentation` cop
34
93
 
@@ -36,7 +95,8 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.0...v2.1.1
36
95
 
37
96
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.0.0...v2.1.0
38
97
 
39
- ### New features:
98
+ ### New features
99
+
40
100
  * Exclude `namespace` method from `Metrics/BlockLength` to support longer namespace definitions in rake tasks.
41
101
 
42
102
  ## `2.0.0` (2019-02-06)
@@ -55,7 +115,7 @@ inherit_mode:
55
115
  - Exclude
56
116
  ```
57
117
 
58
- ### Potentially breaking changes:
118
+ ### Potentially breaking changes
59
119
 
60
120
  * require a rubocop version >= 0.57.0
61
121
  * remove directories rubocop already excludes by default from the `AllCops:Exclude` list
@@ -68,7 +128,7 @@ inherit_mode:
68
128
  - Exclude
69
129
  ```
70
130
 
71
- ### Fixes:
131
+ ### Fixes
72
132
 
73
133
  * Also exclude the `tmp`, `log` and `storage` directories from being inspected.
74
134
  Working on a Rails application, especially the `tmp` directory fills up over time and slows down linting the project enormously. Same goes for the `storage` directory: here rubocop also has to dig through deeply nested folder structures.
@@ -80,12 +140,12 @@ This release is a maintenance release. Most notably it let's us be compatile wit
80
140
 
81
141
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.1...v1.3.0
82
142
 
83
- ### New features:
143
+ ### New features
84
144
 
85
145
  * added `staging` to the list of known environments
86
146
  * enforce frozen_string_literal comment
87
147
 
88
- ### Fixes:
148
+ ### Fixes
89
149
 
90
150
  * between rubocop version 0.55 and 0.56 we stopped processing most files because we overwrote `AllCops/Include`.
91
151
  This is fixed, but requires a rubocop version of 0.56 or higher.
@@ -95,7 +155,7 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.1...v1.3.0
95
155
 
96
156
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.0...v1.2.1
97
157
 
98
- ### Potentially breaking changes:
158
+ ### Potentially breaking changes
99
159
 
100
160
  * exclude spec/features from the `RSpec/ExampleLength` cop
101
161
 
@@ -107,7 +167,7 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.0...v1.2.1
107
167
 
108
168
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.2...v1.2.0
109
169
 
110
- ### Fixes:
170
+ ### Fixes
111
171
 
112
172
  * The cop `Layout/SpaceInsideBrackets` was deprecated and split into two sub-cops:
113
173
  * `Layout/SpaceInsideArrayLiteralBrackets`
@@ -117,16 +177,15 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.2...v1.2.0
117
177
 
118
178
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.1...v1.1.2
119
179
 
120
- ### Potentially breaking changes:
180
+ ### Potentially breaking changes
121
181
 
122
182
  * Changed to nested module style see: https://github.com/bitcrowd/rubocop-bitcrowd/pull/4
123
183
 
124
-
125
184
  ## `1.1.1` (2017-09-21)
126
185
 
127
186
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.0...v1.1.1
128
187
 
129
- ### Fixes:
188
+ ### Fixes
130
189
 
131
190
  * exclude db/schema.rb from being evaluated
132
191
  * the cop `Style/SpaceInsideBrackets` was renamed to `Layout/SpaceInsideBrackets`
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Rubocop::Bitcrowd
1
+ # rubocop-bitcrowd 🚓
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/rubocop-bitcrowd.svg)](https://badge.fury.io/rb/rubocop-bitcrowd)
2
4
 
3
5
  The bitcrowd rubocop.yml as a gem.
4
6
 
@@ -7,8 +9,7 @@ The bitcrowd rubocop.yml as a gem.
7
9
  Add this lines to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- gem 'rubocop'
11
- gem 'rubocop-bitcrowd'
12
+ gem 'rubocop-bitcrowd', require: false
12
13
  ```
13
14
 
14
15
  And then execute:
@@ -17,7 +18,7 @@ And then execute:
17
18
 
18
19
  ## Usage
19
20
 
20
- To use the configuration in your project create a .rubocop.yml with:
21
+ To use the configuration in your project create a `.rubocop.yml` with:
21
22
 
22
23
  ```yml
23
24
  inherit_gem:
@@ -30,18 +31,30 @@ inherit_mode:
30
31
  - Exclude
31
32
  ```
32
33
 
33
- # Using rubocop-rspec
34
+ ### Using other rubocop gems
35
+
36
+ There are also config files for the other `rubocop` gems:
37
+ * [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails)
38
+ * [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec)
39
+ * [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance)
40
+
41
+ To use any of them, add the respective gem to your Gemfile:
34
42
 
35
- There is also a config file for rubocop-rspec. To use it add rubocop-rspec to your Gemfile.
36
43
  ```ruby
37
- gem 'rubocop-rspec'
44
+ gem 'rubocop-rails', require: false
45
+ gem 'rubocop-rspec', require: false
46
+ gem 'rubocop-performance', require: false
38
47
  ```
39
48
 
49
+ Then include the bitcrowd config in your `.rubocop.yml`:
50
+
40
51
  ```yml
41
52
  inherit_gem:
42
53
  rubocop-bitcrowd:
43
54
  - .rubocop.yml
44
55
  - .rubocop-rspec.yml
56
+ - .rubocop-rails.yml
57
+ - .rubocop-performance.yml
45
58
 
46
59
  # Note: skip this if you want to override the default AllCops:Include and AllCops:Exclude list
47
60
  inherit_mode:
@@ -62,17 +75,17 @@ This gem provides a simple script, that can help you with this task:
62
75
  4. Run the script (may take a while, when you want to continue working on your project meanwhile run this in a separate checkout): `rubocop-autofix`
63
76
  5. Review all commits made by the script and run your tests. You can now drop certain commits of cops you don't want. Often it may make some sense to run the script again with changed settings, since rebasing 100+ commits is no fun.
64
77
 
65
- # Development
78
+ ## Development
66
79
 
67
80
  Any contributions are welcome. If you attempt to change the behavior of this gem it might be wise to open an issue first to discuss the change. Otherwise feel free to open a PR.
68
81
 
69
- Every PR should have a change in the [CHANGELOG](./CHANGELOG.md) file (within the [`master` section](./CHANGELOG.md#master)) briefly outlining the attempted changes.
82
+ Every PR should have a change in the [CHANGELOG](./CHANGELOG.md) file (within the [`main` section](./CHANGELOG.md#main)) briefly outlining the attempted changes.
70
83
 
71
- ## Release a new version
84
+ ### Release a new version
72
85
 
73
86
  To release a new version, follow these steps:
74
87
 
75
- 1. update the [CHANGELOG](./CHANGELOG.md) to reflect the new release and prepare a new [`master` section](./CHANGELOG.md#master)
88
+ 1. update the [CHANGELOG](./CHANGELOG.md) to reflect the new release and prepare a new [`main` section](./CHANGELOG.md#main)
76
89
  2. update the version in `rubocop-bitcrowd.gemspec` according to [semver](https://semver.org/)
77
90
  3. commit that change
78
91
  4. run `rake release`
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'rubocop-bitcrowd'
3
- spec.version = '2.1.1'
3
+ spec.version = '2.3.0'
4
4
  spec.authors = ['bitcrowd']
5
5
  spec.email = ['info@bitcrowd.net']
6
6
 
@@ -9,18 +9,31 @@ Gem::Specification.new do |spec|
9
9
  'settings we use at bitcrowd into your project'
10
10
  spec.homepage = 'https://github.com/bitcrowd/rubocop-bitcrowd'
11
11
  spec.license = 'MIT'
12
+
12
13
  spec.post_install_message = <<~HEREDOC
13
14
 
14
- This version of rubocop-bitcrowd no longer overrides RuboCop's AllCops:Exclude list.
15
- It only adds extra patterns not included in the defaults.
15
+ Starting with this version of rubocop-bitcrowd, we are following RuboCop's
16
+ modularization into separate gems and splitting up our configuration into:
17
+ - .rubocop.yml
18
+ - .rubocop-rails.yml
19
+ - .rubocop-rspec.yml
20
+ - .rubocop-performance.yml
21
+
22
+ If you want to include the `rails`, `rspec` or `performance` cops, add the
23
+ respective gems to your Gemfile:
16
24
 
17
- Therefore if you want to keep excluding both, the bitcrowd patterns as well as the RuboCop default ones,
18
- add this to your .rubocop.yml
19
- inherit_mode:
20
- merge:
21
- - Exclude
25
+ gem 'rubocop-rails', require: false
26
+ gem 'rubocop-rspec', require: false
27
+ gem 'rubocop-performance', require: false
22
28
 
23
- For more details: https://rubocop.readthedocs.io/en/latest/configuration/#merging-arrays-using-inherit_mode
29
+ Add include the bitcrowd specific configuration in your .rubocop.yml
30
+
31
+ inherit_gem:
32
+ rubocop-bitcrowd:
33
+ - .rubocop.yml
34
+ - .rubocop-rspec.yml
35
+ - .rubocop-rails.yml
36
+ - .rubocop-performance.yml
24
37
 
25
38
  Cheers!
26
39
  Your friends at bitcrowd
@@ -30,11 +43,15 @@ Gem::Specification.new do |spec|
30
43
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
31
44
  f.match(%r{^(test|spec|features)/})
32
45
  end
33
- spec.bindir = 'exe'
34
- spec.executables = 'rubocop-autofix'
46
+ spec.bindir = 'exe'
47
+ spec.executables = 'rubocop-autofix'
48
+
49
+ spec.metadata = {
50
+ 'changelog_uri' => 'https://github.com/bitcrowd/rubocop-bitcrowd/blob/main/CHANGELOG.md'
51
+ }
35
52
 
36
- spec.add_runtime_dependency 'rubocop', '~> 0.57.0'
53
+ spec.add_runtime_dependency 'rubocop', '>= 1.5.0'
37
54
 
38
- spec.add_development_dependency 'bundler', '~> 1.14'
39
- spec.add_development_dependency 'rake', '~> 10.0'
55
+ spec.add_development_dependency 'bundler', '>= 2.1.0'
56
+ spec.add_development_dependency 'rake', '~> 12.3.3'
40
57
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-bitcrowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bitcrowd
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.57.0
19
+ version: 1.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.57.0
26
+ version: 1.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.14'
33
+ version: 2.1.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.14'
40
+ version: 2.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: 12.3.3
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: 12.3.3
55
55
  description: Use this as a quick start to get rubocop with the settings we use at
56
56
  bitcrowd into your project
57
57
  email:
@@ -63,6 +63,8 @@ extra_rdoc_files: []
63
63
  files:
64
64
  - ".github/PULL_REQUEST_TEMPLATE.md"
65
65
  - ".gitignore"
66
+ - ".rubocop-performance.yml"
67
+ - ".rubocop-rails.yml"
66
68
  - ".rubocop-rspec.yml"
67
69
  - ".rubocop.yml"
68
70
  - CHANGELOG.md
@@ -75,19 +77,32 @@ files:
75
77
  homepage: https://github.com/bitcrowd/rubocop-bitcrowd
76
78
  licenses:
77
79
  - MIT
78
- metadata: {}
80
+ metadata:
81
+ changelog_uri: https://github.com/bitcrowd/rubocop-bitcrowd/blob/main/CHANGELOG.md
79
82
  post_install_message: |2+
80
83
 
81
- This version of rubocop-bitcrowd no longer overrides RuboCop's AllCops:Exclude list.
82
- It only adds extra patterns not included in the defaults.
84
+ Starting with this version of rubocop-bitcrowd, we are following RuboCop's
85
+ modularization into separate gems and splitting up our configuration into:
86
+ - .rubocop.yml
87
+ - .rubocop-rails.yml
88
+ - .rubocop-rspec.yml
89
+ - .rubocop-performance.yml
90
+
91
+ If you want to include the `rails`, `rspec` or `performance` cops, add the
92
+ respective gems to your Gemfile:
93
+
94
+ gem 'rubocop-rails', require: false
95
+ gem 'rubocop-rspec', require: false
96
+ gem 'rubocop-performance', require: false
83
97
 
84
- Therefore if you want to keep excluding both, the bitcrowd patterns as well as the RuboCop default ones,
85
- add this to your .rubocop.yml
86
- inherit_mode:
87
- merge:
88
- - Exclude
98
+ Add include the bitcrowd specific configuration in your .rubocop.yml
89
99
 
90
- For more details: https://rubocop.readthedocs.io/en/latest/configuration/#merging-arrays-using-inherit_mode
100
+ inherit_gem:
101
+ rubocop-bitcrowd:
102
+ - .rubocop.yml
103
+ - .rubocop-rspec.yml
104
+ - .rubocop-rails.yml
105
+ - .rubocop-performance.yml
91
106
 
92
107
  Cheers!
93
108
  Your friends at bitcrowd
@@ -106,8 +121,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
121
  - !ruby/object:Gem::Version
107
122
  version: '0'
108
123
  requirements: []
109
- rubygems_version: 3.0.6
110
- signing_key:
124
+ rubygems_version: 3.1.2
125
+ signing_key:
111
126
  specification_version: 4
112
127
  summary: The bitcrowd rubocop.yml as a gem.
113
128
  test_files: []
129
+ ...