rubocop-pragmatic 0.2.2 → 0.3.0
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/README.md +14 -1
- data/lib/rubocop/pragmatic/version.rb +1 -1
- data/rubocop-capybara.yml +2 -1
- data/rubocop-minitest.yml +2 -0
- data/rubocop-rails.yml +1 -0
- data/rubocop-rspec.yml +15 -0
- metadata +16 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: caf9cf414b2adb31f3ea74fe843cb66039a2b3acb2d959e7658afd8b778056f5
|
|
4
|
+
data.tar.gz: a799b31d2311a847b3d12675904910eb83030d936be9519287d9d23c4ca00693
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39a1510005498e93b1d1ceb13e43fd42b56e424533f2dc850e406db17b2b8435cd46f8b93271882c576140cbee86572f42163f081b883f4190d44caae653d4af
|
|
7
|
+
data.tar.gz: 3b9e5cac276c5319a8dacd0fe9440977d93ace51f02c0a8df22d629633e54b6552dfe1fa82a726a149326e03d77f740fae6a945346685c14af11ff68308b974e
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Pragmatic Ruby Styling for Projects
|
|
2
2
|
|
|
3
|
-
[](https://rubygems.org/gems/strip_attributes)
|
|
4
|
+
[](https://github.com/rmm5t/rubocop-pragmatic/actions/workflows/ci.yml)
|
|
5
|
+
[](https://rubygems.org/gems/strip_attributes)
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -46,6 +48,17 @@ inherit_mode:
|
|
|
46
48
|
# Your own specialized rules go here
|
|
47
49
|
```
|
|
48
50
|
|
|
51
|
+
`rubocop-pragmatic` is opionated about minitest, but offers the option to customize with `rubocop-rspec`:
|
|
52
|
+
|
|
53
|
+
```yml
|
|
54
|
+
inherit_gem:
|
|
55
|
+
rubocop-pragmatic:
|
|
56
|
+
- ruby.yml
|
|
57
|
+
- rubocop-rspec.yml
|
|
58
|
+
|
|
59
|
+
# Your own specialized rules go here
|
|
60
|
+
```
|
|
61
|
+
|
|
49
62
|
## License
|
|
50
63
|
|
|
51
64
|
[MIT License](https://rmm5t.mit-license.org/)
|
data/rubocop-capybara.yml
CHANGED
data/rubocop-minitest.yml
CHANGED
data/rubocop-rails.yml
CHANGED
data/rubocop-rspec.yml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-rspec
|
|
3
|
+
|
|
4
|
+
# ----------------------------------------
|
|
5
|
+
|
|
6
|
+
RSpec:
|
|
7
|
+
Severity: convention
|
|
8
|
+
|
|
9
|
+
# Too pedantic
|
|
10
|
+
RSpec/IndexedLet:
|
|
11
|
+
Enabled: false
|
|
12
|
+
|
|
13
|
+
# Result in slower specs with little benefit
|
|
14
|
+
RSpec/MultipleExpectations:
|
|
15
|
+
Enabled: false
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-pragmatic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan McGeary
|
|
@@ -109,6 +109,20 @@ dependencies:
|
|
|
109
109
|
- - "~>"
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
111
|
version: '0.7'
|
|
112
|
+
- !ruby/object:Gem::Dependency
|
|
113
|
+
name: rubocop-rspec
|
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
|
115
|
+
requirements:
|
|
116
|
+
- - "~>"
|
|
117
|
+
- !ruby/object:Gem::Version
|
|
118
|
+
version: '3.8'
|
|
119
|
+
type: :runtime
|
|
120
|
+
prerelease: false
|
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
122
|
+
requirements:
|
|
123
|
+
- - "~>"
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '3.8'
|
|
112
126
|
- !ruby/object:Gem::Dependency
|
|
113
127
|
name: rubocop-capybara
|
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -203,6 +217,7 @@ files:
|
|
|
203
217
|
- rubocop-performance.yml
|
|
204
218
|
- rubocop-rails.yml
|
|
205
219
|
- rubocop-rake.yml
|
|
220
|
+
- rubocop-rspec.yml
|
|
206
221
|
- rubocop.yml
|
|
207
222
|
- ruby.yml
|
|
208
223
|
homepage: https://github.com/rmm5t/rubocop-pragmatic
|