We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2acc60 commit 8c22eb6Copy full SHA for 8c22eb6
Sources/swift-format/Subcommands/LintFormatOptions.swift
@@ -107,7 +107,7 @@ struct LintFormatOptions: ParsableArguments {
107
throw ValidationError("'--recursive' is only valid when formatting or linting files")
108
}
109
110
- if assumeFilename != nil && !paths.isEmpty {
+ if assumeFilename != nil && !(paths.isEmpty || paths == ["-"]) {
111
throw ValidationError("'--assume-filename' is only valid when reading from stdin")
112
113
0 commit comments