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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d8fc46682dc58246a154bd7f4d9861c90ae7e75
4
- data.tar.gz: 06842c81c83193794006287f4453cc51a32ad126
3
+ metadata.gz: cfb1410453dc4f232425a565900e4054e6bd78e9
4
+ data.tar.gz: 4f0d4313f19a6ce70a7b23964b89f861df60fd52
5
5
  SHA512:
6
- metadata.gz: 96245df392240a42e96f860d2541c8388d86b1a325dbc9193a1f491796de21d1df097e1ef4fe6a185950570a919b6ebe803ee068e6418ee4310cac847ff9580d
7
- data.tar.gz: c47545b246cfb3416b4fecec3341d993f3a1bf4622270a2e0ede3b03338deb80765a0e52b51ec3c2119ec1be6d97c662b649d88a0b31966d8b0af9a6cfcef696
6
+ metadata.gz: ef08bf7c85453189cfa490ab83a958e6b6f4e9330bd523f964df3b2a2211a15703dafd07ca64f6b5faef006b60c0d88c90b85fe5c4e0ebdef8751c2635211258
7
+ data.tar.gz: e39a847e30678b76ed6bb51c1e900c01ac72359f2aca89f379a927cd4b9cceb39efecc22ddc4cf80dfea8f179790fdb9811da68389c58afbaa84d2e50da31986
data/README.md CHANGED
@@ -102,6 +102,7 @@ do `gergich comment` calls so you don't have to wire it up yourself.
102
102
  * `rubocop`
103
103
  * `eslint`
104
104
  * `i18nliner`
105
+ * `flake8`
105
106
  * `custom:<path>:<class_name>` - file path and ruby class_name of a custom
106
107
  formatter.
107
108
 
@@ -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
@@ -204,6 +204,7 @@ do `gergich comment` calls so you don't have to wire it up yourself.
204
204
  * rubocop
205
205
  * eslint
206
206
  * i18nliner
207
+ * flake8
207
208
  * custom:<path>:<class_name> - file path and ruby
208
209
  class_name of a custom formatter.
209
210
 
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
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-15 00:00:00.000000000 Z
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