Skip to content

Commit 640ea92

Browse files
committed
feat: add the defaults rules
1 parent 1a80c7f commit 640ea92

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

01-defaults/.golangci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
linters:
3+
# These linters are enabled by default
4+
# They can be disable by moving them to the 'disable' key
5+
enable:
6+
# Errcheck is a program for checking for unchecked errors in Go code.
7+
- errcheck: null
8+
# Linter for Go source code that specializes in simplifying code.
9+
- gosimple
10+
# Vet examines Go source code and reports suspicious constructs.
11+
- govet
12+
# Detects when assignments to existing variables are not used.
13+
- ineffassign
14+
# It's a set of rules from staticcheck. See https://staticcheck.io/
15+
- staticcheck
16+
disable:
17+
# empty by default
18+
# but you can any linter here, even the default ones

01-defaults/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Default settings
2+
3+
These are the currently available linter that are enabled in the current last `golangci-lint` version available today (1.59.1)
4+
5+
See [.golangci.yaml](.golangci.yaml)
6+
7+
## Changelog
8+
9+
- 2024-06-26 - golangci-lint:1.59.1
10+
11+
initial version
12+

0 commit comments

Comments
 (0)