generated from Templates/Baseline
add linter + renovate (#6)
### 📖 Summary - add renovate json - add linters: - Dockerfile - markdown - editorconfig ### 📑 Test Plan ✅ CI pipeline tests (Default) ### 💬 Details _No response_ ### 📚 Additional Notes _No response_ Reviewed-on: #6
This commit is contained in:
parent
099ed06d66
commit
b699580cc7
@ -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
3
.hadolint.yml
Normal file
@ -0,0 +1,3 @@
|
||||
ignored:
|
||||
- DL3018 # pin versions in Dockerfile
|
||||
- DL3013 # pin pip versions in Dockerfile
|
8
.markdownlint.json
Normal file
8
.markdownlint.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"default": true,
|
||||
"MD013": {
|
||||
"line_length": 116,
|
||||
"code_block_line_length": 116,
|
||||
"tables": false
|
||||
}
|
||||
}
|
2
.vscode/dictionaries/project-words.txt
vendored
2
.vscode/dictionaries/project-words.txt
vendored
@ -1 +1,3 @@
|
||||
gitea
|
||||
Gitea
|
||||
tbd
|
||||
|
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -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
19
.vscode/settings.json
vendored
@ -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
3
.vscode/tasks.json
vendored
@ -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"
|
||||
|
@ -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:
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
12
renovate.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"dependencyDashboard": true,
|
||||
"docker": {
|
||||
"enabled": true
|
||||
},
|
||||
"woodpecker": {
|
||||
"enabled": true,
|
||||
"fileMatch": [
|
||||
"^.woodpecker\/.*.yml$"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user