Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create detekt-rules-ruleauthors module
- Loading branch information
1 parent
e4a2bf5
commit 31fd7ef
Showing
9 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
id("module") | ||
} | ||
|
||
dependencies { | ||
compileOnly(projects.detektApi) | ||
testImplementation(projects.detektTest) | ||
testImplementation(libs.assertj) | ||
} |
18 changes: 18 additions & 0 deletions
18
...-rules-ruleauthors/src/main/kotlin/io/gitlab/arturbosch/detekt/authors/AuthorsProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.gitlab.arturbosch.detekt.authors | ||
|
||
import io.gitlab.arturbosch.detekt.api.Config | ||
import io.gitlab.arturbosch.detekt.api.RuleSet | ||
import io.gitlab.arturbosch.detekt.api.RuleSetProvider | ||
import io.gitlab.arturbosch.detekt.api.internal.ActiveByDefault | ||
|
||
/** | ||
* The authors ruleset provides rules that ensures good practices when writing detekt rules | ||
*/ | ||
@ActiveByDefault("1.22.0") | ||
class AuthorsProvider : RuleSetProvider { | ||
|
||
override val ruleSetId: String = "detekt" | ||
|
||
@Suppress("UseEmptyCounterpart") | ||
override fun instance(config: Config) = RuleSet(ruleSetId, listOf()) | ||
} |
1 change: 1 addition & 0 deletions
1
...hors/src/main/resources/META-INF/services/io.gitlab.arturbosch.detekt.api.RuleSetProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
io.gitlab.arturbosch.detekt.authors.AuthorsProvider |
2 changes: 2 additions & 0 deletions
2
detekt-rules-ruleauthors/src/main/resources/config/config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
detekt: | ||
active: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters