danger-ktlint 0.0.4 → 0.0.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
  SHA256:
3
- metadata.gz: b1f250c93c48f9c5b8a9eb7aee96760b0f7ca668be636aeaeddfac263f87a242
4
- data.tar.gz: d40bed8d74888a9555fd5bb4e7619281ff38422ecc35064d4fa59f0a39e0e20e
3
+ metadata.gz: 6235a09ed16dd6946883104ff3263e082b2dd263abfac576e75e91b93c4d6570
4
+ data.tar.gz: 0411f44e31da07ef57984910168a321c6900477ac3c7813d814ff422b75957df
5
5
  SHA512:
6
- metadata.gz: 5e819fdad3eb22599362768654c65e1657652b653d6a6268791f63aa26c03feed6fc3dab9c4dd061883d3094ecb4cbf9b704fb603122fbbe1f1cc26477b88e99
7
- data.tar.gz: 817b35c9e78fce50d690c3c56b605d5bfa3e609a7b32785516001eb407e286934d6126a236c736912f153a8c04479da3945ff9b5c07135acf339545c8ccfded6
6
+ metadata.gz: 987202cb3498fa937f394f66ca841662d943bdcab5dda877a8024fc9b3f531de429b81442cb1cdfde66c39b407e631c3ed347c456239195a7f69aeac13a9d037
7
+ data.tar.gz: 0c5e9e33fe77801329fa9a0daba9261d59804887c3e40021fd85e9f2f2c99e95ad0acc95a50b919a0c4f3b600bfeecf77cb1c14173bb49c95f6a21b8947b319b
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
+ ## 0.0.5
2
+
3
+ ### Fixed
4
+
5
+ - Fixed to not check ktlint binary even when skip_task is specified.
6
+
1
7
  ## 0.0.4
2
8
 
3
9
  ### Added
4
- - ktlint task can be skipped by specifing `ktlint.skip_task = true` and `ktlint.report_file = '...'`
10
+ - ktlint task can be skipped by specifing `ktlint.skip_lint = true` and `ktlint.report_file = '...'`
5
11
 
6
12
  ## 0.0.3
7
13
  ### Added
data/README.md CHANGED
@@ -31,11 +31,22 @@ ktlint.lint
31
31
 
32
32
  Default is `nil`, all comments are sent.
33
33
 
34
- ```bash
34
+ ```shell
35
35
  ktlint.limit = 3
36
36
  ktlint.lint
37
37
  ```
38
38
 
39
+ #### Skip ktlint task
40
+
41
+ Default is false.
42
+
43
+ ```shell
44
+ ktlint.skip_lint = true
45
+ # If skip_lint is specified, report_file must also be specified.
46
+ ktlint.report_file = 'result.json'
47
+ ktlint.lint
48
+ ```
49
+
39
50
  ## CHANGELOG
40
51
 
41
52
  See [CHANGELOG.md](https://github.com/mataku/danger-ktlint/blob/master/CHANGELOG.md).
@@ -43,7 +54,7 @@ See [CHANGELOG.md](https://github.com/mataku/danger-ktlint/blob/master/CHANGELOG
43
54
  ## TODO
44
55
 
45
56
  - filtering: false (default: filtering: true behavior)
46
- - XML report_file (Currently only JSON is supported.)
57
+ - Allow plain or html report_file (Currently only JSON is supported.)
47
58
 
48
59
  ## Development
49
60
 
@@ -1,3 +1,3 @@
1
1
  module Ktlint
2
- VERSION = "0.0.4".freeze
2
+ VERSION = "0.0.5".freeze
3
3
  end
data/lib/ktlint/plugin.rb CHANGED
@@ -29,11 +29,6 @@ module Danger
29
29
  # @return [void]
30
30
  # def lint(inline_mode: false)
31
31
  def lint(inline_mode: false)
32
- unless ktlint_exists?
33
- fail("Couldn't find ktlint command. Install first.")
34
- return
35
- end
36
-
37
32
  targets = target_files(git.added_files + git.modified_files)
38
33
 
39
34
  results = ktlint_results(targets)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-ktlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - mataku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2021-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api