gl_rubocop 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -0
- data/default.yml +4 -0
- data/lib/gl_rubocop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0baf6ecdb13c78d20380b520c6c0860c9ce7e46b9990efed418e326e38dc097
|
4
|
+
data.tar.gz: 8851722324daf55c6a779efdb862da9a4a9217494a459e74ed39113839a4550d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47da7a6d8766b9c402ec326e64a20be7497f01c55e0507d55f243b0ef9a1f0bd9a6447a250150430bc4c67b911632c85bd452b7f3a4182067834cdeafc80d992
|
7
|
+
data.tar.gz: f38866b90c118322ca57aa4fa4b5b8476d10037d5247d2a69baef6af9c4390ded0ded29691e5d13e64427de11430474d498a9b82f1ea23cc4a01135a87b5baf8
|
data/README.md
CHANGED
@@ -54,3 +54,31 @@ documentation](https://docs.rubocop.org/rubocop/configuration.html#inheriting-co
|
|
54
54
|
8. Following the authorization prompts listed by the gem command.
|
55
55
|
|
56
56
|
9. Your changes have now been published to the rubygems registry.
|
57
|
+
|
58
|
+
## Testing Locally
|
59
|
+
It's likely the case you'll want to test your changes locally before opening a PR, getting approval, and publishing the gem.
|
60
|
+
|
61
|
+
To do so, complete the following steps:
|
62
|
+
|
63
|
+
1. Save the changes to whichever files you have modified.
|
64
|
+
|
65
|
+
2. Run the command `gem build` to create the bundle (this may require you to have bumped the version number)
|
66
|
+
|
67
|
+
3. Go to the Gemfile in whichever ruby-based repo you want to test your rubocop changes against
|
68
|
+
|
69
|
+
4. Create an entry for gl_rubocop specifiying the *relative* path to your local `gl_rubocop` repo (ex. `../code/gl_rubocop`):
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
gem 'gl_rubocop', '~> 0.2.9', path: '../path/to/your/local/gl_rubocop'
|
73
|
+
```
|
74
|
+
|
75
|
+
5. Within the same repo as the Gemfile you just updated run `bundle install`
|
76
|
+
|
77
|
+
6. Finally add the following lines to your rubocop configuration file
|
78
|
+
|
79
|
+
```yml
|
80
|
+
inherit_gem:
|
81
|
+
gl_rubocop: default.yml
|
82
|
+
```
|
83
|
+
|
84
|
+
7. Now you can test your rubocop changes local with the target repo.
|
data/default.yml
CHANGED
@@ -63,6 +63,7 @@ Lint/MissingSuper:
|
|
63
63
|
MagicNumbers/NoAssignment:
|
64
64
|
Exclude:
|
65
65
|
- "spec/**/*"
|
66
|
+
- "**/spec/**/*"
|
66
67
|
Enabled: false
|
67
68
|
AllowedAssignments:
|
68
69
|
- instance_variables
|
@@ -72,6 +73,7 @@ MagicNumbers/NoAssignment:
|
|
72
73
|
MagicNumbers/NoArgument:
|
73
74
|
Exclude:
|
74
75
|
- "spec/**/*"
|
76
|
+
- "**/spec/**/*"
|
75
77
|
Enabled: true
|
76
78
|
PermittedValues:
|
77
79
|
- 0
|
@@ -80,6 +82,7 @@ MagicNumbers/NoArgument:
|
|
80
82
|
MagicNumbers/NoDefault:
|
81
83
|
Exclude:
|
82
84
|
- "spec/**/*"
|
85
|
+
- "**/spec/**/*"
|
83
86
|
Enabled: true
|
84
87
|
PermittedValues:
|
85
88
|
- 0
|
@@ -88,6 +91,7 @@ MagicNumbers/NoDefault:
|
|
88
91
|
MagicNumbers/NoReturn:
|
89
92
|
Exclude:
|
90
93
|
- "spec/**/*"
|
94
|
+
- "**/spec/**/*"
|
91
95
|
Enabled: true
|
92
96
|
PermittedReturnValues:
|
93
97
|
- 0
|
data/lib/gl_rubocop/version.rb
CHANGED