add linter + renovate #6

Merged
OCram85 merged 12 commits from add/renovate into main 2024-05-16 12:12:32 +02:00
11 changed files with 75 additions and 33 deletions

View File

@ -1,14 +1,14 @@
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.go]
indent_style = tab
indent_size = 4
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.go]
indent_style = tab
indent_size = 4

3
.hadolint.yml Normal file
View File

@ -0,0 +1,3 @@
ignored:
- DL3018 # pin versions in Dockerfile
- DL3013 # pin pip versions in Dockerfile

8
.markdownlint.json Normal file
View File

@ -0,0 +1,8 @@
{
"default": true,
"MD013": {
"line_length": 116,
"code_block_line_length": 116,
"tables": false
}
}

View File

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

View File

@ -5,6 +5,7 @@
"streetsidesoftware.code-spell-checker",
"streetsidesoftware.code-spell-checker-german",
"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": [
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.enabled": true,
"cSpell.caseSensitive": false,
@ -67,5 +53,10 @@
"addWords": true
},
"custom": true
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
}
}

3
.vscode/tasks.json vendored
View File

@ -6,7 +6,8 @@
"type": "shell",
"command": [
"mv 'CHANGELOG.md' 'CHANGELOG.back' &&",
"changelog -m '${input:Milestone}' --token '${input:GiteaToken}' -c .changelog.yml generate > CHANGELOG.md &&",
"echo '<!-- markdownlint-disable MD041 -->' > CHANGELOG.md &&",
"changelog -m '${input:Milestone}' --token '${input:GiteaToken}' -c .changelog.yml generate >> CHANGELOG.md &&",
"echo '' >> CHANGELOG.md &&",
"cat CHANGELOG.back >> CHANGELOG.md &&",
"rm CHANGELOG.back"

View File

@ -26,6 +26,28 @@ variables:
from_secret: gitea_passwd
steps:
lint-dockerfile:
image: hadolint/hadolint:v2.12.1-beta-alpine
commands:
#- cat Dockerfile
#- hadolint --verbose --ignore DL3003 --ignore DL3018 Dockerfile
- 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:
image: *build_plugin
settings:

View File

@ -1,3 +1,4 @@
<!-- markdownlint-disable MD041 -->
## [v0.1.0](https://gitea.ocram85.com/plugins/gitea-package/releases/tag/v0.1.0) - 2024-05-14
* 🐛 BUGFIXES
@ -7,4 +8,3 @@
* Migrate content (#1)
* ⚙️ META
* Update Gitea meta files (#2)

View File

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

12
renovate.json Normal file
View File

@ -0,0 +1,12 @@
{
"dependencyDashboard": true,
"docker": {
"enabled": true
},
"woodpecker": {
"enabled": true,
"fileMatch": [
"^.woodpecker\/.*.yml$"
]
}
}