upennlib-rubocop 1.1.0 → 1.1.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 +5 -5
- data/upennlib-rubocop.gemspec +2 -2
- data/upennlib_rubocop_defaults.yml +29 -13
- metadata +10 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: eeff03b0bc10f86b0dc4ef076ef92be8df0a9d7b
|
|
4
|
+
data.tar.gz: 8baa194ca0391945f642d4b5789281aad3a52ac4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b93a313a9135f416082c4e98a9ba83ff2be608b34477d494d029b06b24b4c729575ecc1ca799300e86781525f9b5cc102cb3494087f8955ff064e5982626416
|
|
7
|
+
data.tar.gz: 124d074ab6d45319c7d9024c22762de160af2a36c571312662b8e08f6a1dc9bd87603c04a90f291590940a0e7b3260600734e51d66de7312e1427676e5eb3d2d
|
data/upennlib-rubocop.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'upennlib-rubocop'
|
|
3
|
-
s.version = '1.1.
|
|
3
|
+
s.version = '1.1.1'
|
|
4
4
|
s.summary = "Rubocop style configuration to be used in UPenn Libraries Projects"
|
|
5
5
|
s.description = "UPenn Libraries Rubocop Configuration"
|
|
6
|
-
s.authors = ["Carla Galarza", "Mike Kanning"]
|
|
6
|
+
s.authors = ["Carla Galarza", "Mike Kanning", "Patrick Perkins", "Amrey Mathurin"]
|
|
7
7
|
s.email = 'cgalarza@upenn.edu'
|
|
8
8
|
s.files = `git ls-files`.split($OUTPUT_RECORD_SEPARATOR)
|
|
9
9
|
|
|
@@ -12,6 +12,20 @@ inherit_mode:
|
|
|
12
12
|
AllCops:
|
|
13
13
|
NewCops: enable # Enabling all new cops. Problematic cops can be disabled on a case-by-case basis.
|
|
14
14
|
|
|
15
|
+
# Allow for hashes to be aligned by `key` or in a `table` format. Default is just to allow `key`.
|
|
16
|
+
Layout/HashAlignment:
|
|
17
|
+
EnforcedColonStyle:
|
|
18
|
+
- key
|
|
19
|
+
- table
|
|
20
|
+
EnforcedHashRocketStyle:
|
|
21
|
+
- key
|
|
22
|
+
- table
|
|
23
|
+
|
|
24
|
+
# Don't require calls to +super+ because sometimes the superclass method has no behavior or behavior you explicitly want to avoid
|
|
25
|
+
# See: https://github.com/rubocop/ruby-style-guide/issues/809
|
|
26
|
+
Lint/MissingSuper:
|
|
27
|
+
Enabled: false
|
|
28
|
+
|
|
15
29
|
Metrics/BlockLength:
|
|
16
30
|
AllowedMethods: ['configure_blacklight']
|
|
17
31
|
Exclude:
|
|
@@ -20,25 +34,27 @@ Metrics/BlockLength:
|
|
|
20
34
|
- 'spec/**/*.rb'
|
|
21
35
|
- 'config/environments/**.rb'
|
|
22
36
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
37
|
+
# Count multiline literals as one line in RSpec examples
|
|
38
|
+
RSpec/ExampleLength:
|
|
39
|
+
CountAsOne:
|
|
40
|
+
- array
|
|
41
|
+
- hash
|
|
42
|
+
- heredoc
|
|
29
43
|
|
|
30
44
|
# Allowing two expectations per test in order to allow for aggregated failures, see: https://rspec.rubystyle.guide/#expectation-per-example
|
|
31
45
|
RSpec/MultipleExpectations:
|
|
32
46
|
Max: 2
|
|
33
47
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
Style/BlockDelimiters:
|
|
49
|
+
EnforcedStyle: braces_for_chaining
|
|
50
|
+
|
|
51
|
+
Style/Documentation:
|
|
52
|
+
Exclude:
|
|
53
|
+
- db/migrate/* # Migrations don't need top-level class documentation
|
|
54
|
+
|
|
55
|
+
Style/FrozenStringLiteralComment:
|
|
56
|
+
EnforcedStyle: always_true # Force frozen string literal comment to always be set to true
|
|
38
57
|
|
|
39
58
|
# Don't use ruby 3.1 hash value shorthand, see: https://docs.rubocop.org/rubocop/cops_style.html#enforcedshorthandsyntax-never
|
|
40
59
|
Style/HashSyntax:
|
|
41
60
|
EnforcedShorthandSyntax: never
|
|
42
|
-
|
|
43
|
-
Style/BlockDelimiters:
|
|
44
|
-
EnforcedStyle: braces_for_chaining
|
metadata
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: upennlib-rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Carla Galarza
|
|
8
8
|
- Mike Kanning
|
|
9
|
-
|
|
9
|
+
- Patrick Perkins
|
|
10
|
+
- Amrey Mathurin
|
|
11
|
+
autorequire:
|
|
10
12
|
bindir: bin
|
|
11
13
|
cert_chain: []
|
|
12
|
-
date: 2023-
|
|
14
|
+
date: 2023-10-16 00:00:00.000000000 Z
|
|
13
15
|
dependencies:
|
|
14
16
|
- !ruby/object:Gem::Dependency
|
|
15
17
|
name: rubocop
|
|
@@ -105,10 +107,10 @@ files:
|
|
|
105
107
|
- README.md
|
|
106
108
|
- upennlib-rubocop.gemspec
|
|
107
109
|
- upennlib_rubocop_defaults.yml
|
|
108
|
-
homepage:
|
|
110
|
+
homepage:
|
|
109
111
|
licenses: []
|
|
110
112
|
metadata: {}
|
|
111
|
-
post_install_message:
|
|
113
|
+
post_install_message:
|
|
112
114
|
rdoc_options: []
|
|
113
115
|
require_paths:
|
|
114
116
|
- lib
|
|
@@ -123,8 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
123
125
|
- !ruby/object:Gem::Version
|
|
124
126
|
version: '0'
|
|
125
127
|
requirements: []
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
rubyforge_project:
|
|
129
|
+
rubygems_version: 2.5.2
|
|
130
|
+
signing_key:
|
|
128
131
|
specification_version: 4
|
|
129
132
|
summary: Rubocop style configuration to be used in UPenn Libraries Projects
|
|
130
133
|
test_files: []
|