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 051388b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 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,16 @@ private val PATH_EXCLUDE_REASON_FOR_FILENAME = listOf(
"*.test.js" to TEST_OF,
"*_test.go" to TEST_OF,
"*coverage*.sh" 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 211 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-L211

Added lines #L209 - L211 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 216 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#L214-L216

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

Check warning on line 218 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#L218

Added line #L218 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 +246,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 250 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#L249-L250

Added lines #L249 - L250 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 +257,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 260 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#L260

Added line #L260 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 263 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#L262-L263

Added lines #L262 - L263 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 +280,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 283 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#L283

Added line #L283 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 051388b

Please sign in to comment.