Skip to content

Commit 9d01dfe

Browse files
committed
Add Yamllint documentation and configuration
1 parent ba5b505 commit 9d01dfe

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

docs/guides/tools/tools.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ Remove extraneous f prefix
4444
- [Hadolint](./hadolint.md)
4545
- [SwiftLint](./swiftlint.md)
4646
- [PHPStan](./phpstan.md)
47+
- [golangci-lint](./golangci-lint.md)
48+
- [YamlLint](./yamllint.md)

docs/guides/tools/yamllint.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Yamllint
3+
sidebar_label: Yamllint
4+
description: CodeRabbit's guide to Yamllint.
5+
sidebar_position: 8
6+
---
7+
8+
[Yamllint](https://yamllint.readthedocs.io/en/stable/) is a linter for YAML.
9+
10+
## Files
11+
12+
Yamllint will run on files with the following extensions:
13+
14+
- `.yaml`
15+
- `.yml`
16+
17+
## Configuration
18+
19+
Yamllint supports the following config files:
20+
21+
- `.yamllint`
22+
- `.yamllint.yaml`
23+
- `.yamllint.yml`
24+
25+
CodeRabbit will use the following settings based on the profile selected if no config file is found:
26+
27+
### Chill
28+
29+
```yaml
30+
extends: relaxed
31+
rules:
32+
line-length: disable
33+
```
34+
35+
### Assertive
36+
37+
```yaml
38+
extends: default
39+
rules:
40+
line-length: disable
41+
document-start: disable
42+
```
43+
44+
## Links
45+
46+
- [Yamllint Configuration](https://yamllint.readthedocs.io/en/stable/configuration.html)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy