pronto-swiftlint 0.1.0 → 0.1.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: 78f4143dc5191d038cf0d6596078c0bf95401682
4
- data.tar.gz: 378bafa5022df2932bbd04a71e5fc4f8a68c884d
3
+ metadata.gz: e4f048c5a847d256bd51784aec8569b86188aff3
4
+ data.tar.gz: b4e785cbd2c9ddf25b569628e1e3514f81e931f6
5
5
  SHA512:
6
- metadata.gz: 59cc87cf5a38de91b46d7d39068405d40039f3f517afcc58450dc981b238a6d80cd5db986a6e7e0ebee29b506b3893f614545468843fe61535dfe2c10ef736b5
7
- data.tar.gz: 6039d07c89afbf8d778be20b759ad9a3fcbfb420da84d8de49b2e559c35bfcc2bd157aad146acc40bc5dcb88a233f583b1a2382b58b9d18d4c0f59a8d7361ba6
6
+ metadata.gz: 9db1ebe0e6ffb6b4ea2072eb48af2ee7c88edbd41daef322350c46e17fdff1b61b834041990612e39e234a3fad3902c66f9a2313d6030ac34fe52c6251b523db
7
+ data.tar.gz: 33109853b3f4584b71f25270833605d3594004c0ec34b5dc661b19dc2defb04b6461a84721c3345723feb72d8edf60c549625127129f862a8f01062da2d20149
data/README.md CHANGED
@@ -9,3 +9,19 @@ Swiftlint is needed to be installed for this runner to work.
9
9
  You can explicitly specify location of SwiftLint runner by passing `PRONTO_SWIFTLINT_PATH` env variable e.g:
10
10
 
11
11
  `PRONTO_SWIFTLINT_PATH=/usr/very/hidden/bin/swiftlint pronto run --index`
12
+
13
+ This runner requires `json` formatter to be set. You can do it by modifying `.swiftlint.yml` in directly pronto is run:
14
+
15
+ ```yaml
16
+ disabled_rules: # rule identifiers to exclude from running
17
+ - trailing_whitespace
18
+ included: # paths to include during linting. `--path` is ignored if present.
19
+ - Source
20
+ excluded: # paths to ignore during linting. Takes precedence over `included`.
21
+ - Source/Pods
22
+ line_length: 120
23
+ type_body_length:
24
+ - 300 # warning
25
+ - 400 # error
26
+ reporter: "json"
27
+ ```
@@ -8,7 +8,7 @@ module Pronto
8
8
  violations = JSON.parse(output)
9
9
  rescue => e
10
10
  puts "pronto-swiftlint ERROR: failed to parse output. Is formatter set to json? #{e}"
11
- return []
11
+ return {}
12
12
  end
13
13
 
14
14
  result = {}
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module Swiftlint
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-swiftlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrius Janauskas