bazelbuild / rules_apple

Bazel rules to build apps for Apple platforms.
Apache License 2.0
512 stars 269 forks source link

How to obtain swiftc log for use in swiftlint #2470

Open ed-irl opened 5 months ago

ed-irl commented 5 months ago

Hello, SwiftLint is an application that can do static analysis of Swift files in order to improve code quality.

The analyze command (which offers some additional capabilities compared to the lint command) requires access to the swiftc log. Currently, I do not think this is exposed except to display error messages when compilation fails.

I was wondering if anyone has integrated this utility into their build, or if there would be interest in accepting a patch to produce the log file as an artifact from the swift_library build rule?

Thank you!