rubocul 3.0.0 → 4.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: b6101acf1d391ff0a02af2df88520e00805828228946d78b34d763e749e66210
4
- data.tar.gz: aabd047d6c6ddbdcddbb663d1711e7b906448a514b71b93dd193f7f4287f2e30
3
+ metadata.gz: 42e8f4ad2c719d37160b8dd9f14c7fbbf2a3f4fac6b2c11f3a9b31f4ae04940b
4
+ data.tar.gz: ed2cb2718291193ec8eea912aedc00f78ddfd15241a828f934a57f25fe5566cb
5
5
  SHA512:
6
- metadata.gz: 691d07ff1e0d62abc30e7de371b57d12c76350f4c28c8324fbba0e8be21c376b41140d5e6809fa75741cdc224940b51b7a3d5b93d5f49eeae3296a0b56c23871
7
- data.tar.gz: 509d2a9fee9b39526bb12282d04d13ddb48113ca38849941c26cb26695a7cb67df67723827a3a5f72435799804953b7d923df6275fa300fb3537b191a39dc204
6
+ metadata.gz: 90bd6f30944251d6a6f8178e5542299752b94fd7b6900eb2fd8ddde95fef7837e76c1565e2536e0740b94168e52673d32c766d6b70299e732395372ba60bb991
7
+ data.tar.gz: 77b4f3d4a23fc7055d1df9856efbd42aa7043c16b8be720db5eee9df32b05dc88ae9236b34756911a235d2810bd77d90f186de45dea2972ddbeec69618bb1473
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', '~> 2.0'
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: 2.5.3 # Update to your version of ruby
25
- TargetRailsVersion: 5.2.3 # Update to your version of rails
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 a member of our team would like to suggest a change to our configuration, please open a github pull request with your change and an explanation of why you think it's necessary/valuable. Please add your new configuration to the `rubocop_default.yml` file.
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 = '3.0.0'
4
- spec.authors = ["Carla Galarza", "Eric O'Hanlon", "Ben Armintor"]
3
+ spec.version = '4.0.0'
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 'bixby', '3.0.2'
15
+ spec.add_dependency 'rubocop', '~> 1.25.1'
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,69 @@
1
- inherit_gem:
2
- bixby: bixby_default.yml
3
-
4
- inherit_mode:
5
- merge:
6
- - Exclude
7
-
8
1
  require:
9
- - ./lib/rubocop/cul.rb
2
+ - rubocop-performance
3
+ - ./lib/rubocop/cul.rb
10
4
 
11
5
  AllCops:
6
+ TargetRubyVersion: 2.7
7
+ # Disable any new "pending" cops that are introduced in a minor version update of rubocop.
8
+ # We only want to opt into these explicitly, or accept them when we update to a new MAJOR
9
+ # version of rubocop. See: https://docs.rubocop.org/rubocop/versioning.html#pending-cops
10
+ NewCops: disable
11
+ # DisabledByDefault: true
12
+ DisplayCopNames: true
12
13
  Exclude:
13
- - 'app/javascript/**/*'
14
+ - 'db/**/*'
15
+ - 'script/**/*'
16
+ - 'bin/**/*'
17
+ - 'tmp/**/*'
18
+ - 'vendor/**/*'
14
19
  - 'node_modules/**/*'
20
+ - 'app/javascript/**/*'
21
+
22
+ inherit_from:
23
+ - rubocul_rules_bundler.yml
24
+ - rubocul_rules_performance.yml
25
+ - rubocul_rules_rails.yml
26
+ - rubocul_rules_rspec.yml
27
+ - rubocul_rules_security.yml
15
28
 
16
- # Turning off until we can support multiple enforced styles (key and table). This is available in newer version of rubocop.
17
29
  Layout/HashAlignment:
30
+ SupportedHashRocketStyles:
31
+ - key
32
+ - table
33
+ SupportedColonStyles:
34
+ - key
35
+ - table
36
+
37
+ Style/RedundantSelf:
18
38
  Enabled: false
19
39
 
20
- # In Rubocop 0.68 (a newer version than we're using right now), the IndentHash rule has been renamed to IndentFirstHashElement.
40
+ Style/HashSyntax:
41
+ # We may change this at some point, but it'll take some getting used to. To be safe, we're
42
+ # forcing explicit hash literal values for now.
43
+ EnforcedShorthandSyntax: never
44
+
21
45
  Layout/FirstHashElementIndentation:
22
46
  EnforcedStyle: consistent
23
47
 
24
- RSpec/MessageSpies:
25
- Enabled: false
26
-
27
48
  Style/BlockDelimiters:
28
49
  EnforcedStyle: braces_for_chaining
29
50
 
30
- Style/RedundantSelf:
51
+ Style/ClassAndModuleChildren:
52
+ Enabled: false
53
+
54
+ Style/WordArray:
55
+ Enabled: false
56
+
57
+ Style/SymbolArray:
58
+ Enabled: false
59
+
60
+ RSpec/ExpectInHook:
31
61
  Enabled: false
32
62
 
33
63
  Metrics/BlockLength:
34
64
  Exclude:
35
65
  - 'spec/**/*'
36
66
 
37
- Rails/HasAndBelongsToMany:
67
+ # TODO: Decide how we feel about this later
68
+ Naming/VariableNumber:
38
69
  Enabled: false
@@ -0,0 +1,9 @@
1
+ Bundler/DuplicatedGem:
2
+ Include:
3
+ - '**/Gemfile'
4
+ - '**/gems.rb'
5
+
6
+ Bundler/OrderedGems:
7
+ Include:
8
+ - '**/Gemfile'
9
+ - '**/gems.rb'
@@ -0,0 +1,2 @@
1
+ require:
2
+ - rubocop-graphql
@@ -0,0 +1,2 @@
1
+ require:
2
+ - rubocop-performance
@@ -0,0 +1,8 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ Rails:
5
+ Enabled: true
6
+
7
+ Rails/HasAndBelongsToMany:
8
+ Enabled: false
@@ -0,0 +1,2 @@
1
+ require:
2
+ - rubocop-rspec
@@ -0,0 +1,3 @@
1
+ Security/JSONLoad:
2
+ # See: https://github.com/samvera-labs/bixby/blob/f39116f714cf54880864960c22f2f937149f2f48/bixby_default.yml#L899-L900
3
+ AutoCorrect: 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: 3.0.0
4
+ version: 4.0.0
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-02-03 00:00:00.000000000 Z
13
+ date: 2022-02-25 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: bixby
30
+ name: rubocop
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: 1.25.1
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: 1.25.1
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: 3.0.2
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: 3.0.2
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: []