From cb0a65d37912e465554618255efc92b1ae9d6337 Mon Sep 17 00:00:00 2001 From: OCram85 Date: Tue, 13 Sep 2022 14:39:27 +0200 Subject: [PATCH] Adds Gitea meta files (#21) #### :book: Summary - adds missing gitea meta files #### :bookmark_tabs: Test Plan > :bulb: Select your test plan for the code changes. - [x] Tested via CI pipeline - [ ] Custom test - [ ] No test plan ##### Details / Justification #### :books: Additional Notes Co-authored-by: OCram85 Reviewed-on: https://gitea.ocram85.com/OCram85/Blog/pulls/21 --- .gitea/ISSUE_TEMPLATE.md | 10 ++ .gitea/ISSUE_TEMPLATE/Bug.md | 48 +++++++ .gitea/ISSUE_TEMPLATE/Enhancement.md | 16 +++ .gitea/PULL_REQUEST_TEMPLATE.md | 19 +++ .vscode/cSpell.json | 22 ---- .../{default.txt => project-words.txt} | 0 .vscode/extensions.json | 17 ++- .vscode/settings.json | 97 ++++++++------- .vscode/tasks.json | 117 ------------------ 9 files changed, 156 insertions(+), 190 deletions(-) create mode 100644 .gitea/ISSUE_TEMPLATE.md create mode 100644 .gitea/ISSUE_TEMPLATE/Bug.md create mode 100644 .gitea/ISSUE_TEMPLATE/Enhancement.md create mode 100644 .gitea/PULL_REQUEST_TEMPLATE.md delete mode 100644 .vscode/cSpell.json rename .vscode/dictionaries/{default.txt => project-words.txt} (100%) delete mode 100644 .vscode/tasks.json diff --git a/.gitea/ISSUE_TEMPLATE.md b/.gitea/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..ec3134a --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE.md @@ -0,0 +1,10 @@ +--- +name: 'Default' +about: 'Use this template if nothing seems to work.' +title: ':question: ' +labels: + - question +--- +#### :grey_question: Simply ask your question here: :grey_question: + + diff --git a/.gitea/ISSUE_TEMPLATE/Bug.md b/.gitea/ISSUE_TEMPLATE/Bug.md new file mode 100644 index 0000000..e3c896d --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/Bug.md @@ -0,0 +1,48 @@ +--- +name: 'Bug' +about: 'This template is used to report bugs!' +title: ':lady_beetle: ' +labels: + - bug +--- + + +#### :bomb: Steps to reproduce + +```bash + +``` + +#### :rocket: Expected behavior + +```bash + +``` + +#### :boom: Actual behavior + +```bash + +``` + +#### :notebook: Environment data + + + +```bash + +``` + +#### :framed_picture: Screenshots + + + +#### :bookmark: Refs + + diff --git a/.gitea/ISSUE_TEMPLATE/Enhancement.md b/.gitea/ISSUE_TEMPLATE/Enhancement.md new file mode 100644 index 0000000..286eb82 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/Enhancement.md @@ -0,0 +1,16 @@ +--- +name: 'Enhancement' +about: 'Wite about new features.' +title: ':flying_saucer: ' +labels: + - issue/enhancement +--- + + +#### :satellite: Suggestion + +#### :artificial_satellite: Implementation ideas + +#### :framed_picture: Mock-up Images + +#### :bookmark: Refs. diff --git a/.gitea/PULL_REQUEST_TEMPLATE.md b/.gitea/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..9b65689 --- /dev/null +++ b/.gitea/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,19 @@ +#### :book: Summary + + + +#### :bookmark_tabs: Test Plan + +> :bulb: Select your test plan for the code changes. + +- [ ] Tested via CI pipeline +- [ ] Custom test +- [ ] No test plan + +##### Details / Justification + + + +#### :books: Additional Notes + + diff --git a/.vscode/cSpell.json b/.vscode/cSpell.json deleted file mode 100644 index bc784a4..0000000 --- a/.vscode/cSpell.json +++ /dev/null @@ -1,22 +0,0 @@ -// cSpell Settings -{ - // Version of the setting file. Always 0.1 - "version": "0.1", - // language - current active spelling language - "language": "en,de,de-DE", - // words - list of words to be always considered correct - "words": [], - // flagWords - list of words to be always considered incorrect - // This is useful for offensive words and common spelling errors. - // For example "hte" should be "the" - "flagWords": [], - "dictionaryDefinitions": [ - { - "name": "default", - "path": "./dictionaries/default.txt" - } - ], - "dictionaries": [ - "default" - ] -} diff --git a/.vscode/dictionaries/default.txt b/.vscode/dictionaries/project-words.txt similarity index 100% rename from .vscode/dictionaries/default.txt rename to .vscode/dictionaries/project-words.txt diff --git a/.vscode/extensions.json b/.vscode/extensions.json index a0b65bf..bb7dca0 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,11 +1,10 @@ { - "recommendations": [ - "streetsidesoftware.code-spell-checker", - "streetsidesoftware.code-spell-checker-german", - "editorconfig.editorconfig", - "eamodio.gitlens", - "vscode-icons-team.vscode-icons", - "redhat.vscode-yaml", - "bierner.markdown-emoji", - ] + "recommendations": [ + "editorconfig.editorconfig", + "eamodio.gitlens", + "streetsidesoftware.code-spell-checker", + "streetsidesoftware.code-spell-checker-german", + "bierner.emojisense", + "ryanluker.vscode-coverage-gutters" + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 2556106..a6891e9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,44 +1,57 @@ { - "files.encoding": "utf8", - "files.eol": "\n", - "files.trimTrailingWhitespace": true, - "files.insertFinalNewline": true, - "editor.renderWhitespace": "boundary", - "editor.formatOnSave": true, - "editor.formatOnType": true, - "editor.rulers": [ - 116 - ], - "cSpell.enabled": true, - "cSpell.enabledLanguageIds": [ - "c", - "cpp", - "csharp", - "go", - "javascript", - "javascriptreact", - "json", - "latex", - "markdown", - "php", - "plaintext", - "powershell", - "python", - "text", - "typescript", - "typescriptreact", - "yaml", - "yml" - ], - "cSpell.language": "en,de,de-DE", - "[yaml]": { - "editor.insertSpaces": true, - "editor.tabSize": 2, - "editor.quickSuggestions": { - "other": true, - "comments": false, - "strings": true - }, - "editor.autoIndent": "full" - } + "files.encoding": "utf8", + "files.eol": "\n", + "files.trimTrailingWhitespace": true, + "files.insertFinalNewline": true, + "editor.renderWhitespace": "boundary", + "editor.formatOnSave": true, + "editor.formatOnType": true, + "editor.rulers": [ + 116 + ], + // cSpell settings for custom dictionary + "cSpell.enabled": true, + "cSpell.caseSensitive": false, + "cSpell.maxNumberOfProblems": 100, + "cSpell.numSuggestions": 8, + "cSpell.minWordLength": 3, + "cSpell.allowCompoundWords": false, + "cSpell.ignorePaths": [ + "package-lock.json", + "node_modules", + "vscode-extension", + ".git/objects", + ".vscode", + ".vscode-insiders" + ], + "cSpell.enabledLanguageIds": [ + "c", + "cpp", + "csharp", + "go", + "javascript", + "javascriptreact", + "json", + "latex", + "markdown", + "php", + "plaintext", + "powershell", + "python", + "text", + "typescript", + "typescriptreact", + "yaml", + "yml" + ], + "cSpell.language": "en-US,de-DE", + "cSpell.customDictionaries": { + "project-words": { + "name": "project-words", + "path": "${workspaceRoot}/.vscode/dictionaries/project-words.txt", + "description": "Words used in this project", + "addWords": true + }, + "custom": true + } } diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 6214092..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,117 +0,0 @@ -// A task runner that invokes Pester to run all Pester tests under the -// current workspace folder. -// NOTE: This Test task runner requires an updated version of Pester (>=4.0.3) -// in order for the problemMatcher to find failed test information (message, line, file). -// If you don't have that version, you can update Pester from the PowerShell Gallery -// with this command: -// -// PS C:\> Update-Module Pester -// -// If that gives an error like: -// "Module 'Pester' was not installed by using Install-Module, so it cannot be updated." -// then execute: -// -// PS C:\> Install-Module Pester -Scope CurrentUser -Force -// -// NOTE: The Clean, Build and Publish tasks require PSake. PSake can be installed -// from the PowerShell Gallery with this command: -// -// PS C:\> Install-Module PSake -Scope CurrentUser -Force -// -// Available variables which can be used inside of strings: -// ${workspaceFolder} the path of the workspace folder that contains the tasks.json file -// ${workspaceFolderBasename} the name of the workspace folder that contains the tasks.json file without any slashes (/) -// ${file} the current opened file -// ${relativeFile} the current opened file relative to the workspace folder containing the file -// ${fileBasename} the current opened file's basename -// ${fileBasenameNoExtension} the current opened file's basename without the extension -// ${fileDirname} the current opened file's dirname -// ${fileExtname} the current opened file's extension -// ${cwd} the task runner's current working directory on startup -// ${lineNumber} the current selected line number in the active file -{ - "version": "2.0.0", - //"windows": { - // "options": { - // "shell": { - // // switch back to windows powershell 5.1 - // // "executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", - // "executable": "pwsh.exe", - // "args": [ - // "-NoProfile", - // "-ExecutionPolicy", - // "Bypass", - // "-Command" - // ] - // } - // } - //}, - //"linux": { - // "options": { - // "shell": { - // "executable": "/usr/bin/pwsh", - // "args": [ - // "-NoProfile", - // "-Command" - // ] - // } - // } - //}, - //"osx": { - // "options": { - // "shell": { - // "executable": "/usr/local/bin/pwsh", - // "args": [ - // "-NoProfile", - // "-Command" - // ] - // } - // } - //}, - "tasks": [ - { - "label": "Add dictionary item", - "type": "shell", - "command": [ - "$DefaultFile = Get-ChildItem -Path './.vscode/dictionaries/default.txt';", - "$Content = Get-Content -Path $DefaultFile;", - "$Content += '${input:DictionaryItem}';", - "$Content = $Content | Sort-Object -Unique;", - "Set-Content -Value $Content -Path $DefaultFile" - ], - "group": "none", - "problemMatcher": [ - "$pester" - ] - }, - { - "label": "Run dev Server", - "type": "shell", - "command": [ - "hugo server --buildDrafts" - ], - "group": { - "kind": "test", - "isDefault": true - } - }, - { - "label": "Build Site", - "type": "shell", - "command": [ - "hugo" - ], - "group": { - "kind": "build", - "isDefault": true - } - } - ], - "inputs": [ - { - "id": "DictionaryItem", - "type": "promptString", - "description": "Input for dictionary file default.txt" - } - ] -}