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 +4 -4
- data/README.md +16 -0
- data/lib/pronto/swiftlint/output_parser.rb +1 -1
- data/lib/pronto/swiftlint/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4f048c5a847d256bd51784aec8569b86188aff3
|
4
|
+
data.tar.gz: b4e785cbd2c9ddf25b569628e1e3514f81e931f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
```
|