A Docker image for running swiftlint.
Variables:
SWIFTLINT_REVISION
can be any commit or tagged release of SwiftLintSWIFT_VERSION
can be any tagged release of the Swift Docker image
SWIFTLINT_REVISION="0.25.1" SWIFT_VERSION="4.1" make build
SWIFTLINT_REVISION="0.25.1" SWIFT_VERSION="4.1" make release
To push to an org that is not endocrimes
, you can also set ORG_NAME
.
docker run --volume /full/path/to/folder:/swiftlint endocrimes/swiftlint:0.25.1 lint
→ echo "let i = 0" | docker run endocrimes/swiftlint:0.25.1 lint --use-stdin
Done linting! Found 1 violation, 0 serious in 1 file.
<nopath>:1: warning: Trailing Newline Violation: Files should have a single trailing newline. (trailing_newline)