You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: docs/contributing/lint.md
+11-7
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Image Lint
2
2
3
-
We are using the [Hadolint][LK1] tool to analyse each `Dockerfile`to comply with [Docker best practices][LK2].
3
+
To comply with [Docker best practices][LK2], we are using the [Hadolint][LK1] tool to analyse each `Dockerfile` .
4
4
5
-
## Install
5
+
## Installation
6
6
7
-
There is a specific make target to install the linter.
7
+
There is a specific `make` target to install the linter.
8
8
By default `hadolint` will be installed in `${HOME}/hadolint`.
9
9
10
10
```bash
@@ -17,7 +17,9 @@ $ make lint-install
17
17
18
18
## Lint
19
19
20
-
The linter can be run per stack `make lint/<stack>`.
20
+
### Per Stack
21
+
22
+
The linter can be run per stack.
21
23
22
24
```bash
23
25
$ make lint/scipy-notebook
@@ -39,15 +41,17 @@ Optionally you can pass arguments to the linter.
39
41
$ make lint/scipy-notebook ARGS="--format codeclimate"
40
42
```
41
43
42
-
To lint all the stacks.
44
+
### All the Stacks
45
+
46
+
The linter can be run against all the stacks.
43
47
44
48
```bash
45
49
$ make lint-all
46
50
```
47
51
48
-
## Ignore Rules
52
+
## Ignoring Rules
49
53
50
-
Sometimes it's necessary to ignore [some rules][LK3]. The preferred way is to do it in the `Dockerfile`.
54
+
Sometimes it is necessary to ignore [some rules][LK3]. The preferred way to do it is to flag ignored rules in the `Dockerfile`.
51
55
52
56
> It is also possible to ignore rules by using a special comment directly above the Dockerfile instruction you want to make an exception for. Ignore rule comments look like `# hadolint ignore=DL3001,SC1081`. For example:
0 commit comments