rubocop-inhouse 0.1.5 → 0.1.7

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: 9f2d2f82b334805ec6ea98e68d067953896fdc9c250cc12115bba836e09c8345
4
- data.tar.gz: dc33c2d393c7661f15226085d70679f3b6c1ac02eaf808613fb469d0180e449c
3
+ metadata.gz: 87fde93099c9be23e9ec32f96dc58865e92a2d4a3efd826c95bdeabac51e0e64
4
+ data.tar.gz: 047fe0d9e0c0b6de43f4ef9b83a4d25049cb153e97e096cc8a409ea6f639aaa4
5
5
  SHA512:
6
- metadata.gz: f382c1f1fd115f79da807496d0ff532989536738bbe1b38e8d403ccc217a353562e8e46c61f4f567a78fdf9308a867e74fe43ebf25789ae9e91fe923e7a7229e
7
- data.tar.gz: a416e0b1db47e19d14c15a168e9aff37c5f788c0faa32a014ce4594892d08b0a50cd64f27b7091518bbb2ecc0f70d348bb03fef88ec2a8187d613869619b309e
6
+ metadata.gz: a4bdc437be8069352135bfd0f355a494a69d6e0e3b4e2ec2b76941f072251325732c178106c24d4f4424ae22ea94b3a5ba8d21ff8a2676a47620c1b15a6a7aaf
7
+ data.tar.gz: 2ee8a08246da3aa0cd7c8c38775589cae26c5875a615c165d9a4131d26e687d3ccab8e253dad273123b2b9ea31b9e612d224b9263be5be03b6148e5028a3d0f7
data/README.md CHANGED
@@ -19,21 +19,17 @@ Inherit all of the stylistic rules and cops through an inheritance declaration
19
19
  in your `.rubocop.yml`:
20
20
 
21
21
  ```yaml
22
- # .rubocop.yml
22
+ require:
23
+ - rubocop-inhouse
23
24
  inherit_gem:
24
25
  rubocop-inhouse:
25
26
  - config/default.yml # generic Ruby rules and cops
26
27
  - config/rails.yml # Rails-specific rules and cops
27
- ```
28
28
 
29
- Alternatively, only require the additional custom cops in your `.rubocop.yml`
30
- without inheriting/enabling the other stylistic rules:
29
+ AllCops:
30
+ NewCops: enable
31
31
 
32
- ```yaml
33
- # .rubocop.yml
34
- require:
35
- - rubocop-inhouse # generic Ruby cops only
36
- - rubocop-inhouse-rails # Rails-specific cops only
32
+ # The rest of your overrides here
37
33
  ```
38
34
 
39
35
  For more granular control over which of RuboCop's rules are enabled for your
data/config/default.yml CHANGED
@@ -18,6 +18,7 @@ AllCops:
18
18
  - "**/bin/*"
19
19
  - "**/db/migrate/*.rb"
20
20
  - "**/db/schema.rb"
21
+ - "**/node_modules/**/*"
21
22
 
22
23
  # ==== GEMSPEC ====
23
24
  Gemspec/DeprecatedAttributeAssignment:
data/config/rails.yml CHANGED
@@ -160,6 +160,7 @@ Rails/SaveBang:
160
160
  AllowImplicitReturn: false
161
161
  Exclude:
162
162
  - "spec/factories/**/*.rb"
163
+ - "config/**/*.rb"
163
164
 
164
165
  Rails/ShortI18n:
165
166
  Enabled: true
data/config/rspec.yml CHANGED
@@ -110,11 +110,6 @@ RSpec/ExpectInHook:
110
110
  Exclude:
111
111
  - 'spec/factories/**/*.rb'
112
112
 
113
- RSpec/FilePath:
114
- Enabled: false
115
- Exclude:
116
- - 'spec/factories/**/*.rb'
117
-
118
113
  RSpec/InstanceVariable:
119
114
  Enabled: false
120
115
  Exclude:
data/config/style.yml CHANGED
@@ -214,9 +214,7 @@ Style/StringChars:
214
214
  Enabled: true
215
215
 
216
216
  Style/StringHashKeys:
217
- Enabled: true
218
- Exclude:
219
- - "config/routes.rb"
217
+ Enabled: false
220
218
 
221
219
  Style/SwapValues:
222
220
  Enabled: true
@@ -2,7 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Inhouse
5
- VERSION = "0.1.5"
6
- public_constant :VERSION
5
+ VERSION = "0.1.7"
7
6
  end
8
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-inhouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nolan J Tait
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-factory_bot
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '2.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '2.2'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rubocop-performance
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,20 @@ dependencies:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '2.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-rspec_rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '2.2'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '2.2'
97
125
  description: This is the rubocop configuration we use at inhouse.work for all our
98
126
  projects
99
127
  email:
@@ -141,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
169
  - !ruby/object:Gem::Version
142
170
  version: '0'
143
171
  requirements: []
144
- rubygems_version: 3.5.7
172
+ rubygems_version: 3.5.9
145
173
  signing_key:
146
174
  specification_version: 4
147
175
  summary: Rubocop configuration for InHouse projects