danger-kotlin_detekt 0.0.1 → 0.0.2

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: 9b42e716adf08f5e712edbf841bbadfbf82e68aa
4
- data.tar.gz: 449a20d2aed41cc9ae921715b8a5012649a99e48
3
+ metadata.gz: d703b38dc75c315081cc647bb72a3d74bdc468a8
4
+ data.tar.gz: 1c59a30e35d80dd707ce7d9cfd529e2a0dce71c4
5
5
  SHA512:
6
- metadata.gz: 27807b59efc533dd08af310b7870dd25fb9aae5e9809ed62462eb5eb8f5a14588215d5059c5f666bf77d442d5b1b281237c5888f0803397def1db603703e0df1
7
- data.tar.gz: bba5363ea1fcecc1cf4a97d242c58e9b4d0b34a56446432f2865a28200455019b83170177c18fdee41b42016ec89abe4a19ee73ceabad89e42858cb7c287e7f3
6
+ metadata.gz: 7166a22a67aab20d8a52fff62de2b2b9064e48470b655f2b49a77ad97a904f46b492e48b88d2789428a3f7788ab722fb6d7ad6546dac1ce8daeb5e128f4f0609
7
+ data.tar.gz: '09631547ffdf0c8d72719ee1a1ea6c4c97d693da32ba50674ac5dd197b939d8b1009b4788800fc9a522eef7a6ff8251dd68493745b0d99122d485f8accd3fd88'
@@ -1,3 +1,3 @@
1
1
  module KotlinDetekt
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
@@ -19,9 +19,9 @@ module Danger
19
19
  class DangerKotlinDetekt < Plugin
20
20
  SEVERITY_LEVELS = ["warning", "error"]
21
21
 
22
- # Location of lint report file
23
- # If your Android lint task outputs to a different location, you can specify it here.
24
- # Defaults to "app/build/reports/lint/lint-result.xml".
22
+ # Location of Detekt report file
23
+ # If your Detekt task outputs to a different location, you can specify it here.
24
+ # Defaults to "build/reports/detekt/detekt-checkstyle.xml".
25
25
  # @return [String]
26
26
  attr_accessor :report_file
27
27
  # A getter for `report_file`.
@@ -32,7 +32,7 @@ module Danger
32
32
 
33
33
  # Custom gradle task to run.
34
34
  # This is useful when your project has different flavors.
35
- # Defaults to "lint".
35
+ # Defaults to "detektCheck".
36
36
  # @return [String]
37
37
  attr_accessor :gradle_task
38
38
 
@@ -50,7 +50,7 @@ module Danger
50
50
  # Skip gradle task
51
51
  attr_accessor :skip_gradle_task
52
52
 
53
- # Calls lint task of your gradle project.
53
+ # Calls Detekt task of your gradle project.
54
54
  # It fails if `gradlew` cannot be found inside current directory.
55
55
  # It fails if `severity` level is not a valid option.
56
56
  # It fails if `xmlReport` configuration is not set to `true` in your `build.gradle` file.
@@ -67,10 +67,10 @@ module Danger
67
67
  return
68
68
  end
69
69
 
70
- system "./gradlew #{gradle_task || 'lint'}" unless skip_gradle_task
70
+ system "./gradlew #{gradle_task || 'detektCheck'}" unless skip_gradle_task
71
71
 
72
72
  unless File.exist?(report_file)
73
- fail("Lint report not found at `#{report_file}`. "\
73
+ fail("Detekt report not found at `#{report_file}`. "\
74
74
  "Have you forgot to add `xmlReport true` to your `build.gradle` file?")
75
75
  end
76
76
 
@@ -82,7 +82,7 @@ module Danger
82
82
  send_inline_comment(filtered_issues)
83
83
  else
84
84
  message = message_for_issues(filtered_issues)
85
- markdown("### AndroidLint found issues\n\n" + message) unless message.to_s.empty?
85
+ markdown("### Detekt found issues\n\n" + message) unless message.to_s.empty?
86
86
  end
87
87
  end
88
88
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-kotlin_detekt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Fesquet