codeqa 0.4.1 → 0.4.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: e1f065b3efdcfbfda435cf446dc66f70cdc151cf
4
- data.tar.gz: 6e2bdc3a22f52b876ca94b2afd5293ab85ff2e9c
3
+ metadata.gz: c958a6611a0a955d10a405401ee880c160110143
4
+ data.tar.gz: 16f4f0891d4d30e803949670068762f5771a8dc6
5
5
  SHA512:
6
- metadata.gz: 9e1539a4d815885caa08b69cf05de5e88c634bdd177dc44e51fc7e9a0669b1a8d796b2f526218a96e71f09974f44d64050194a12c311824cb3295ae0b83a04dd
7
- data.tar.gz: 64be374a752c88932bb477085f2c511359be0ecbe49c2d087db677913e5d428025b80fd237aa99cde9bc3db104a63f43487c77b0addd17eebeffc7c0bb6f89d4
6
+ metadata.gz: 0089efc75482dca33f4da9fd752be74647d1e1b19f5a299a70e2cd31b48dfe317bb82fb0fe95453ac14af77aa94928184f9896dd16c147d6b87d4bc8763f5b26
7
+ data.tar.gz: adc7c3549c7d1dbd44d210924388a3923a819256eaacb9c91c6564e5c198b801efdbe55737386927a173ff4287cf5177637a256cf2d0e6d0ca2465628e5959e4
data/.codeqa.rb CHANGED
@@ -9,14 +9,5 @@ Codeqa.configure do |config|
9
9
  'pkg/*']
10
10
 
11
11
  config.enabled_checker.delete 'CheckRubySyntax'
12
- config.enabled_checker << 'RubocopLint'
13
- config.enabled_checker << 'RubocopFormatter'
14
-
15
- config.rubocop_formatter_cops << 'AlignHash'
16
- config.rubocop_formatter_cops << 'SignalException'
17
- config.rubocop_formatter_cops << 'DeprecatedClassMethods'
18
- config.rubocop_formatter_cops << 'RedundantBegin'
19
- config.rubocop_formatter_cops << 'RedundantSelf'
20
- config.rubocop_formatter_cops << 'RedundantReturn'
21
- config.rubocop_formatter_cops << 'CollectionMethods'
12
+ config.enabled_checker << 'Rubocop'
22
13
  end
data/Guardfile CHANGED
@@ -1,20 +1,20 @@
1
1
  notification :tmux,
2
- :display_message => true,
3
- :timeout => 3 # in seconds
2
+ :display_message => true,
3
+ :timeout => 3 # in seconds
4
4
 
5
5
  # ignore /doc/
6
6
 
7
- group :red_green_refactor, halt_on_fail: true do
8
- guard 'rspec', cmd: "bundle exec rspec --color --format p", all_after_pass: true do
7
+ group :red_green_refactor, :halt_on_fail => true do
8
+ guard 'rspec', :cmd => 'bundle exec rspec --color --format p', :all_after_pass => true do
9
9
  watch(%r{^spec/.+_spec\.rb$})
10
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
11
- watch('spec/spec_helper.rb') { 'spec' }
12
- watch(%r{^spec/support/(.+)\.rb}) { 'spec' }
13
- watch(%r{^spec/fixtures/(.+)}) { 'spec' }
10
+ watch(%r{^lib/(.+)\.rb$}){ |m| "spec/lib/#{m[1]}_spec.rb" }
11
+ watch('spec/spec_helper.rb'){ 'spec' }
12
+ watch(%r{^spec/support/(.+)\.rb}){ 'spec' }
13
+ watch(%r{^spec/fixtures/(.+)}){ 'spec' }
14
14
  end
15
15
 
16
- guard :rubocop, cli: %w(--display-cop-names --auto-correct) do
16
+ guard :rubocop, :cli => %w(--display-cop-names --auto-correct) do
17
17
  watch(%r{.+\.rb$})
18
- watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
18
+ watch(%r{(?:.+/)?\.rubocop\.yml$}){ |m| File.dirname(m[0]) }
19
19
  end
20
20
  end
@@ -37,7 +37,7 @@ module Codeqa
37
37
  private
38
38
 
39
39
  def config_args
40
- %w(--auto-correct --fail-level warning)
40
+ %w(--auto-correct)
41
41
  end
42
42
 
43
43
  def default_args
@@ -47,7 +47,7 @@ module Codeqa
47
47
  attr_reader :results
48
48
 
49
49
  def failures
50
- @failures ||= @results.reject{ |checker| checker.success? }
50
+ @failures ||= @results.reject(&:success?)
51
51
  end
52
52
 
53
53
  def success?
@@ -10,7 +10,7 @@ module Codeqa
10
10
  class Compiler < ERB::Compiler
11
11
  # Compiles an ERB template into Ruby code. Returns an array of the code
12
12
  # and encoding like ["code", Encoding].
13
- # rubocop:disable Style/CyclomaticComplexity
13
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength
14
14
  def compile(s)
15
15
  enc = s.encoding
16
16
  raise ArgumentError, "#{enc} is not ASCII compatible" if enc.dummy?
@@ -79,7 +79,7 @@ module Codeqa
79
79
  out.close
80
80
  [out.script, enc]
81
81
  end
82
- # rubocop:enable Style/CyclomaticComplexity
82
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength
83
83
  end
84
84
  end
85
85
  end
@@ -1,3 +1,3 @@
1
1
  module Codeqa
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeqa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Schrammel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-29 00:00:00.000000000 Z
12
+ date: 2014-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json