Use custom YAML & Markdown validation rules
Browse files- .github/workflows/ci-cd.yaml +3 -0
- .mdlrc +2 -0
- .yamllint +19 -0
- README.md +6 -6
- german.yaml +5 -5
- markdownlint.rb +2 -0
.github/workflows/ci-cd.yaml
CHANGED
@@ -23,3 +23,6 @@ name: CI/CD
|
|
23 |
jobs:
|
24 |
yml-md-style-and-link-checks:
|
25 |
uses: QubitPi/hashistack/.github/workflows/yml-md-style-and-link-checks.yml@master
|
|
|
|
|
|
|
|
23 |
jobs:
|
24 |
yml-md-style-and-link-checks:
|
25 |
uses: QubitPi/hashistack/.github/workflows/yml-md-style-and-link-checks.yml@master
|
26 |
+
with:
|
27 |
+
use-custom-yamllint-config-file: true
|
28 |
+
use-custom-markdownlint-config-file: true
|
.mdlrc
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
rules "~MD002", "~MD003", "~MD005", "~MD007", "~MD013", "~MD022", "~MD024", "~MD029", "~MD033", "~MD034", "~MD036", "~MD041"
|
2 |
+
style "#{File.dirname(__FILE__)}/markdownlint.rb"
|
.yamllint
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
extends: default
|
3 |
+
rules:
|
4 |
+
line-length:
|
5 |
+
max: 256
|
6 |
+
level: warning
|
7 |
+
document-start: disable
|
8 |
+
braces:
|
9 |
+
forbid: false
|
10 |
+
min-spaces-inside: 0
|
11 |
+
max-spaces-inside: 1
|
12 |
+
min-spaces-inside-empty: -1
|
13 |
+
max-spaces-inside-empty: -1
|
14 |
+
commas:
|
15 |
+
max-spaces-before: -1
|
16 |
+
min-spaces-after: 1
|
17 |
+
max-spaces-after: -1
|
18 |
+
brackets:
|
19 |
+
max-spaces-inside: -1
|
README.md
CHANGED
@@ -100,13 +100,13 @@ vocabulary:
|
|
100 |
|
101 |
| | masculine | feminine | neuter | plural |
|
102 |
|:--------------:|:---------:|:--------:|:------:|:------:|
|
103 |
-
| __nominative__ | ein | eine | ein |
|
104 |
-
| __genitive__ | eines | einer | eines |
|
105 |
-
| __dative__ | einem | einer | einem |
|
106 |
-
| __accusative__ | einen | eine | ein |
|
107 |
|
108 |
-
|
109 |
-
[Wiktionary](https://en.wiktionary.org/wiki/ein#Declension_2)
|
110 |
|
111 |
### [Korean](./korean.yaml)
|
112 |
|
|
|
100 |
|
101 |
| | masculine | feminine | neuter | plural |
|
102 |
|:--------------:|:---------:|:--------:|:------:|:------:|
|
103 |
+
| __nominative__ | ein | eine | ein | N/A |
|
104 |
+
| __genitive__ | eines | einer | eines | N/A |
|
105 |
+
| __dative__ | einem | einer | einem | N/A |
|
106 |
+
| __accusative__ | einen | eine | ein | N/A |
|
107 |
|
108 |
+
__The declension/conjugation tables for all vocabularies are sourced from
|
109 |
+
[Wiktionary](https://en.wiktionary.org/wiki/ein#Declension_2)__
|
110 |
|
111 |
### [Korean](./korean.yaml)
|
112 |
|
german.yaml
CHANGED
@@ -6,11 +6,11 @@ vocabulary:
|
|
6 |
- term: ein
|
7 |
definition: (article) a, an
|
8 |
declension:
|
9 |
-
- [
|
10 |
-
- [nominative, ein, eine, ein,
|
11 |
-
- [genitive, eines, einer, eines,
|
12 |
-
- [dative, einem, einer, einem,
|
13 |
-
- [accusative, einen, eine, ein,
|
14 |
- term: zwei
|
15 |
definition: 2
|
16 |
- term: drei
|
|
|
6 |
- term: ein
|
7 |
definition: (article) a, an
|
8 |
declension:
|
9 |
+
- ["", masculine, feminine, neuter, plural]
|
10 |
+
- [nominative, ein, eine, ein, N/A ]
|
11 |
+
- [genitive, eines, einer, eines, N/A ]
|
12 |
+
- [dative, einem, einer, einem, N/A ]
|
13 |
+
- [accusative, einen, eine, ein, N/A ]
|
14 |
- term: zwei
|
15 |
definition: 2
|
16 |
- term: drei
|
markdownlint.rb
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
rules "~MD002", "~MD003", "~MD005", "~MD007", "~MD013", "~MD022", "~MD024", "~MD029", "~MD033", "~MD034", "~MD036", "~MD041", "~MD055", "~MD057"
|
2 |
+
style "#{File.dirname(__FILE__)}/markdownlint.rb"
|