Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/arm_mac_gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
arm64_gcc:
name: ARM64 GCC
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr_merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
pull_request_target:
types: [closed]

permissions:
contents: write
pull-request: write

jobs:
label-merged:
name: Changelog needed
Expand Down
20 changes: 12 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ repos:
- id: check-symlinks
- id: check-yaml
- id: check-toml
- id: check-json
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-illegal-windows-names
- id: check-shebang-scripts-are-executable
- id: check-executables-have-shebangs
- id: debug-statements
Expand All @@ -37,19 +39,21 @@ repos:
- id: cmake-format
additional_dependencies: [pyyaml]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
- repo: https://github.com/JoC0de/pre-commit-prettier
rev: v3.6.2
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]

- repo: https://github.com/markdownlint/markdownlint
rev: v0.13.0
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: markdownlint
args: [-s, ./scripts/.markdownlintrc]

- id: script-must-have-extension
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.0 # Use the latest stable version
hooks:
- id: markdownlint-cli2
args: ["--fix", "--config", "./scripts/.markdownlint-cli2.jsonc"] # Optional: specify a custom config file
# - repo: local
# hooks:
# - id: remarklint
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,6 @@ try! Feedback is always welcome.
https://app.codacy.com/project/badge/Grade/2796b969c1b54321a02ad08affec0800
[codacy-link]:
https://www.codacy.com/gh/CLIUtils/CLI11/dashboard?utm_source=github.com&utm_medium=referral&utm_content=CLIUtils/CLI11&utm_campaign=Badge_Grade
[hunter]: https://docs.hunter.sh/en/latest/packages/pkg/CLI11.html
[standard readme style]: https://github.com/RichardLitt/standard-readme
[argparse]: https://github.com/p-ranav/argparse
[toml]: https://toml.io
Expand Down
61 changes: 61 additions & 0 deletions scripts/.markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"config": {
"MD001": true, // header levels increment by 1
"MD002": true, // first header should be a top level header
"MD003": { "style": "atx" }, // header style
"MD004": { "style": "dash" }, // unordered list style - dash
// "MD005": false, // inconsistent indentation handled by prettier
"MD006": true, // bulleted lists at beginning of line
// "MD007": { "indent": 2 }, // handled by prettier
"MD009": true, // no trailing spaces
"MD010": true, // no hard tabs
"MD011": true, // reversed link syntax
"MD012": true, // multiple consecutive blank lines
"MD013": false, // line length ignored
// "MD014": false, // command syntax ignored
"MD018": true, // space after header style
"MD019": true, // no multiple spaces after header style
"MD020": true, // no spaces inside hashes
"MD021": true, // no spaces inside closing hashes
"MD022": true, // headers surrounded by blank lines
"MD023": true, // headers start at beginning of line
"MD024": { "siblings_only": true,"allow_different_nesting": true }, // duplicate headers allowed in different nests
"MD025": true, // only one H1
"MD026": { "punctuation": ".,;:" }, // no trailing punctuation
"MD027": true, // multiple spaces after blockquote
"MD028": true, // no blank lines inside blockquote
// "MD029": { "style": "ordered" }, // prettier handles numbering
// "MD030": { "ul_single": 1, "ol_single": 1, "ul_multi": 1, "ol_multi": 3 }, // prettier handles spacing
"MD031": true, // fenced code blocks surrounded by blank lines
// "MD032": false, // lists surrounded by blank lines, prettier handles
// "MD033": { "allowed_elements": "a, em, strong, code, del, ins, sup, sub" }, // inline HTML exceptions
"MD033": false,
// "MD034": false, // raw URLs allowed
"MD035": { "style": "---" }, // horizontal rule style
// "MD036": false, // strong vs emphasis ignored
"MD037": true, // no spaces inside emphasis
"MD038": true, // no spaces inside code spans
"MD039": true, // no spaces inside link text
"MD040": true, // require fenced language
"MD041": true, // first line is top-level header
// "MD042": false, // empty link disabled
"MD046": { "style": "fenced" }, // code block style
"MD047": true, // single newline at end
"MD048": true, // code fence style consistency ignored
// Newly enabled rules for testing:
"MD044": {
// proper names; empty list means default names only
"names": []
},
"MD049": { "style": "consistent" }, // emphasis style
"MD050": { "style": "consistent" }, // strong style
"MD051": true, // valid link fragments
"MD052": true, // reference links/images must use defined labels
"MD053": true, // flag unused or undefined link references

// Table-related rules: enable if you use tables
"MD055": true, // consistent pipe style
"MD056": true, // consistent column counts
"MD058": true // blank lines around tables
}
}
41 changes: 0 additions & 41 deletions scripts/.markdownlintrc

This file was deleted.