Skip to content

Commit

Permalink
Mention Ktlint uses .gitignore pattern style syntax. (#609)
Browse files Browse the repository at this point in the history
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
  • Loading branch information
Tapchicoma authored Oct 9, 2019
1 parent f82f133 commit 47aadbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ Usually simple `http_proxy=http://proxy-server:port https_proxy=http://proxy-ser
$ ktlint --color
src/main/kotlin/Main.kt:10:10: Unused import

# check only certain locations (prepend ! to negate the pattern)
# check only certain locations (prepend ! to negate the pattern,
# Ktlint uses .gitignore pattern style syntax)
$ ktlint "src/**/*.kt" "!src/**/*Test.kt"

# auto-correct style violations
Expand Down
3 changes: 2 additions & 1 deletion ktlint/src/main/kotlin/com/pinterest/ktlint/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ Examples:
# (hidden folders will be skipped)
ktlint
# check only certain locations (prepend ! to negate the pattern)
# check only certain locations (prepend ! to negate the pattern,
# Ktlint uses .gitignore pattern style syntax)
ktlint "src/**/*.kt" "!src/**/*Test.kt"
# auto-correct style violations
Expand Down

0 comments on commit 47aadbe

Please # to comment.