-
Notifications
You must be signed in to change notification settings - Fork 1
Static Test #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Test #1
Changes from all commits
54bb40b
44ddc1b
385162c
a3206be
200f00a
c5aca0d
ac9a1e0
2e52eb1
e5bdc68
02d7784
7b9aaeb
8aa2f2b
4d292e5
bcd0300
3c983d9
aa7c098
bd793aa
09ec592
a5d3d24
2224023
4a05583
b21357d
e79f518
ae67e11
a0220f1
229285c
9b4296b
0823745
ff59e81
e4e9243
1fa01ea
325689e
8941fda
74e8056
132df3f
0648b26
a697fbe
bbdb234
3562db2
b6b545c
d0c6d13
843341e
8895c82
118bafb
aa47c3c
d081950
ca802f3
a26f5f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| kotlin_detekt.severity = "warning" | ||
| kotlin_detekt.gradle_task = "detektVerification" | ||
| kotlin_detekt.report_file = "app/build/reports/detekt/detekt-checkstyle.xml" | ||
| kotlin_detekt.detekt(inline_mode: true) | ||
|
|
||
| checkstyle_format.base_path = Dir.pwd | ||
| checkstyle_format.gradle_task = "ktlintVerification" | ||
| checkstyle_format.report 'app/build/reports/ktlint/ktlint-checkstyle.xml' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| source "https://rubygems.org" | ||
|
|
||
| git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | ||
|
|
||
| gem 'danger' | ||
| gem "danger", "~> 7.0.0" | ||
| gem "danger-kotlin_detekt", :github => "sp4wna1/danger-kotlin_detekt" | ||
| gem "danger-checkstyle_format", :github => "sp4wna1/danger-checkstyle_format" |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -2,6 +2,4 @@ package br.com.prado.staticanalysis | |||
|
|
||||
| import java.util.* | ||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
|
|
||||
| class TestDetektErro { | ||||
|
|
||||
| } | ||||
| class TestDetektErro | ||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,16 +2,15 @@ package br.com.prado.staticanalysis | |||||
|
|
||||||
| import java.util.* | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
|
|
||||||
| class TestKtlint { | ||||||
| class TestKtlint | ||||||
|
|
||||||
| } | ||||||
| class A | ||||||
|
|
||||||
| class A {} | ||||||
| class B | ||||||
|
|
||||||
| fun G() {} | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
|
|
||||||
| class B {} | ||||||
|
|
||||||
| fun f(): Unit {} | ||||||
| fun f() {} | ||||||
|
|
||||||
| /* OUTPUT da Task Gradle | ||||||
|
|
||||||
|
|
@@ -24,4 +23,4 @@ staticanalysis/TestKtlint.kt:11:1: Needless blank line(s) | |||||
| staticanalysis/TestKtlint.kt:12:9: Unnecessary block ("{}") | ||||||
| staticanalysis/TestKtlint.kt:14:10: Unnecessary "Unit" return type | ||||||
|
|
||||||
| */ | ||||||
| */ | ||||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,8 +1,7 @@ | ||||
| package br.com.prado.staticanalysis | ||||
|
|
||||
| import org.junit.Test | ||||
|
|
||||
| import org.junit.Assert.* | ||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||
| import org.junit.Test | ||||
|
|
||||
| /** | ||||
| * Example local unit test, which will execute on the development machine (host). | ||||
|
|
||||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wildcard import (cannot be auto-corrected)