When running in lint mode with content from stdin, the output is incorrect.
For example, when running cat Package.swift | swiftformat --lint --reporter json stdout is just th contents of Package.swift, while stderr is the correct "Source input did not pass lint check." etc. The actual lint output, regardless of if there is a reporter set or not, is nowhere to be seen.
However, it behaves as expected when reading the file directly.
I'm planning on having a go at fixing this, however I'm not too familiar with the codebase, so if anyone gets to it before me, thanks!
When running in lint mode with content from stdin, the output is incorrect.
For example, when running
cat Package.swift | swiftformat --lint --reporter json
stdout is just th contents of Package.swift, while stderr is the correct "Source input did not pass lint check." etc. The actual lint output, regardless of if there is a reporter set or not, is nowhere to be seen.However, it behaves as expected when reading the file directly.
I'm planning on having a go at fixing this, however I'm not too familiar with the codebase, so if anyone gets to it before me, thanks!