Print workspace directory only in debug builds (#6137)

This commit is contained in:
Danny Mösch
2025-06-25 21:39:45 +02:00
committed by GitHub
parent e65767baf8
commit 17c77cd1f8
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -10,6 +10,11 @@
* SwiftLint now requires macOS 13 or higher to run.
[JP Simard](https://github.com/jpsim)
* In `SwiftLintBuildToolPlugin`, print the content of the `BUILD_WORKSPACE_DIRECTORY`
environment variable only in debug builds.
[SimplyDanny](https://github.com/SimplyDanny)
[#6135](https://github.com/realm/SwiftLint/issues/6135)
### Experimental
@@ -50,7 +50,9 @@ struct SwiftLintBuildToolPlugin: BuildToolPlugin {
return []
}
// Outputs the environment to the build log for reference.
#if DEBUG
print("Environment:", environment)
#endif
let arguments: [String] = [
"lint",
"--quiet",