checkstyle_filter-git 1.0.0 → 1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e18bdb52a8261ab9b0dbbf4aef9c8e1e2d98e26d
|
4
|
+
data.tar.gz: b45931a545437dba683f7aabb1ca4a05765f26ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba59856e2db9f7a5256bdcbbfa2d02412281059546a0c2259b63f562e7780c9a9d71246cf61d5145d5f45feba2d368bc01479d632a7aec088ddf86f422d84279
|
7
|
+
data.tar.gz: 0bf2d14735b346bec69c132dde49ee328ec2f67795c449107a5178da3e0e1bdba9734a8a35aa7756323a981a8c88b6155eec3fa95db1e264f70dc7468f3ddaf3
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.add_runtime_dependency 'thor'
|
26
|
-
spec.add_runtime_dependency '
|
26
|
+
spec.add_runtime_dependency 'git_diff_parser'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler', '~> 1.8'
|
29
29
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/example/example1.xml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
<?xml version='1.0'?>
|
2
2
|
<checkstyle>
|
3
|
-
<file name='
|
4
|
-
<file name='
|
3
|
+
<file name='checkstyle_filter-git.gemspec'/>
|
4
|
+
<file name='example/invalid.rb'>
|
5
5
|
<error line='3' column='100' severity='info' message='Line is too long. [188/100]' source='com.puppycrawl.tools.checkstyle.Metrics/LineLength'/>
|
6
6
|
</file>
|
7
|
-
<file name='
|
8
|
-
<file name='
|
9
|
-
</checkstyle>
|
7
|
+
<file name='exe/checkstyle_filter-git'/>
|
8
|
+
<file name='lib/checkstyle_filter/git/cli.rb'/>
|
9
|
+
</checkstyle>
|
@@ -5,7 +5,7 @@ module CheckstyleFilter
|
|
5
5
|
module Git
|
6
6
|
class Filter
|
7
7
|
def self.filter(data, git_diff)
|
8
|
-
patches = ::
|
8
|
+
patches = ::GitDiffParser.parse(git_diff)
|
9
9
|
|
10
10
|
document = REXML::Document.new data
|
11
11
|
document.elements.each('/checkstyle/file') do |file_element|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: checkstyle_filter-git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: git_diff_parser
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|