Skip to content

Commit

Permalink
feat(helper-cli): Extend path exclude generator by a couple of patterns
Browse files Browse the repository at this point in the history
Add patterns for common CI configuration, build or test files and dirs.

Signed-off-by: Thomas Steenbergen <[email protected]>
  • Loading branch information
tsteenbe committed Nov 23, 2023
1 parent 1e4a20c commit 7160370
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private val PATH_EXCLUDES_REASON_FOR_DIR_NAME = listOf(
"*performance*" to BUILD_TOOL_OF,
"*profiler*" to BUILD_TOOL_OF,
"*test*" to TEST_OF,
".circleci" to BUILD_TOOL_OF,

Check warning on line 154 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L154

Added line #L154 was not covered by tests
".github" to BUILD_TOOL_OF,
".gradle" to BUILD_TOOL_OF,
".idea" to BUILD_TOOL_OF,
Expand All @@ -159,6 +160,7 @@ private val PATH_EXCLUDES_REASON_FOR_DIR_NAME = listOf(
".teamcity" to BUILD_TOOL_OF,
".travis" to BUILD_TOOL_OF,
".yarn" to BUILD_TOOL_OF,
"bamboo-specs" to BUILD_TOOL_OF,

Check warning on line 163 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L163

Added line #L163 was not covered by tests
"bench" to TEST_OF,
"benches" to TEST_OF,
"benchmark" to TEST_OF,
Expand All @@ -178,6 +180,7 @@ private val PATH_EXCLUDES_REASON_FOR_DIR_NAME = listOf(
"jsdoc" to DOCUMENTATION_OF,
"m4" to BUILD_TOOL_OF,
"manual" to DOCUMENTATION_OF,
"perf" to TEST_OF,

Check warning on line 183 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L183

Added line #L183 was not covered by tests
"scripts" to BUILD_TOOL_OF,
"spec" to DOCUMENTATION_OF,
"srcm4" to BUILD_TOOL_OF,
Expand All @@ -203,9 +206,17 @@ private val PATH_EXCLUDE_REASON_FOR_FILENAME = listOf(
"*.test.js" to TEST_OF,
"*_test.go" to TEST_OF,
"*coverage*.sh" to BUILD_TOOL_OF,
".appveyor.yml" to BUILD_TOOL_OF,
".bazelrc" to BUILD_TOOL_OF,
".clang-format" to BUILD_TOOL_OF,
".drone.yml" to BUILD_TOOL_OF,

Check warning on line 212 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L209-L212

Added lines #L209 - L212 were not covered by tests
".editorconfig" to PathExcludeReason.OTHER,
ORT_REPO_CONFIG_FILENAME to BUILD_TOOL_OF,
".gitlab-ci.yml" to BUILD_TOOL_OF,
".jitpack.yml" to BUILD_TOOL_OF,
".mailmap" to PathExcludeReason.OTHER,

Check warning on line 217 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L215-L217

Added lines #L215 - L217 were not covered by tests
".travis.yml" to BUILD_TOOL_OF,
".zuul.yml" to BUILD_TOOL_OF,

Check warning on line 219 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L219

Added line #L219 was not covered by tests
"BUILD" to BUILD_TOOL_OF, // Bazel
"Build.PL" to BUILD_TOOL_OF,
"CHANGELOG*" to BUILD_TOOL_OF,
Expand Down Expand Up @@ -236,6 +247,8 @@ private val PATH_EXCLUDE_REASON_FOR_FILENAME = listOf(
"RELEASE-NOTES*" to DOCUMENTATION_OF,
"Rakefile*" to BUILD_TOOL_OF,
"SECURITY.md" to DOCUMENTATION_OF,
"azure-pipelines.yml" to BUILD_TOOL_OF,
"bitbucket-pipelines.yml" to BUILD_TOOL_OF,

Check warning on line 251 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L250-L251

Added lines #L250 - L251 were not covered by tests
"build" to BUILD_TOOL_OF,
"build*.sh" to BUILD_TOOL_OF,
"build.bat" to BUILD_TOOL_OF,
Expand All @@ -245,7 +258,10 @@ private val PATH_EXCLUDE_REASON_FOR_FILENAME = listOf(
"build.sbt" to BUILD_TOOL_OF,
"changelog*" to BUILD_TOOL_OF,
"checksrc.bat" to BUILD_TOOL_OF,
"codecov.yml" to BUILD_TOOL_OF,

Check warning on line 261 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L261

Added line #L261 was not covered by tests
"codenarc.groovy" to BUILD_TOOL_OF,
"codeship-services.yml" to BUILD_TOOL_OF,
"codeship-steps.yml" to BUILD_TOOL_OF,

Check warning on line 264 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L263-L264

Added lines #L263 - L264 were not covered by tests
"compile" to BUILD_TOOL_OF,
"conanfile.py" to BUILD_TOOL_OF,
"config.guess" to BUILD_TOOL_OF,
Expand All @@ -265,6 +281,7 @@ private val PATH_EXCLUDE_REASON_FOR_FILENAME = listOf(
"package-lock.json" to BUILD_TOOL_OF,
"package.json" to BUILD_TOOL_OF,
"proguard-rules.pro" to BUILD_TOOL_OF,
"renovate.json" to BUILD_TOOL_OF,

Check warning on line 284 in helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

helper-cli/src/main/kotlin/utils/PathExcludeGenerator.kt#L284

Added line #L284 was not covered by tests
"runsuite.c" to TEST_OF,
"runtest.c" to TEST_OF,
"settings.gradle" to BUILD_TOOL_OF,
Expand Down

0 comments on commit 7160370

Please sign in to comment.