https://github.com/saschpe/docker-swiftlint
Docker image for SwiftLint
https://github.com/saschpe/docker-swiftlint
docker docker-cloud swift swiftlint
Last synced: 16 days ago
JSON representation
Docker image for SwiftLint
- Host: GitHub
- URL: https://github.com/saschpe/docker-swiftlint
- Owner: saschpe
- License: apache-2.0
- Created: 2018-04-06T07:23:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T15:23:46.000Z (over 6 years ago)
- Last Synced: 2025-02-03T21:42:47.768Z (about 1 year ago)
- Topics: docker, docker-cloud, swift, swiftlint
- Language: Shell
- Homepage: https://hub.docker.com/r/saschpe/swiftlint/
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker SwiftLint
[](http://www.apache.org/licenses/LICENSE-2.0.html)
[](https://travis-ci.org/saschpe/docker-swiftlint)
[](https://hub.docker.com/r/saschpe/swiftlint/)
[](https://hub.docker.com/r/saschpe/swiftlint/)
SwiftLint container based on Alpine Linux.
## Usage
Invoke the container just like *swiftlint* ifself:
```bash
docker run --rm saschpe/swiftlint version
```
Assuming you want to lint all Swift files in a directory
*src*, a full example might look like this:
```bash
cd src/
docker run \
--rm \
--security-opt label=disable \
--volume ${PWD}:/opt \
--workdir /opt \
saschpe/swiftlint
```
Just put this into a script for easier invocation.
## Development
To build the container image with with the default SwiftLint version, invoke:
```bash
./scripts/build
```
## License
Copyright 2017 Sascha Peilicke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.