Skip to content

Commit 575a017

Browse files
chore: first part of rewrite
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
1 parent a966833 commit 575a017

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+508
-625
lines changed

.gitattributes

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@
1111
# -----------------------------------------------
1212

1313
* text=auto
14+
*.md text diff=markdown
1415

1516
*.png -text
1617
*.ico -text
1718

18-
# -----------------------------------------------
19-
# ---- Documents ------------------------------
20-
# -----------------------------------------------
21-
22-
*.adoc text diff=asciidoc
23-
2419
# -----------------------------------------------
2520
# ---- LFS ------------------------------------
2621
# -----------------------------------------------

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ updates:
77
target-branch: main
88
rebase-strategy: auto
99
schedule:
10-
interval: weekly
10+
interval: monthly
1111
reviewers:
1212
- georglauterbach
1313
assignees:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"Verbose": false,
3+
"Debug": false,
4+
"IgnoreDefaults": false,
5+
"SpacesAftertabs": true,
6+
"NoColor": false,
7+
"Exclude": [
8+
"\\.sources$",
9+
"code/Cargo\\.lock$",
10+
"data/examples/git/gitconfig$"
11+
],
12+
"AllowedContentTypes": [],
13+
"PassedFiles": [],
14+
"Disable": {
15+
"EndOfLine": false,
16+
"Indentation": false,
17+
"InsertFinalNewline": false,
18+
"TrimTrailingWhitespace": false,
19+
"IndentSize": false,
20+
"MaxLineLength": true
21+
}
22+
}

.github/linters/.markdown-lint.yml

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
---
2+
default: true
3+
extends: null
4+
5+
# MD001/heading-increment/header-increment -
6+
# Heading levels should only increment by one level at a time
7+
MD001: true
8+
9+
# MD002/first-heading-h1/first-header-h1 - First heading should be a top-level heading
10+
MD002:
11+
# Heading level
12+
level: 1
13+
14+
# MD003/heading-style/header-style - Heading style
15+
MD003:
16+
# Heading style
17+
style: consistent
18+
19+
# MD004/ul-style - Unordered list style
20+
MD004:
21+
# List style
22+
style: consistent
23+
24+
# MD005/list-indent - Inconsistent indentation for list items at the same level
25+
MD005: true
26+
27+
# MD006/ul-start-left - Consider starting bulleted lists at the beginning of the line
28+
MD006: true
29+
30+
# MD007/ul-indent - Unordered list indentation
31+
MD007:
32+
# Spaces for indent
33+
indent: 2
34+
# Whether to indent the first level of the list
35+
start_indented: false
36+
37+
# MD009/no-trailing-spaces - Trailing spaces
38+
MD009:
39+
# Spaces for line break
40+
br_spaces: 2
41+
# Allow spaces for empty lines in list items
42+
list_item_empty_lines: false
43+
# Include unnecessary breaks
44+
strict: false
45+
46+
# MD010/no-hard-tabs - Hard tabs
47+
MD010:
48+
# Include code blocks
49+
code_blocks: true
50+
# Number of spaces for each hard tab
51+
spaces_per_tab: 1
52+
53+
# MD011/no-reversed-links - Reversed link syntax
54+
MD011: true
55+
56+
# MD012/no-multiple-blanks - Multiple consecutive blank lines
57+
MD012:
58+
# Consecutive blank lines
59+
maximum: 1
60+
61+
# MD013/line-length - Line length
62+
MD013:
63+
# Number of characters
64+
line_length: 11000
65+
# Number of characters for headings
66+
heading_line_length: 11000
67+
# Number of characters for code blocks
68+
code_block_line_length: 11000
69+
# Include code blocks
70+
code_blocks: true
71+
# Include tables
72+
tables: true
73+
# Include headings
74+
headings: true
75+
# Include headings
76+
headers: true
77+
# Strict length checking
78+
strict: true
79+
# Stern length checking
80+
stern: true
81+
82+
# MD014/commands-show-output - Dollar signs used before commands without showing output
83+
MD014: false
84+
85+
# MD018/no-missing-space-atx - No space after hash on atx style heading
86+
MD018: true
87+
88+
# MD019/no-multiple-space-atx - Multiple spaces after hash on atx style heading
89+
MD019: true
90+
91+
# MD020/no-missing-space-closed-atx - No space inside hashes on closed atx style heading
92+
MD020: true
93+
94+
# MD021/no-multiple-space-closed-atx -
95+
# Multiple spaces inside hashes on closed atx style heading
96+
MD021: true
97+
98+
# MD022/blanks-around-headings/blanks-around-headers -
99+
# Headings should be surrounded by blank lines
100+
MD022:
101+
# Blank lines above heading
102+
lines_above: 1
103+
# Blank lines below heading
104+
lines_below: 1
105+
106+
# MD023/heading-start-left/header-start-left - Headings must start at the beginning of the line
107+
MD023: true
108+
109+
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
110+
MD024:
111+
# Only check sibling headings
112+
allow_different_nesting: false
113+
# Only check sibling headings
114+
siblings_only: false
115+
116+
# MD025/single-title/single-h1 - Multiple top-level headings in the same document
117+
MD025:
118+
# Heading level
119+
level: 1
120+
# RegExp for matching title in front matter
121+
front_matter_title: ^\\s*title\\s*[:=]
122+
123+
# MD026/no-trailing-punctuation - Trailing punctuation in heading
124+
MD026:
125+
# Punctuation characters
126+
punctuation: .,;:!。,;:!
127+
128+
# MD027/no-multiple-space-blockquote - Multiple spaces after blockquote symbol
129+
MD027: true
130+
131+
# MD028/no-blanks-blockquote - Blank line inside blockquote
132+
MD028: true
133+
134+
# MD029/ol-prefix - Ordered list item prefix
135+
MD029:
136+
# List style
137+
style: one_or_ordered
138+
139+
# MD030/list-marker-space - Spaces after list markers
140+
MD030:
141+
# Spaces for single-line unordered list items
142+
ul_single: 1
143+
# Spaces for single-line ordered list items
144+
ol_single: 1
145+
# Spaces for multi-line unordered list items
146+
ul_multi: 1
147+
# Spaces for multi-line ordered list items
148+
ol_multi: 1
149+
150+
# MD031/blanks-around-fences - Fenced code blocks should be surrounded by blank lines
151+
MD031:
152+
# Include list items
153+
list_items: true
154+
155+
# MD032/blanks-around-lists - Lists should be surrounded by blank lines
156+
MD032: true
157+
158+
# MD033/no-inline-html - Inline HTML
159+
MD033: false
160+
161+
# MD034/no-bare-urls - Bare URL used
162+
MD034: true
163+
164+
# MD035/hr-style - Horizontal rule style
165+
MD035:
166+
# Horizontal rule style
167+
style: consistent
168+
169+
# MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading
170+
MD036:
171+
# Punctuation characters
172+
punctuation: .,;:!?。,;:!?
173+
174+
# MD037/no-space-in-emphasis - Spaces inside emphasis markers
175+
MD037: true
176+
177+
# MD038/no-space-in-code - Spaces inside code span elements
178+
MD038: false
179+
180+
# MD039/no-space-in-links - Spaces inside link text
181+
MD039: true
182+
183+
# MD040/fenced-code-language - Fenced code blocks should have a language specified
184+
MD040: true
185+
186+
# MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading
187+
MD041: false
188+
189+
# MD042/no-empty-links - No empty links
190+
MD042: true
191+
192+
# MD043/required-headings/required-headers - Required heading structure
193+
MD043: false
194+
195+
# MD044/proper-names - Proper names should have the correct capitalization
196+
MD044:
197+
# List of proper names
198+
names: []
199+
# Include code blocks
200+
code_blocks: true
201+
202+
# MD045/no-alt-text - Images should have alternate text (alt text)
203+
MD045: true
204+
205+
# MD046/code-block-style - Code block style
206+
MD046: false
207+
208+
# MD047/single-trailing-newline - Files should end with a single newline character
209+
MD047: true
210+
211+
# MD048/code-fence-style - Code fence style
212+
MD048:
213+
# Code fence style
214+
style: consistent

.github/linters/.yaml-lint.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
yaml-files:
3+
- '*.yaml'
4+
- '*.yml'
5+
6+
rules:
7+
braces:
8+
min-spaces-inside: 1
9+
max-spaces-inside: 1
10+
min-spaces-inside-empty: 0
11+
max-spaces-inside-empty: 0
12+
brackets:
13+
forbid: false
14+
min-spaces-inside: 1
15+
max-spaces-inside: 1
16+
min-spaces-inside-empty: 0
17+
max-spaces-inside-empty: 0
18+
colons:
19+
max-spaces-before: 0
20+
max-spaces-after: 1
21+
commas:
22+
max-spaces-before: 0
23+
min-spaces-after: 1
24+
max-spaces-after: 1
25+
comments:
26+
level: warning
27+
require-starting-space: false
28+
ignore-shebangs: true
29+
min-spaces-from-content: 1
30+
comments-indentation: disable
31+
document-end: disable
32+
document-start:
33+
level: warning
34+
present: true
35+
empty-lines:
36+
max: 1
37+
max-start: 1
38+
max-end: 1
39+
empty-values:
40+
forbid-in-block-mappings: false
41+
forbid-in-flow-mappings: false
42+
hyphens:
43+
max-spaces-after: 1
44+
indentation:
45+
spaces: 2
46+
indent-sequences: true
47+
check-multi-line-strings: false
48+
key-duplicates: enable
49+
key-ordering: disable
50+
line-length:
51+
max: 250
52+
allow-non-breakable-inline-mappings: true
53+
new-line-at-end-of-file: enable
54+
new-lines:
55+
type: unix
56+
octal-values:
57+
forbid-implicit-octal: true
58+
forbid-explicit-octal: false
59+
quoted-strings:
60+
quote-type: single
61+
required: only-when-needed
62+
trailing-spaces: enable
63+
truthy:
64+
level: warning

.github/linters/zizmor.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
rules:
3+
cache-poisoning:
4+
disable: true
5+
template-injection:
6+
disable: true
7+
unpinned-uses:
8+
disable: true

.github/workflows/linting.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Linting
3+
4+
on: # yamllint disable-line rule:truthy
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
packages: read
13+
statuses: write
14+
15+
jobs:
16+
linting:
17+
name: Lint
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
with:
24+
# super-linter needs the full git history to get the
25+
# list of files that changed across commits
26+
fetch-depth: 0
27+
persist-credentials: false
28+
29+
- name: Run Linter
30+
uses: super-linter/super-linter/slim@v8.2.0
31+
env:
32+
LOG_LEVEL: NOTICE
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
SUPPRESS_POSSUM: true
35+
VALIDATE_ALL_CODEBASE: true
36+
37+
VALIDATE_EDITORCONFIG: true
38+
VALIDATE_GITHUB_ACTIONS: true
39+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: true
40+
VALIDATE_MARKDOWN: true
41+
VALIDATE_YAML: true

0 commit comments

Comments
 (0)