Skip to content

Commit

Permalink
[-] fix golangci-lint vscode task, closes #29
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Jun 15, 2022
1 parent d633e0b commit 235c7ea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{
"label": "Lint",
"type": "shell",
"command": "golangci-lint run",
"command": "cd src && golangci-lint run",
"problemMatcher": [
"$go"
],
Expand Down
17 changes: 17 additions & 0 deletions src/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
linters:
enable:
- gocyclo
- misspell

linters-settings:
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 16

issues:
# List of regexps of issue texts to exclude, empty list by default.
# But independently from this option we use default exclude patterns,
# it can be disabled by `exclude-use-default: false`. To list all
# excluded by default patterns execute `golangci-lint run --help`
exclude:
- SA5008 # ignore staticcheck for go-flags

0 comments on commit 235c7ea

Please sign in to comment.