From e89e0dd078d599a1b0c5091f97dd1cff5eb7c0ac Mon Sep 17 00:00:00 2001 From: Shanil Hirani <48246737+shanilhirani@users.noreply.github.com> Date: Fri, 12 Jul 2024 20:06:59 +0100 Subject: [PATCH] style(pre-commit): checking files against pre-commit --- .golangci.yml | 1 - .vscode/extensions.json | 4 +-- .vscode/launch.json | 30 ++++++++++---------- .vscode/settings.json | 61 ++++++++++++++++++----------------------- .vscode/tasks.json | 32 ++++++++++----------- 5 files changed, 58 insertions(+), 70 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b3a6187..343ef18 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -23,7 +23,6 @@ linters-settings: global: nosec: false - linters: disable-all: true enable: diff --git a/.vscode/extensions.json b/.vscode/extensions.json index db58406..ba5fb5f 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,3 @@ { - "recommendations": [ - "golang.Go" - ] + "recommendations": ["golang.Go"] } diff --git a/.vscode/launch.json b/.vscode/launch.json index ce40c01..2f01cfb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,17 +1,17 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${fileDirname}", - "env": {}, - "args": [] - } - ] + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${fileDirname}", + "env": {}, + "args": [] + } + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index feda86d..0c7be76 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,36 +1,29 @@ { - "[go]": { - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.organizeImports": "explicit" - }, - }, - "[go.mod]": { - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.organizeImports": "explicit" - }, - }, - // gopls - "go.useLanguageServer": true, - "gopls": { - "formatting.local": "github.com/shanilhirani/go-credly", - "formatting.gofumpt": true - }, - // golangci-lint - "go.lintTool": "golangci-lint", - "go.lintFlags": [ - "--fast" - ], - "[go][go.mod]": { - "editor.codeActionsOnSave": { - "source.organizeImports": "explicit" - } - }, - "cSpell.words": [ - "Credly", - "Credly's", - "nosec", - "pkgs" - ] + "[go]": { + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + }, + "[go.mod]": { + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + }, + // gopls + "go.useLanguageServer": true, + "gopls": { + "formatting.local": "github.com/shanilhirani/go-credly", + "formatting.gofumpt": true + }, + // golangci-lint + "go.lintTool": "golangci-lint", + "go.lintFlags": ["--fast"], + "[go][go.mod]": { + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + } + }, + "cSpell.words": ["Credly", "Credly's", "nosec", "pkgs"] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index c22650f..ced52e1 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,19 +1,17 @@ { - // See https://go.microsoft.com/fwlink/?LinkId=733558 - // for the documentation about the tasks.json format - "version": "2.0.0", - "tasks": [ - { - "label": "make", - "type": "shell", - "command": "make", - "problemMatcher": [ - "$go" - ], - "group": { - "kind": "build", - "isDefault": true - } - } - ] + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "make", + "type": "shell", + "command": "make", + "problemMatcher": ["$go"], + "group": { + "kind": "build", + "isDefault": true + } + } + ] }