Skip to content

Commit

Permalink
style(pre-commit): checking files against pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shanilhirani committed Jul 12, 2024
1 parent 7a2fb1e commit e89e0dd
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 70 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ linters-settings:
global:
nosec: false


linters:
disable-all: true
enable:
Expand Down
4 changes: 1 addition & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"recommendations": [
"golang.Go"
]
"recommendations": ["golang.Go"]
}
30 changes: 15 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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": []
}
]
}
61 changes: 27 additions & 34 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"]
}
32 changes: 15 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}

0 comments on commit e89e0dd

Please sign in to comment.