Replies: 2 comments 3 replies
-
I feel like this is important to me, but I don't seem to have the ability to implement it... When I bring in Airbnb/swift via an SPM plugin, I don't know the path to the |
Beta Was this translation helpful? Give feedback.
-
Currently within Airbnb, engineers run the code formatter / linter via the command line and see any output there. I think it would be nice for SwiftLint violations to show up in Xcode! A build tool plugin would work nicely for this. If you are interested in writing one of these, we'd certainly be open to accepting it as a part of this repo via a PR! On the other hand, the majority of our rules are implemented via SwiftFormat. While SwiftFormat can be used as a linter, it's really a much better experience when used as a code formatter (since it automatically fixes your code for you). I'm very interested in having an Xcode code editor plugin that supports running SwiftFormat and SwiftLint autocorrect directly in the Xcode editor using our formatting configuration. We're exploring this internally, and that work may make it over to this open source repo (depending on if it winds up having a lot of internal dependencies). |
Beta Was this translation helpful? Give feedback.
-
SwiftLint provides a SwiftLintBuildToolPlugin plug-in for real-time prompting of Lint in Xcode.
I noticed that AirbnbSwift does not seem to provide such a plug-in at present. Do all projects within the Airbnb organization rely on the command line to view Lint results?
Is it possible to provide a plug-in similar to SwiftLintBuildToolPlugin to report Lint content in real time?
Beta Was this translation helpful? Give feedback.
All reactions