From 96fcc105cca81ede08bf27cb631861cbaa6bcb5d Mon Sep 17 00:00:00 2001 From: nhyatt Date: Wed, 27 Mar 2024 12:16:46 -0500 Subject: [PATCH] updates go and adds coverage --- settings.json | 66 +++++++++++++++++++++++++++++---------------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/settings.json b/settings.json index ccef6e8..2c50dcd 100644 --- a/settings.json +++ b/settings.json @@ -1,6 +1,5 @@ { "cSpell.language": "en,en-US", - "cSpell.checkLimit": 5000, "editor.fontFamily": "\"Hack\", monospace", "editor.fontSize": 14, @@ -20,8 +19,8 @@ "files.autoSave": "afterDelay", "files.autoSaveDelay": 2000, "files.associations": { - "*.jenkins": "jenkins", - "*.tpl": "html", + "*.jenkins": "groovy", + "*.tplt": "html", "*.json": "json", "*.jsonc": "jsonc" }, @@ -30,20 +29,26 @@ "git.autofetch": true, "git.enableSmartCommit": true, "git.untrackedChanges": "separate", - "comment.git.enableCommitSigning": "Enable if we wantt o sign git commits.", "git.enableCommitSigning": false, - - "go.goroot": "/home/nhyatt/.apps/go", "go.buildFlags": [], + "go.coverOnSave": true, + "go.coverageDecorator": { + "type": "gutter", + "coveredGutterStyle": "verticalgreen", + "uncoveredGutterStyle": "verticalred" + }, "go.formatTool": "goimports", - "go.useLanguageServer": true, - "go.lintOnSave": "package", - "go.lintTool": "golangci-lint", + "go.gopath": "${HOME}/.cache/go", + "go.goroot": "${HOME}/.apps/go", "go.lintFlags": [ "--fast" ], - "go.vetOnSave": "package", + "go.lintOnSave": "package", + "go.lintTool": "golangci-lint", "go.toolsManagement.autoUpdate": true, + "go.useLanguageServer": true, + "go.vetOnSave": "package", + "telemetry.telemetryLevel": "off", @@ -73,7 +78,7 @@ "editor.insertSpaces": false, "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.organizeImports": true + "source.organizeImports": "explicit" } }, @@ -94,28 +99,31 @@ "editor.insertSpaces": false }, - "comments.plugins": { - "Code Spell Checker": "streetsidesoftware.code-spell-checker", - "Git Graph": "mhutchie.git-graph", - "Go": "golang.go", - "indent-rainbow": "oderwat.indent-rainbow", - "Material Theme": "equinusocio.vsc-material-theme", - "Material Theme Icons": "equinusocio.vsc-material-theme-icons", + "git.openRepositoryInParentFolders": "never", + "editor.stickyScroll.enabled": false, + + "comments.plugins": { + "Code Spell Checker": "streetsidesoftware.code-spell-checker", + "Git Graph": "mhutchie.git-graph", + "Go": "golang.go", + "indent-rainbow": "oderwat.indent-rainbow", + "Material Theme": "equinusocio.vsc-material-theme", + "Material Theme Icons": "equinusocio.vsc-material-theme-icons", "Mermaid Markdown Syntax Highlighting": "bpruitt-goddard.mermaid-markdown-syntax-highlighting", "ShellCheck": "timonwong.shellcheck" }, "comments.notes": [ - "Hack font is located at: https://sourcefoundry.org/hack/", - "Debugging Documentation is located at: https://github.com/Microsoft/vscode-go/wiki/Debugging-Go-code-using-VS-Code" - ], + "Hack font is located at: https://sourcefoundry.org/hack/", + "Debugging Documentation is located at: https://github.com/Microsoft/vscode-go/wiki/Debugging-Go-code-using-VS-Code" + ], - "comments.gpg-config": [ - "git config --global user.name ", - "git config --global user.email ", - "git config --global user.signingkey ", - "git config --global commit.gpgsign true", - "git config --global gpg.program C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe", - "Note: The slashes in the are escaped for the sake of JSON." - ] + "comments.gpg-config": [ + "git config --global user.name ", + "git config --global user.email ", + "git config --global user.signingkey ", + "git config --global commit.gpgsign true", + "git config --global gpg.program C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe", + "Note: The slashes in the are escaped for the sake of JSON." + ] } \ No newline at end of file