You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Ktlint CLI is started with a glob that refers to a directory that is not a child directory of the current working directory than no files in that directory will be found. The problem seems especially to occur when using Bash as it deals differently with glob expansion.
The easiest reproduction is running ktlint ../project-directory/src/**/*.kt in some subdirectory other than project-directory.
Fix directory traversal for patterns referring to paths outside of current working directory or any of it child directories. Note that on Windows the (relative) patterns may not refer to a path outside of the current working directory.
Closes#2002
If Ktlint CLI is started with a glob that refers to a directory that is not a child directory of the current working directory than no files in that directory will be found. The problem seems especially to occur when using Bash as it deals differently with glob expansion.
The easiest reproduction is running
ktlint ../project-directory/src/**/*.kt
in some subdirectory other thanproject-directory
.Originally posted by @jokinol in #1600 (comment)
The text was updated successfully, but these errors were encountered: