Skip to content

endocrimes/docker-swiftlint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-swiftlint

A Docker image for running swiftlint.

Variables:

  • SWIFTLINT_REVISION can be any commit or tagged release of SwiftLint
  • SWIFT_VERSION can be any tagged release of the Swift Docker image

Building an image

SWIFTLINT_REVISION="0.25.1" SWIFT_VERSION="4.1" make build

Releasing a swiftlint version

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.

Running swiftlint on a folder

docker run --volume /full/path/to/folder:/swiftlint endocrimes/swiftlint:0.25.1 lint

Running swiftlint on stdin

→ 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)

About

A Docker Image for running SwiftLint on CI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published