mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
Print workspace directory only in debug builds (#6137)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user