rubocul 3.0.0 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -7
- data/rubocul.gemspec +8 -3
- data/rubocul_default.yml +45 -19
- data/rubocul_rules_bundler.yml +9 -0
- data/rubocul_rules_graphql.yml +2 -0
- data/rubocul_rules_performance.yml +2 -0
- data/rubocul_rules_rails.yml +8 -0
- data/rubocul_rules_rspec.yml +2 -0
- data/rubocul_rules_security.yml +3 -0
- metadata +84 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5bd52a56018df2a5ad7f0ea23c93c2c6ec5a19b992ba843a12cabc15ef658e0
|
4
|
+
data.tar.gz: bf47ccb816607a88f2d9ce107826d4823a3ef59f28983f821b8b01ba4a511539
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a733e01711e7cf6b075e80733fb007c7fd580bb5db48ef8ceb13b01d7da1d1848f46a7bf8681bffcf91c25f21d8881b4b3298a8510585ef38fcefc03784640d
|
7
|
+
data.tar.gz: dd20326ea68a76213a4c7d5d1dd19d7c4ed91efaae5839bfe64951bdbf5d6b22758eb0706b4acade3835484b0ac4b3161032e1341c7037de00e16b79d869961b
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ RuboCop defaults for Columbia University Libraries projects.
|
|
7
7
|
Add this line to your Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem 'rubocul', '~>
|
10
|
+
gem 'rubocul', '~> 4.0'
|
11
11
|
```
|
12
12
|
|
13
13
|
And then execute:
|
@@ -21,8 +21,8 @@ inherit_gem:
|
|
21
21
|
rubocul: rubocul_default.yml
|
22
22
|
|
23
23
|
AllCops:
|
24
|
-
TargetRubyVersion:
|
25
|
-
TargetRailsVersion:
|
24
|
+
TargetRubyVersion: 3.1.0 # Update to your version of ruby
|
25
|
+
TargetRailsVersion: 7.0.1 # Update to your version of rails
|
26
26
|
```
|
27
27
|
|
28
28
|
## .rubocop_todo.yml
|
@@ -31,13 +31,10 @@ Understandably, it can be difficult to address all rubocop issues when adding ru
|
|
31
31
|
```
|
32
32
|
rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000
|
33
33
|
```
|
34
|
-
## Versioning & Dependencies
|
35
|
-
|
36
|
-
This project depends on `bixby`, which depends on `rubocop` and `rubocop-rspec`. `bixby` supports versions its dependent gems pessimistically. Therefore we also support version of `bixby` pessimistically. Once we get a release candidate we will match major version numbers with `bixby` major version numbers.
|
37
34
|
|
38
35
|
## Configuration Suggestion
|
39
36
|
|
40
|
-
If
|
37
|
+
If you'd like to propose a change to our configuration, please open a github pull request with the change (in rubocop_default, or the appropriate rubocup_rules_* file) with an explanation of why it would be useful.
|
41
38
|
|
42
39
|
## Testing
|
43
40
|
|
data/rubocul.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'rubocul'
|
3
|
-
spec.version = '
|
4
|
-
spec.authors = ["
|
3
|
+
spec.version = '4.0.2'
|
4
|
+
spec.authors = ["Eric O'Hanlon", "Ben Armintor", "Carla Galarza"]
|
5
5
|
|
6
6
|
spec.summary = 'A style configuration for Rubocop'
|
7
7
|
spec.description = 'Recommended Rubocop configuration for Ruby projects created by the Columbia University Libraries'
|
@@ -12,5 +12,10 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
14
14
|
|
15
|
-
spec.add_dependency '
|
15
|
+
spec.add_dependency 'rubocop', '~> 1.26'
|
16
|
+
spec.add_dependency 'rubocop-ast'
|
17
|
+
spec.add_dependency 'rubocop-performance'
|
18
|
+
spec.add_dependency 'rubocop-rails'
|
19
|
+
spec.add_dependency 'rubocop-rspec'
|
20
|
+
spec.add_dependency 'rubocop-graphql'
|
16
21
|
end
|
data/rubocul_default.yml
CHANGED
@@ -1,38 +1,64 @@
|
|
1
|
-
inherit_gem:
|
2
|
-
bixby: bixby_default.yml
|
3
|
-
|
4
|
-
inherit_mode:
|
5
|
-
merge:
|
6
|
-
- Exclude
|
7
|
-
|
8
1
|
require:
|
9
|
-
|
2
|
+
- ./lib/rubocop/cul.rb
|
3
|
+
|
4
|
+
inherit_from:
|
5
|
+
- rubocul_rules_bundler.yml
|
6
|
+
- rubocul_rules_performance.yml
|
7
|
+
- rubocul_rules_rails.yml
|
8
|
+
- rubocul_rules_rspec.yml
|
9
|
+
- rubocul_rules_security.yml
|
10
10
|
|
11
11
|
AllCops:
|
12
|
+
TargetRubyVersion: 2.7
|
13
|
+
# Disable any new "pending" cops that are introduced in a minor version update of rubocop.
|
14
|
+
# We only want to opt into these explicitly, or accept them when we update to a new MAJOR
|
15
|
+
# version of rubocop. See: https://docs.rubocop.org/rubocop/versioning.html#pending-cops
|
16
|
+
NewCops: disable
|
17
|
+
# DisabledByDefault: true
|
18
|
+
DisplayCopNames: true
|
12
19
|
Exclude:
|
13
|
-
- '
|
20
|
+
- 'db/**/*'
|
21
|
+
- 'script/**/*'
|
22
|
+
- 'bin/**/*'
|
23
|
+
- 'tmp/**/*'
|
24
|
+
- 'vendor/**/*'
|
14
25
|
- 'node_modules/**/*'
|
26
|
+
- 'app/javascript/**/*'
|
15
27
|
|
16
|
-
# Turning off until we can support multiple enforced styles (key and table). This is available in newer version of rubocop.
|
17
28
|
Layout/HashAlignment:
|
29
|
+
SupportedHashRocketStyles:
|
30
|
+
- key
|
31
|
+
- table
|
32
|
+
SupportedColonStyles:
|
33
|
+
- key
|
34
|
+
- table
|
35
|
+
|
36
|
+
Style/RedundantSelf:
|
18
37
|
Enabled: false
|
19
38
|
|
20
|
-
|
39
|
+
Style/HashSyntax:
|
40
|
+
# We may change this at some point, but it'll take some getting used to. To be safe, we're
|
41
|
+
# forcing explicit hash literal values for now.
|
42
|
+
EnforcedShorthandSyntax: never
|
43
|
+
|
21
44
|
Layout/FirstHashElementIndentation:
|
22
45
|
EnforcedStyle: consistent
|
23
46
|
|
24
|
-
RSpec/MessageSpies:
|
25
|
-
Enabled: false
|
26
|
-
|
27
47
|
Style/BlockDelimiters:
|
28
48
|
EnforcedStyle: braces_for_chaining
|
29
49
|
|
30
|
-
Style/
|
50
|
+
Style/ClassAndModuleChildren:
|
31
51
|
Enabled: false
|
32
52
|
|
33
|
-
|
34
|
-
|
35
|
-
|
53
|
+
Style/WordArray:
|
54
|
+
Enabled: false
|
55
|
+
|
56
|
+
Style/SymbolArray:
|
57
|
+
Enabled: false
|
58
|
+
|
59
|
+
RSpec/ExpectInHook:
|
60
|
+
Enabled: false
|
36
61
|
|
37
|
-
|
62
|
+
# TODO: Decide how we feel about this later
|
63
|
+
Naming/VariableNumber:
|
38
64
|
Enabled: false
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocul
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Carla Galarza
|
8
7
|
- Eric O'Hanlon
|
9
8
|
- Ben Armintor
|
9
|
+
- Carla Galarza
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-03-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -27,19 +27,89 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '2.0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
30
|
+
name: rubocop
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '1.26'
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.26'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rubocop-ast
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: rubocop-performance
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rubocop-rails
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: rubocop-rspec
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
type: :runtime
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: rubocop-graphql
|
31
101
|
requirement: !ruby/object:Gem::Requirement
|
32
102
|
requirements:
|
33
|
-
- -
|
103
|
+
- - ">="
|
34
104
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
105
|
+
version: '0'
|
36
106
|
type: :runtime
|
37
107
|
prerelease: false
|
38
108
|
version_requirements: !ruby/object:Gem::Requirement
|
39
109
|
requirements:
|
40
|
-
- -
|
110
|
+
- - ">="
|
41
111
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
112
|
+
version: '0'
|
43
113
|
description: Recommended Rubocop configuration for Ruby projects created by the Columbia
|
44
114
|
University Libraries
|
45
115
|
email:
|
@@ -57,6 +127,12 @@ files:
|
|
57
127
|
- lib/rubocop/cul.rb
|
58
128
|
- rubocul.gemspec
|
59
129
|
- rubocul_default.yml
|
130
|
+
- rubocul_rules_bundler.yml
|
131
|
+
- rubocul_rules_graphql.yml
|
132
|
+
- rubocul_rules_performance.yml
|
133
|
+
- rubocul_rules_rails.yml
|
134
|
+
- rubocul_rules_rspec.yml
|
135
|
+
- rubocul_rules_security.yml
|
60
136
|
- spec/rubocop/cop/cul/capybara_screenshots_spec.rb
|
61
137
|
homepage: http://github.com/cul/rubocul
|
62
138
|
licenses: []
|