1
0
Fork 0

lint: config markdownlint, fix some docs

This commit is contained in:
ssube 2019-06-30 16:35:22 -05:00
parent 7e2d20eb00
commit 7389ef3947
4 changed files with 19 additions and 17 deletions

View File

@ -1,8 +1,7 @@
version: "2"
exclude_patterns:
- docs/dev/style.md
- src/migration/
- CHANGELOG.md
- vendor/
plugins:

2
.mdlrc Normal file
View File

@ -0,0 +1,2 @@
rules all
rule "MD013", :line_length => 120

View File

@ -52,6 +52,7 @@ To download, validate, and apply a Kubernetes resource:
{"name":"salty-dog","hostname":"cerberus","pid":7860,"level":30,"msg":"all rules passed","time":"2019-06-16T02:04:37.797Z","v":0}
ingress.extensions/gitlab created (dry run)
```
## Status
[![Pipeline status](https://img.shields.io/gitlab/pipeline/ssube/salty-dog.svg?gitlab_url=https%3A%2F%2Fgit.apextoaster.com&logo=gitlab)](https://git.apextoaster.com/ssube/salty-dog/commits/master)

View File

@ -47,21 +47,21 @@ Original rough outline document.
## Run
1. Load source and copy to state
2. Load all fragments in rule paths
3. Build list of applicable rules by level, name, tag
4. For each rule:
5. Select potential nodes
6. Filter applicable nodes
7. Copy fragment
8. Apply schema
9. If schema passes and output matches, log success
10. If schema passes and output differs, log difference
11. If schema fails, log errors and mark error
12. If running in fix mode and schema passed, update state
13. After all rules:
14. If running in fix mode and all rules passed:
15. Log differences between source and state
16. Write state to dest
1. Load all fragments in rule paths
1. Build list of applicable rules by level, name, tag
1. For each rule:
1. Select potential nodes
1. Filter applicable nodes
1. Copy fragment
1. Apply schema
1. If schema passes and output matches, log success
1. If schema passes and output differs, log difference
1. If schema fails, log errors and mark error
1. If running in fix mode and schema passed, update state
1. After all rules:
1. If running in fix mode and all rules passed:
1. Log differences between source and state
1. Write state to dest
## Dependencies