upennlib-rubocop 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/upennlib-rubocop.gemspec +1 -1
- data/upennlib_rubocop_defaults.yml +19 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54190985826a00d44d7e2a12ab3c379da615d2bdf21816f5e644654d91ce4d31
|
4
|
+
data.tar.gz: a345028e1def01942ef9ced28517ac54e18e34996bc3fa855c6bdc143cbc7067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fff5d79be036167cb28a3c3033e9ed47438e3a9a9533d108d93c7f5044fec5987d539e72308c5a0c659b1c1ec7731ccc01235f90dd836cdfaf8574f1e52e8fb8
|
7
|
+
data.tar.gz: e333de9ad2408359617c909aa93e78f83aff08cf825060c86ccc50761731a6299e4b23aac36e1fdb8bc85079b048e78fc48519697b5c1233f214a66186b33414
|
data/upennlib-rubocop.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'upennlib-rubocop'
|
3
|
-
s.version = '1.2.
|
3
|
+
s.version = '1.2.2'
|
4
4
|
s.summary = "Rubocop style configuration to be used in UPenn Libraries Projects"
|
5
5
|
s.description = "UPenn Libraries Rubocop Configuration"
|
6
6
|
s.authors = ["Carla Galarza", "Mike Kanning", "Patrick Perkins", "Amrey Mathurin"]
|
@@ -26,6 +26,7 @@ Layout/HashAlignment:
|
|
26
26
|
Lint/MissingSuper:
|
27
27
|
Enabled: false
|
28
28
|
|
29
|
+
# When counting lines in blocks, ignore some files and methods, and treat multiline literals as one
|
29
30
|
Metrics/BlockLength:
|
30
31
|
AllowedMethods: ['configure_blacklight']
|
31
32
|
Exclude:
|
@@ -33,18 +34,32 @@ Metrics/BlockLength:
|
|
33
34
|
- '**/*.rake'
|
34
35
|
- 'spec/**/*.rb'
|
35
36
|
- 'config/environments/**.rb'
|
36
|
-
|
37
|
-
# Count multiline literals as one line in RSpec examples
|
38
|
-
RSpec/ExampleLength:
|
39
|
-
CountAsOne:
|
37
|
+
CountAsOne: &shared_count_as_one
|
40
38
|
- array
|
41
39
|
- hash
|
42
40
|
- heredoc
|
41
|
+
- method_call
|
42
|
+
|
43
|
+
# Count multiline literals as one line in classes
|
44
|
+
Metrics/ClassLength:
|
45
|
+
CountAsOne: *shared_count_as_one
|
46
|
+
|
47
|
+
# Count multiline literals as one line in methods
|
48
|
+
Metrics/MethodLength:
|
49
|
+
CountAsOne: *shared_count_as_one
|
50
|
+
|
51
|
+
# Count multiline literals as one line in RSpec examples
|
52
|
+
RSpec/ExampleLength:
|
53
|
+
CountAsOne: *shared_count_as_one
|
43
54
|
|
44
55
|
# Allowing two expectations per test in order to allow for aggregated failures, see: https://rspec.rubystyle.guide/#expectation-per-example
|
45
56
|
RSpec/MultipleExpectations:
|
46
57
|
Max: 2
|
47
58
|
|
59
|
+
# Allow for additional nesting of context/describe blocks, see: https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnestedgroups
|
60
|
+
RSpec/NestedGroups:
|
61
|
+
Max: 4
|
62
|
+
|
48
63
|
Style/BlockDelimiters:
|
49
64
|
EnforcedStyle: braces_for_chaining
|
50
65
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: upennlib-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carla Galarza
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rubocop
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.1
|
128
|
+
rubygems_version: 3.0.3.1
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Rubocop style configuration to be used in UPenn Libraries Projects
|