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 +4 -4
- data/.codeqa.rb +1 -10
- data/Guardfile +10 -10
- data/lib/codeqa/checkers/rubocop_full.rb +1 -1
- data/lib/codeqa/runner.rb +1 -1
- data/lib/codeqa/utils/erb_sanitizer.rb +2 -2
- data/lib/codeqa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c958a6611a0a955d10a405401ee880c160110143
|
4
|
+
data.tar.gz: 16f4f0891d4d30e803949670068762f5771a8dc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 << '
|
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
|
-
|
3
|
-
|
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
|
8
|
-
guard 'rspec', cmd
|
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$})
|
11
|
-
watch('spec/spec_helper.rb')
|
12
|
-
watch(%r{^spec/support/(.+)\.rb})
|
13
|
-
watch(%r{^spec/fixtures/(.+)})
|
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
|
16
|
+
guard :rubocop, :cli => %w(--display-cop-names --auto-correct) do
|
17
17
|
watch(%r{.+\.rb$})
|
18
|
-
watch(%r{(?:.+/)?\.rubocop\.yml$})
|
18
|
+
watch(%r{(?:.+/)?\.rubocop\.yml$}){ |m| File.dirname(m[0]) }
|
19
19
|
end
|
20
20
|
end
|
data/lib/codeqa/runner.rb
CHANGED
@@ -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
|
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
|
82
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/MethodLength
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
data/lib/codeqa/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|