Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PathMatchersSpec : Spek({
val expectedMatch = Paths.get("/detekt/api/Issue.kt")
val nonMatchingPath = Paths.get("/detekt/cli/Issue.kt")

describe("supports globing") {
describe("supports globbing") {

val libraryPattern = "**/detekt/api/**"
val matcher by memoized { pathMatcher("glob:$libraryPattern") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ class CliArgs {

@Parameter(
names = ["--includes", "-in"],
description = "Globing patterns describing paths to include in the analysis. " +
description = "Globbing patterns describing paths to include in the analysis. " +
"Useful in combination with 'excludes' patterns."
)
var includes: String? = null

@Parameter(
names = ["--excludes", "-ex"],
description = "Globing patterns describing paths to exclude from the analysis."
description = "Globbing patterns describing paths to exclude from the analysis."
)
var excludes: String? = null

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ interface ProjectSpec {
val inputPaths: Collection<Path>

/**
* Globing patterns to exclude sub paths of [inputPaths].
* Globbing patterns to exclude sub paths of [inputPaths].
*/
val excludes: Collection<String>

/**
* Globing patterns which apply after paths get excluded by [excludes].
* Globbing patterns which apply after paths get excluded by [excludes].
*/
val includes: Collection<String>
}
2 changes: 1 addition & 1 deletion docs/pages/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To read about all supported rule sets and rules, use the side navigation `Rule S

### Path Filters / Excludes / Includes

Fine grained path filters can be defined for each rule or rule set through globing patterns.
Fine grained path filters can be defined for each rule or rule set through globbing patterns.
This gives the user more freedom in analyzing only specific files
and rule authors the ability to write *library only* rules.

Expand Down