quality 19.1.1 → 19.1.2

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
  SHA1:
3
- metadata.gz: aa65c072ab8fa2ba5cb5d8d790455e299265d898
4
- data.tar.gz: 9ecac6bc1d8b7a09e271ef7c223133ddcd059853
3
+ metadata.gz: 98272ba9fc1a96739f2910b12293e49bc99e4ecc
4
+ data.tar.gz: 7a757fec68b3cb360dff46ebc66bc8a6fed324f0
5
5
  SHA512:
6
- metadata.gz: d661ace49a6435fb0f6efbbb906a7ea784c8ebf685a8bf5d576f94acad348ce801324c64a1bd74e5d5e19ee428a6b48a115608379d9eb7cba98a80e59e75aa34
7
- data.tar.gz: 3e2a71df1e1aba6242fd818c6dfc2a6a45cd301e6b74c16eb2fa223867a48601ab10170177e4c270c74af4096cb233d2528200bd1baeb2ec329a554714e226aa
6
+ metadata.gz: 74a2fd024e943cd144ddbe63535384bfc9a835857c6ced7ca8335fea388ca3117822b6eec91a26448d15e03110881f1401831a6077865f2969a361ebdfc473eb
7
+ data.tar.gz: df3412d7004e3bdf3b16746ee9ea94c5795dabfe76db4243b83d4969cede7f5ad330759bd2b0a1a8c581af9e7fa2d4d56f84e8ca0129e830aaad9fd30cb534f2
@@ -16,16 +16,21 @@ module Quality
16
16
  0
17
17
  end
18
18
 
19
+ def jscs_count_violations_on_line(line)
20
+ if line =~ /^.*:\d+:\d+: /
21
+ 1
22
+ elsif line =~ /^No configuration found/
23
+ jscs_check_configured
24
+ else
25
+ 0
26
+ end
27
+ end
28
+
19
29
  def quality_jscs
20
30
  ratchet_quality_cmd('jscs',
21
31
  args: jscs_args,
22
32
  gives_error_code_on_violations: true) do |line|
23
- return 1 if line =~ /^.*:\d+:\d+: /
24
- if line =~ /^No configuration found/
25
- jscs_check_configured
26
- else
27
- 0
28
- end
33
+ jscs_count_violations_on_line(line)
29
34
  end
30
35
  end
31
36
  end
@@ -2,5 +2,5 @@
2
2
  # reek, flog, flay and rubocop and makes sure your numbers don't get
3
3
  # any worse over time.
4
4
  module Quality
5
- VERSION = '19.1.1'
5
+ VERSION = '19.1.2'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.1.1
4
+ version: 19.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz