diff --git a/.editorconfig b/.editorconfig index fd2fc3f..3c97bf3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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 diff --git a/.hadolint.yml b/.hadolint.yml new file mode 100644 index 0000000..8437155 --- /dev/null +++ b/.hadolint.yml @@ -0,0 +1,3 @@ +ignored: + - DL3018 # pin versions in Dockerfile + - DL3013 # pin pip versions in Dockerfile diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..ff8c952 --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,8 @@ +{ + "default": true, + "MD013": { + "line_length": 116, + "code_block_line_length": 116, + "tables": false + } +} diff --git a/.vscode/dictionaries/project-words.txt b/.vscode/dictionaries/project-words.txt index 0601a09..aa916c9 100644 --- a/.vscode/dictionaries/project-words.txt +++ b/.vscode/dictionaries/project-words.txt @@ -1 +1,3 @@ +gitea +Gitea tbd diff --git a/.vscode/extensions.json b/.vscode/extensions.json index bb7dca0..e4dfc4c 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -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" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index ed6e551..fb63d46 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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, } } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b72665a..3271576 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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 '' > 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" diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index 332df7a..f2686a1 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -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: diff --git a/CHANGELOG.md b/CHANGELOG.md index c826aa3..ecccf66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ + ## [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) - diff --git a/README.md b/README.md index 1574e39..0025edf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ + +
- - + +
diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..aa311e2 --- /dev/null +++ b/renovate.json @@ -0,0 +1,12 @@ +{ + "dependencyDashboard": true, + "docker": { + "enabled": true + }, + "woodpecker": { + "enabled": true, + "fileMatch": [ + "^.woodpecker\/.*.yml$" + ] + } +}