upennlib-rubocop 1.2.0 → 1.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84a418d12e8ff592448b93d31b55d6ba579bd70a47f5fffbdd86b7987f277605
4
- data.tar.gz: c94df285474498d629afe33c0e4a54b8b30452d4f90826b047f60d7791dac545
3
+ metadata.gz: 396c027793121f4c66d9ee47040601ec05ff62924fcfadc4f79103cd5065c470
4
+ data.tar.gz: 00345a35d34b8c8ff1e1b5c7d11d5c4789b43937c988b57794e2196eb7da49c9
5
5
  SHA512:
6
- metadata.gz: d2518b3dcc8638aeb97752ed9769f659503fe0788022013079a8dec254459caadbfa5b9453c119a53fbf025ebff7c30909435f556bebe8d8a64be30f70e14040
7
- data.tar.gz: 81da4fb784aae040581460316111056581a58c59838745b6669b231b924f608ed0e21e235639be7e238c63f471d0e790224e215c52e6aec174d0c762816e4661
6
+ metadata.gz: f422f6fc9a38b9386514fb0f1dd517a9026793a8ddba86f6f54780ab008c5c8a99d03ac57822f95af4f41ca481c6dce8a4c9a39182c87aaf504f9e56c70da27d
7
+ data.tar.gz: 1540054b25228fd6a31905ce10d99260db37bcf29d322226ef184ef1a7f8cdbae2c471d718a14b18ada254bcc79bb6c136e57848c939da0d4dad852257c59ce6
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'upennlib-rubocop'
3
- s.version = '1.2.0'
3
+ s.version = '1.2.1'
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,14 @@ Layout/HashAlignment:
26
26
  Lint/MissingSuper:
27
27
  Enabled: false
28
28
 
29
+ # Share default values for CountAsOne
30
+ shared_count_as_one: &shared_count_as_one
31
+ - array
32
+ - hash
33
+ - heredoc
34
+ - method_call
35
+
36
+ # When counting lines in blocks, ignore some files and methods, and treat multiline literals as one
29
37
  Metrics/BlockLength:
30
38
  AllowedMethods: ['configure_blacklight']
31
39
  Exclude:
@@ -33,18 +41,28 @@ Metrics/BlockLength:
33
41
  - '**/*.rake'
34
42
  - 'spec/**/*.rb'
35
43
  - 'config/environments/**.rb'
44
+ CountAsOne: *shared_count_as_one
45
+
46
+ # Count multiline literals as one line in classes
47
+ Metrics/ClassLength:
48
+ CountAsOne: *shared_count_as_one
49
+
50
+ # Count multiline literals as one line in methods
51
+ Metrics/MethodLength:
52
+ CountAsOne: *shared_count_as_one
36
53
 
37
54
  # Count multiline literals as one line in RSpec examples
38
55
  RSpec/ExampleLength:
39
- CountAsOne:
40
- - array
41
- - hash
42
- - heredoc
56
+ CountAsOne: *shared_count_as_one
43
57
 
44
58
  # Allowing two expectations per test in order to allow for aggregated failures, see: https://rspec.rubystyle.guide/#expectation-per-example
45
59
  RSpec/MultipleExpectations:
46
60
  Max: 2
47
61
 
62
+ # Allow for additional nesting of context/describe blocks, see: https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecnestedgroups
63
+ RSpec/NestedGroups:
64
+ Max: 4
65
+
48
66
  Style/BlockDelimiters:
49
67
  EnforcedStyle: braces_for_chaining
50
68
 
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.0
4
+ version: 1.2.1
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: 2023-10-31 00:00:00.000000000 Z
14
+ date: 2025-04-09 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.6
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