Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #53 from novoda/tweak-detekt-exception-message
Browse files Browse the repository at this point in the history
Tweak Detekt missing exception message
  • Loading branch information
tasomaniac committed Jan 31, 2018
2 parents 1277aef + 9cc5780 commit 4160752
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.gradle.api.Task
class DetektConfigurator implements Configurator {

private static final String DETEKT_PLUGIN = 'io.gitlab.arturbosch.detekt'
private static final String DETEKT_NOT_APPLIED = 'The detekt plugin is configured but not applied. Please apply the plugin in your build script For more information see https://github.com/arturbosch/detekt.'
private static final String DETEKT_NOT_APPLIED = 'The detekt plugin is configured but not applied. Please apply the plugin in your build script.\nFor more information see https://github.com/arturbosch/detekt.'

private final Project project
private final Violations violations
Expand Down
4 changes: 3 additions & 1 deletion plugin/src/test/groovy/com/novoda/test/LogsSubject.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import javax.annotation.Nullable
import static com.novoda.test.TestProject.Result.Logs;

class LogsSubject extends Subject<LogsSubject, Logs> {

private static final String VIOLATIONS_LIMIT_EXCEEDED = "Violations limit exceeded"
private static final String DETEKT_NOT_APPLIED = "The detekt plugin is configured but not applied. Please apply the plugin in your build script For more information see https://github.com/arturbosch/detekt."
private static final String DETEKT_NOT_APPLIED = "The detekt plugin is configured but not applied. Please apply the plugin in your build script.\nFor more informations see https://github.com/arturbosch/detekt."
private static final String CHECKSTYLE_VIOLATIONS_FOUND = "Checkstyle violations found"
private static final String PMD_VIOLATIONS_FOUND = "PMD violations found"
private static final String FINDBUGS_VIOLATIONS_FOUND = "Findbugs violations found"
private static final String DETEKT_VIOLATIONS_FOUND = "Detekt violations found"

private static final SubjectFactory<LogsSubject, Logs> FACTORY = new SubjectFactory<LogsSubject, Logs>() {
@Override
LogsSubject getSubject(FailureStrategy failureStrategy, Logs logs) {
Expand Down

0 comments on commit 4160752

Please sign in to comment.