File tree Expand file tree Collapse file tree 9 files changed +71
-3
lines changed Expand file tree Collapse file tree 9 files changed +71
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ # golangci-lint configuration file made by @ccoVeille
3
+ # Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/00-empty
4
+ # License: MIT
5
+ #
2
6
# empty file to force using the default settings
3
7
# otherwise golangci-lint looks for .golangci.yaml files
4
8
# in parent folders
Original file line number Diff line number Diff line change @@ -5,3 +5,10 @@ One way to use the default settings is to use `--no-config` parameter.
5
5
Another is to create an empty YAML file
6
6
7
7
See [ .golangci.yaml] ( .golangci.yaml )
8
+
9
+ ## License
10
+
11
+ License: MIT
12
+
13
+ golangci-lint configuration file made by @ccoVeille
14
+ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/00-empty
Original file line number Diff line number Diff line change 1
1
---
2
+ # golangci-lint configuration file made by @ccoVeille
3
+ # Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/01-defaults
4
+ # License: MIT
5
+ #
2
6
linters :
3
7
# some linters are enabled by default
4
8
# https://golangci-lint.run/usage/linters/
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ These are the currently available linter that are enabled in the current last `g
4
4
5
5
See [ .golangci.yaml] ( .golangci.yaml )
6
6
7
+ ## License
8
+
9
+ License: MIT
10
+
11
+ golangci-lint configuration file made by @ccoVeille
12
+ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/01-defaults
13
+
7
14
## Enabled linters
8
15
9
16
### errcheck
Original file line number Diff line number Diff line change 1
1
---
2
+ # golangci-lint configuration file made by @ccoVeille
3
+ # Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/02-basic
4
+ # License: MIT
5
+ #
2
6
linters :
3
7
# some linters are enabled by default
4
8
# https://golangci-lint.run/usage/linters/
Original file line number Diff line number Diff line change 1
- # Safe Settings
1
+ # Basic Settings
2
2
3
3
See [ .golangci.yaml] ( .golangci.yaml )
4
4
5
5
It's [ 01-defaults] ( ../01-defaults ) plus :
6
6
- [ revive] ( #revive )
7
7
8
+ ## License
9
+
10
+ License: MIT
11
+
12
+ golangci-lint configuration file made by @ccoVeille
13
+ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/02-basics
14
+
8
15
## Enabled linters
9
16
10
17
### errcheck
Original file line number Diff line number Diff line change 1
1
---
2
+ # golangci-lint configuration file made by @ccoVeille
3
+ # Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/03-safe
4
+ # License: MIT
5
+ #
2
6
linters :
3
7
# some linters are enabled by default
4
8
# https://golangci-lint.run/usage/linters/
Original file line number Diff line number Diff line change 1
- # Safer Settings
1
+ # Safe Settings
2
2
3
3
See [ .golangci.yaml] ( .golangci.yaml )
4
4
5
- It's [ 02-basics ] ( ../02-basics ) plus :
5
+ It's [ 02-basic ] ( ../02-basic ) plus :
6
6
- [ gci] ( #gci )
7
7
- [ thelper] ( #thelper )
8
8
- [ mirror] ( #mirror )
9
9
- [ usestdlibvars] ( #usestdlibvars )
10
10
- [ dupwords] ( #dupwords )
11
11
- [ misspell] ( #misspell )
12
12
13
+ ## License
14
+
15
+ License: MIT
16
+
17
+ golangci-lint configuration file made by @ccoVeille
18
+ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/03-safe
19
+
13
20
## Enabled linters
14
21
15
22
### errcheck
Original file line number Diff line number Diff line change 1
1
# Configuration examples for golangci-lint
2
2
3
3
These are ` .golangci.yaml ` examples to use in your projects
4
+
5
+ ## Variants
6
+
7
+ - [ 00-empty] ( ./00-empty )
8
+ - [ 01-defaults] ( ./01-defaults )
9
+ - [ 02-basic] ( ./02-basic )
10
+ - [ 03-safe] ( ./03-safe )
11
+
12
+ The bigger the number is the more rules it has.
13
+
14
+ Each variant adds rules to the earlier one.
15
+
16
+ ## License
17
+
18
+ License: MIT
19
+
20
+ golangci-lint configuration file made by @ccoVeille
21
+ Source: https://github.com/ccoVeille/golangci-lint-config-examples
22
+
23
+ ## Changelog
24
+
25
+ - 2024-06-28 - golangci-lint:1.59.1
26
+
27
+ initial version
You can’t perform that action at this time.
0 commit comments