Add SwiftLint to macOS container by default

Please add SwiftLint to the list of binaries pre-installed on iOS containers. It has 11k+ stars on Github and is widely used in the community.

Often it needs to be run as part of the main build job, and not in a separate docker container as advised to be done with the Workflow feature.
SwiftLint has added support for analyze feature, which needs access to build environment, such as build logs and DerivedData directory.

Currently it’s possible to install SwiftLint as a step, but that prolongs each job run significantly.
We also experience minor downgrade in job length using workflows, because the repo has to be fully checked out including all submodules.

Is SwiftLint something that might be added to macOS containers in the future, or do you have any ideas how to solve job length issue?

Many thanks!

1 Like

You could add this to the “Ideas” board (linked from the main CircleCI site).

1 Like
HOMEBREW_NO_AUTO_UPDATE=1 brew install swiftlint

Takes around 10 seconds which should be acceptable. You can get it lower by caching the binary (see https://circleci.com/docs/2.0/configuration-reference/#save_cache) but probably not worth the extra complexity.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.