Skip to content

Commit

Permalink
Merge pull request #560 from Tony-Sol/main
Browse files Browse the repository at this point in the history
Fixes #294 - selectively exclude hidden directories
  • Loading branch information
fwcd authored Mar 8, 2024
2 parents eee8afa + 63c5ff4 commit 7dd4680
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared/src/main/kotlin/org/javacs/kt/SourceExclusions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ class SourceExclusions(
private val workspaceRoots: Collection<Path>,
private val scriptsConfig: ScriptsConfiguration
) {
val excludedPatterns = (listOf(
".*", "bazel-*", "bin", "build", "node_modules", "target"
val excludedPatterns = (listOf(
".git", ".hg", ".svn", // Version control systems
".idea", ".idea_modules", ".vs", ".vscode", ".code-workspace", ".settings", // IDEs
"bazel-*", "bin", "build", "node_modules", "target", // Build systems
) + when {
!scriptsConfig.enabled -> listOf("*.kts")
!scriptsConfig.buildScriptsEnabled -> listOf("*.gradle.kts")
Expand Down

0 comments on commit 7dd4680

Please sign in to comment.