danger-shiphawk-plugin 1.0.5 → 1.0.6
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 +1 -1
- data/lib/danger_plugin.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d6a442047bbe929af811f7940eb47c3898fb6b909ef58b74d2197e1f06937e3
|
|
4
|
+
data.tar.gz: b5bcd56c3f7471484c26663ed2b42eb6e2e17809ea2358a301c1e996f3ff68cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d76b1a6d545e8cbd51b6f0f091402111a69f0ca1c40aada61c9a26a5abb287e705fd8bce873f3fa08fe04aa9545993959f1e3bf9584e2491e2dd48b995f19cee
|
|
7
|
+
data.tar.gz: c6a60ceef9e910d5867a8e9ed956601222245930896677bc2dcfbdf4e3b884d8a12962241096c86229427633683fdcfcd1ac394d3b3f706c0fd771d48eec6d93
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ The following keys are supported:
|
|
|
22
22
|
* `files: 'all'` ('all' | 'diff') Files to lint
|
|
23
23
|
* `config: nil` Path to the config `.rubocop.yml` file
|
|
24
24
|
* `limit_of_warnings: 10` (Number) Count of offenses that should be displayed
|
|
25
|
-
* `autofix_hint_threshold:
|
|
25
|
+
* `autofix_hint_threshold: 50` (Number) Rubocop auto-fix message will appear when errors count less then this number
|
|
26
26
|
|
|
27
27
|
## License:
|
|
28
28
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/danger_plugin.rb
CHANGED
|
@@ -24,7 +24,7 @@ module Danger
|
|
|
24
24
|
@files = options.fetch(:files, 'all')
|
|
25
25
|
@config = options.fetch(:config, nil)
|
|
26
26
|
@limit_of_warnings = options.fetch(:limit_of_warnings, 10)
|
|
27
|
-
@autofix_hint_threshold = options.fetch(:autofix_hint_threshold,
|
|
27
|
+
@autofix_hint_threshold = options.fetch(:autofix_hint_threshold, 50)
|
|
28
28
|
|
|
29
29
|
return if offenses.empty?
|
|
30
30
|
|
|
@@ -85,7 +85,7 @@ module Danger
|
|
|
85
85
|
|
|
86
86
|
def message_autofix
|
|
87
87
|
return if offenses.empty?
|
|
88
|
-
return if
|
|
88
|
+
return if offenses.size > @autofix_hint_threshold
|
|
89
89
|
|
|
90
90
|
msg = '## Please fix rubocop mistakes: `rubocop --auto-correct`'
|
|
91
91
|
print_message(msg, :fail)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-shiphawk-plugin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ShipHawk Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-12-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: danger
|
|
@@ -137,7 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
139
|
requirements: []
|
|
140
|
-
|
|
140
|
+
rubyforge_project:
|
|
141
|
+
rubygems_version: 2.7.9
|
|
141
142
|
signing_key:
|
|
142
143
|
specification_version: 4
|
|
143
144
|
summary: A Danger plugin for running Ruby files through Rubocop.
|