gergich 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/gergich/capture/flake8_capture.rb +18 -0
- data/lib/gergich/cli/gergich.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfb1410453dc4f232425a565900e4054e6bd78e9
|
4
|
+
data.tar.gz: 4f0d4313f19a6ce70a7b23964b89f861df60fd52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef08bf7c85453189cfa490ab83a958e6b6f4e9330bd523f964df3b2a2211a15703dafd07ca64f6b5faef006b60c0d88c90b85fe5c4e0ebdef8751c2635211258
|
7
|
+
data.tar.gz: e39a847e30678b76ed6bb51c1e900c01ac72359f2aca89f379a927cd4b9cceb39efecc22ddc4cf80dfea8f179790fdb9811da68389c58afbaa84d2e50da31986
|
data/README.md
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Gergich
|
2
|
+
module Capture
|
3
|
+
class Flake8Capture < BaseCapture
|
4
|
+
def run(output)
|
5
|
+
# Example:
|
6
|
+
# ./djangogeneric/settings/base.py:73:80: E501 line too long (81 > 79 characters)
|
7
|
+
pattern = /
|
8
|
+
^([^:\n]+):(\d+):\d+:\s(.*?)\n
|
9
|
+
/mx
|
10
|
+
|
11
|
+
output.scan(pattern).map { |file, line, error|
|
12
|
+
{ path: file, message: "[flake8] #{error}",
|
13
|
+
position: line.to_i, severity: "error" }
|
14
|
+
}.compact
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/gergich/cli/gergich.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gergich
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Jensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/gergich/capture.rb
|
58
58
|
- lib/gergich/capture/androidlint_capture.rb
|
59
59
|
- lib/gergich/capture/eslint_capture.rb
|
60
|
+
- lib/gergich/capture/flake8_capture.rb
|
60
61
|
- lib/gergich/capture/i18nliner_capture.rb
|
61
62
|
- lib/gergich/capture/rubocop_capture.rb
|
62
63
|
- lib/gergich/capture/swiftlint_capture.rb
|