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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb3290e87d5e2704d215473ec9fb387566ee01ce9928e862a2ced13632f7b203
4
- data.tar.gz: bb1584a0e2174f759b48e3d3b7452650dcb67f5cfe6fe96b4e9057b035740b4f
3
+ metadata.gz: caf9cf414b2adb31f3ea74fe843cb66039a2b3acb2d959e7658afd8b778056f5
4
+ data.tar.gz: a799b31d2311a847b3d12675904910eb83030d936be9519287d9d23c4ca00693
5
5
  SHA512:
6
- metadata.gz: 87a38cdb14acb7f0c946a8f7a819ba28d441956cf6c712add6d4d5cee18e6ae6808b3e1b80725489fe9605f6a80c5ca60f251ee894a142d0b42f4258e3ecf711
7
- data.tar.gz: 63428b1c952c23e0277f1ca3dfbe43c69d62cb2574b21562266cbf84d01cf0d8476b65bb9e8f75849368992e0a3ebd1eae8e4f436eef97cc89023144a1bea8f6
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
- [![Gem Version](https://badge.fury.io/rb/rubocop-pragmatic.svg)](https://badge.fury.io/rb/rubocop-pragmatic) [![CI](https://github.com/rmm5t/rubocop-pragmatic/actions/workflows/ci.yml/badge.svg)](https://github.com/rmm5t/rubocop-pragmatic/actions/workflows/ci.yml)
3
+ [![Gem Version](http://img.shields.io/gem/v/rubocop-pragmatic.svg)](https://rubygems.org/gems/strip_attributes)
4
+ [![CI](https://github.com/rmm5t/rubocop-pragmatic/actions/workflows/ci.yml/badge.svg)](https://github.com/rmm5t/rubocop-pragmatic/actions/workflows/ci.yml)
5
+ [![Gem Downloads](https://img.shields.io/gem/dt/rubocop-pragmatic.svg)](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/)
@@ -1,5 +1,5 @@
1
1
  module Rubocop
2
2
  module Pragmatic
3
- VERSION = "0.2.2".freeze
3
+ VERSION = "0.3.0".freeze
4
4
  end
5
5
  end
data/rubocop-capybara.yml CHANGED
@@ -6,5 +6,6 @@ plugins:
6
6
  Capybara:
7
7
  Severity: convention
8
8
 
9
+ # Silly, and results in false-positives
9
10
  Capybara/NegationMatcherAfterVisit:
10
- Enabled: false # silly, and results in false-positives
11
+ Enabled: false
data/rubocop-minitest.yml CHANGED
@@ -9,8 +9,10 @@ Minitest:
9
9
  Minitest/EmptyLineBeforeAssertionMethods:
10
10
  Enabled: false
11
11
 
12
+ # Prefer Minitest::Spec syntax
12
13
  Minitest/TestMethodName:
13
14
  Enabled: false
14
15
 
16
+ # Result in slower specs with little benefit
15
17
  Minitest/MultipleAssertions:
16
18
  Enabled: false
data/rubocop-rails.yml CHANGED
@@ -6,6 +6,7 @@ plugins:
6
6
  Rails:
7
7
  Severity: convention
8
8
 
9
+ # Override as necessary
9
10
  Rails/BulkChangeTable:
10
11
  Database: postgresql
11
12
 
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.2.2
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