-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add generic linters * Fix `yamllint` * Fix `markdownlint` * Fix `yamllint` again * Simplify `editorconfig-checker` * Apply editorconfig settings * Add excludes * Apply css linting * Fix lint * Fix `markdownlint` after rebease * Small change * Remove leftover file * Update `README.md` to trigger workflow run * Fix `yamllint`
- Loading branch information
Showing
12 changed files
with
169 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Exclude": [ | ||
"Website/htdocs/mpmanager/packages/inensus/", | ||
"Website/htdocs/mpmanager/database/dummyData/dummy_data.sql", | ||
"composer.phar" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
[*] | ||
# Ensure consistent file encoding in UNIX style | ||
charset = utf-8 | ||
end_of_line = lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Generic checks to ease collaboration: | ||
# - consistent file encoding in UNIX style | ||
# - whitespaces in all purposes files like markdown, yaml, etc | ||
name: Check Generic | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
editorconfig-checker: | ||
name: Run editorconfig-checker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Run editorconfig-checker | ||
run: docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker | ||
|
||
markdownlint: | ||
name: Run markdownlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Run markdownlint-cli2 | ||
uses: DavidAnson/markdownlint-cli2-action@v13 | ||
|
||
yamllint: | ||
name: Run yamllint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Run yamllint | ||
run: yamllint . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Disable some built-in rules | ||
config: | ||
line-length: false | ||
no-inline-html: false | ||
first-line-h1: false | ||
code-block-style: false # conflicts with MkDocs Admontions: https://squidfunk.github.io/mkdocs-material/reference/admonitions/ | ||
code-fence-style: | ||
style: backtick | ||
|
||
# Define glob expressions to use (only valid at root) | ||
globs: | ||
- "**/*.md" | ||
|
||
ignores: | ||
- Website/ui/src/docs/source/index.md | ||
- Website/ui/src/docs/source/.compare.md | ||
- Website/htdocs/mpmanager/packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
extends: default | ||
|
||
rules: | ||
document-start: disable | ||
indentation: | ||
spaces: 2 | ||
line-length: disable | ||
quoted-strings: | ||
quote-type: double | ||
required: only-when-needed | ||
allow-quoted-quotes: true | ||
truthy: | ||
check-keys: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.