Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #294 - selectively exclude hidden directories #560

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

tony-sol
Copy link
Contributor

Fixes #294 (partly): Selectively exclude hidden directories instead of all hidden files and dirs (mainly, to make it easier to work with Teamcity Kotlin DSL)

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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I would rather integrate with .gitignore or a custom file (e.g. .klsignore) than adding to this ever-growing list of hardcoded directories... my worry is that directory names like target are already so generic, that there might be non-Maven-projects that place their source code there, for example

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, i noticed your TODO for it, and this is really a problem

I'm not sure about reading .gitignore, because some autogenerated files may be ignored, but should be loaded as sources - just like you worry about target.

Consider this PR more like "hotfix" rather than solid improvement:)

Copy link
Owner

@fwcd fwcd Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I agree, in the long term we have got to come up with a proper solution... but for now this fix shouldn't hurt.

@fwcd fwcd merged commit 7dd4680 into fwcd:main Mar 8, 2024
11 checks passed
@fwcd fwcd added this to the 1.3.10 milestone Mar 8, 2024
@stevenrchun
Copy link

I've attempted that "proper solution" here #574 which is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kotlin files in dot directories not indexed
3 participants