Compare commits

..

2 Commits

Author SHA1 Message Date
6f7bc9c578 setup linters in vscode
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/pr/test-image unknown status
2024-05-16 11:34:52 +02:00
35d833c055 add linters 2024-05-16 11:24:50 +02:00
5 changed files with 33 additions and 17 deletions

View File

@ -1 +1,3 @@
gitea
Gitea
tbd tbd

View File

@ -5,6 +5,7 @@
"streetsidesoftware.code-spell-checker", "streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-german", "streetsidesoftware.code-spell-checker-german",
"bierner.emojisense", "bierner.emojisense",
"ryanluker.vscode-coverage-gutters" "ryanluker.vscode-coverage-gutters",
"davidanson.vscode-markdownlint"
] ]
} }

19
.vscode/settings.json vendored
View File

@ -9,20 +9,6 @@
"editor.rulers": [ "editor.rulers": [
116 116
], ],
// powershell general
"powershell.startAutomatically": true,
"powershell.enableProfileLoading": true,
"powershell.scriptAnalysis.enable": true,
// powershell code Formatting
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFormatting.newLineAfterOpenBrace": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
// cSpell settings for custom dictionary // cSpell settings for custom dictionary
"cSpell.enabled": true, "cSpell.enabled": true,
"cSpell.caseSensitive": false, "cSpell.caseSensitive": false,
@ -67,5 +53,10 @@
"addWords": true "addWords": true
}, },
"custom": true "custom": true
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
} }
} }

View File

@ -26,6 +26,26 @@ variables:
from_secret: gitea_passwd from_secret: gitea_passwd
steps: steps:
lint-dockerfile:
image: hadolint/hadolint:v2.12.1-beta-alpine
commands:
- hadolint --ignore DL3003 --ignore DL3018 Dockerfile
when:
path: "Dockerfile"
lint-markdown:
image: davidanson/markdownlint-cli2:v0.13.0
commands:
- "markdownlint-cli2 *.{md,markdown}"
when:
path: "*.{md,markdown}"
lint-editorconfig:
depends_on: []
image: docker.io/mstruebing/editorconfig-checker:v3.0.1
when:
event: pull_request
test: test:
image: *build_plugin image: *build_plugin
settings: settings:

View File

@ -1,6 +1,8 @@
<!-- markdownlint-disable MD033 MD041-->
<p align="right"> <p align="right">
<img src="http://forthebadge.com/images/badges/built-with-love.svg"> <img src="http://forthebadge.com/images/badges/built-with-love.svg" alt="built-with-love">
<img src="http://forthebadge.com/images/badges/for-you.svg"> <img src="http://forthebadge.com/images/badges/for-you.svg" alt="for-you">
</p> </p>
<p align="center"> <p align="center">