-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand (existing) directory to globs for default kotlin extensions (#…
…1537) * Expand (existing) directory to globs for default kotlin extensions * When an (existing) directory (without glob pattern) is specified then only process files with default kotlin extensions in that directory or its subdirectories. This is equivalent to execute ktlint in that directory without specifying any pattern. Closes #917 * When a glob does not contain an absolute path then do not prefix it with the root directory but instead ensure that it is prefixed it with the "**/" matcher. In this way files directly inside the workdir are matched as well as files in subdirectories of the workdir. * Print an error message and return with non-zero exit code when no files are found that match with the globs Closes #629 * Refactor by eliminating variable project2Files * Refactor to improve readability and consistency * Extract constants to private values. Align name of test class with production class. * Remove characters which may cause a problem on Windows * Normalize paths for Windows build * Disable tests on Windows using absolute paths as those are not supported by jimfs
- Loading branch information
1 parent
7ae1126
commit 66ab574
Showing
3 changed files
with
142 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters