danger-shiphawk-plugin 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcc0847f4844f1da75335311fa0ee2b5d3a7f465573084d92b6f73b8ab68ad9f
4
- data.tar.gz: 92aba600565c9a11c3c13e52a56d79c09b34a888192a8f297c73230bcd3d1b91
3
+ metadata.gz: 0d6a442047bbe929af811f7940eb47c3898fb6b909ef58b74d2197e1f06937e3
4
+ data.tar.gz: b5bcd56c3f7471484c26663ed2b42eb6e2e17809ea2358a301c1e996f3ff68cd
5
5
  SHA512:
6
- metadata.gz: 99a55d064dad0a1ded2bfe8cc4060c8c105591081ab437444e38877a06dd9c5ff8ffd02328d1ff19b85fda871099482ca880659f2ef11bdf26eef6bceb3585be
7
- data.tar.gz: 708c4380c7741c99b3094532a9bda3892e3571e61ee9260268aa005198e43af40395dae1913762b4e2a1b1b606dda9cd4c6a1c1ae2bccb33e0c3958dc514b2a0
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: 0` (Number) Rubocop auto-fix message will appear when errors count more then this number
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, 0)
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 @autofix_hint_threshold > offenses.size
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Danger
4
4
  module ShipHawkPlugin
5
- VERSION = '1.0.5'
5
+ VERSION = '1.0.6'
6
6
  end
7
7
  end
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.5
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-09-24 00:00:00.000000000 Z
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
- rubygems_version: 3.0.6
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.