hadolint 1.10.2 → 1.10.3
raw patch · 3 files changed
+14/−12 lines, 3 filesdep ~language-dockerPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: language-docker
API changes (from Hackage documentation)
Files
- README.md +8/−7
- hadolint.cabal +5/−5
- test/Spec.hs +1/−0
README.md view
@@ -41,19 +41,20 @@ [release page][]. However, if it doesn't work for you, please fall back to Docker, `brew` or source installation. -If you are on OSX you can use [brew](http://brew.sh/) to install hadolint.+If you are on OSX you can use [brew](https://brew.sh/) to install `hadolint`. ```bash brew install hadolint ``` -As shwon before, hadolint ia available as a docker container:+As shown before, `hadolint` is available as a Docker container: ```bash docker pull hadolint/hadolint ``` -If you need a docker container with shell access, use the debian variant of the docker image:+If you need a Docker container with shell access, use the Debian variant of the+Docker image: ```bash docker pull hadolint/hadolint:latest-debian@@ -70,7 +71,7 @@ ## Configure -hadolint supports specifying the ignored rules using a configuration file. The configuration+`hadolint` supports specifying the ignored rules using a configuration file. The configuration file should be in `yaml` format. This is one valid configuration file as an example: ```yaml@@ -79,7 +80,7 @@ - SC1010 ``` -Additionally, Hadolint can warn you when images from untrusted repositories are being+Additionally, `hadolint` can warn you when images from untrusted repositories are being used in Dockerfiles, you can append the `trustedRegistries` keys to the configuration file as shown below: @@ -93,7 +94,7 @@ - my-company.com:5000 ``` -Configuration files can be used globally or per project. By default, hadolint will look for+Configuration files can be used globally or per project. By default, `hadolint` will look for a configuration file in the current directory with the name `.hadolint.yaml` The global configuration file should be placed in the folder specified by `XDG_CONFIG_HOME`,@@ -133,7 +134,7 @@ An incomplete list of implemented rules. Click on the error code to get more detailed information. -- Rules with the prefix `DL` originate from **hadolint**. Take a look at+- Rules with the prefix `DL` originate from `hadolint`. Take a look at `Rules.hs` to find the implementation of the rules. - Rules with the `SC` prefix originate from **ShellCheck** (Only the most
hadolint.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 5351a7553844e527dcb29c2614b2673edb7e340704ed1a69966d2dbe4f7ad3be+-- hash: 2a386958e9870479c4f5a2e87fff7c8e8b1c44c1fba66de905c00842552fa9bd name: hadolint-version: 1.10.2+version: 1.10.3 synopsis: Dockerfile Linter JavaScript API description: A smarter Dockerfile linter that helps you build best practice Docker images. category: Development@@ -34,7 +34,7 @@ , base >=4.8 && <5 , bytestring , containers- , language-docker >=6.0.3 && <7+ , language-docker >=6.0.4 && <7 , megaparsec >=6.4 , mtl , split >=0.2@@ -64,7 +64,7 @@ , filepath , gitrev >=1.3.1 , hadolint- , language-docker >=6.0.3 && <7+ , language-docker >=6.0.4 && <7 , megaparsec >=6.4 , optparse-applicative >=0.14.0 , text@@ -89,7 +89,7 @@ , bytestring >=0.10 , hadolint , hspec- , language-docker >=6.0.3 && <7+ , language-docker >=6.0.4 && <7 , megaparsec >=6.4 , split >=0.2 , text
test/Spec.hs view
@@ -850,6 +850,7 @@ let dockerFile = [ "FROM scratch as build" , "CMD [\"foo\", \"bar\"]"+ , "CMD [ \"foo\", \"bar\" ]" ] in ruleCatchesNot useJsonArgs $ Text.unlines dockerFile