Skip to content

Commit

Permalink
Create : Golangci-Linter | configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
unchaptered committed Feb 2, 2024
1 parent 3242464 commit ebf73c4
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
[Common]
.log
*.log
**.log

[Terraform]
.terraform
.terraform.lock.hcl

[Terratest]
report.json
**/report.json

[Python]
__pycache__
1 change: 1 addition & 0 deletions .golangci.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
golangci-lint run --config .golangci.yml > .golangci.log 2>&1
46 changes: 46 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
run:
# cncurrency: 4
timeout: 1m
# issue-exit-code: 1

tests: false
skip-dirs-use-default: true

output:
format: json

print-issued-lines: true
print-linter-name: true
uniq-by-line: true
sort-results: true

path-prefix: ''

linters:

disable-all: true
enable-all: false

presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- module
- performance
- sql
- style
- test
- unused

# enable:
# -
# disable:
# -
# presets:
# -

fast: true

0 comments on commit ebf73c4

Please sign in to comment.