Skip to content

Commit f9ce6a7

Browse files
committed
fix
Signed-off-by: Sinelnikov Michail <mikhail.sinelnikov@flant.com>
1 parent 88a916e commit f9ce6a7

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

pkg/linters/container/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,25 @@ linters-settings:
12511251
12521252
## Configuration
12531253
1254+
The Container linter can be configured at both the module level and for individual rules.
1255+
1256+
### Module-Level Settings
1257+
1258+
Configure the overall impact level for the container linter:
1259+
1260+
```yaml
1261+
# .dmt.yaml
1262+
linters-settings:
1263+
container:
1264+
impact: error # Options: error, warning, info, ignored
1265+
```
1266+
1267+
**Impact levels:**
1268+
- `error`: Violations fail the validation and return a non-zero exit code
1269+
- `warning`: Violations are reported but don't fail the validation
1270+
- `info`: Violations are reported as informational messages
1271+
- `ignored`: The linter is completely disabled
1272+
12541273
### Exclude Rules
12551274

12561275
Many rules support excluding specific objects or containers:

pkg/linters/docs/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,25 @@ linters-settings:
299299
300300
## Configuration
301301
302+
The Documentation linter can be configured at both the module level and for individual rules.
303+
304+
### Module-Level Settings
305+
306+
Configure the overall impact level for the documentation linter:
307+
308+
```yaml
309+
# .dmt.yaml
310+
linters-settings:
311+
documentation:
312+
impact: error # Options: error, warning, info, ignored
313+
```
314+
315+
**Impact levels:**
316+
- `error`: Violations fail the validation and return a non-zero exit code
317+
- `warning`: Violations are reported but don't fail the validation
318+
- `info`: Violations are reported as informational messages
319+
- `ignored`: The linter is completely disabled
320+
302321
### Path-Based Exclusions
303322

304323
Exclude specific modules or files from validation:

0 commit comments

Comments
 (0)