Skip to content

Commit b63ac6c

Browse files
authored
Merge pull request #13 from ccoVeille/add-license
feat: add license and navigation via the README
2 parents 61c30db + 8e034f8 commit b63ac6c

File tree

9 files changed

+71
-3
lines changed

9 files changed

+71
-3
lines changed

00-empty/.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
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+
#
26
# empty file to force using the default settings
37
# otherwise golangci-lint looks for .golangci.yaml files
48
# in parent folders

00-empty/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ One way to use the default settings is to use `--no-config` parameter.
55
Another is to create an empty YAML file
66

77
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

01-defaults/.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
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+
#
26
linters:
37
# some linters are enabled by default
48
# https://golangci-lint.run/usage/linters/

01-defaults/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ These are the currently available linter that are enabled in the current last `g
44

55
See [.golangci.yaml](.golangci.yaml)
66

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+
714
## Enabled linters
815

916
### errcheck

02-basics/.golangci.yaml renamed to 02-basic/.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
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+
#
26
linters:
37
# some linters are enabled by default
48
# https://golangci-lint.run/usage/linters/

02-basics/README.md renamed to 02-basic/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
# Safe Settings
1+
# Basic Settings
22

33
See [.golangci.yaml](.golangci.yaml)
44

55
It's [01-defaults](../01-defaults) plus :
66
- [revive](#revive)
77

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+
815
## Enabled linters
916

1017
### errcheck

03-safe/.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
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+
#
26
linters:
37
# some linters are enabled by default
48
# https://golangci-lint.run/usage/linters/

03-safe/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
# Safer Settings
1+
# Safe Settings
22

33
See [.golangci.yaml](.golangci.yaml)
44

5-
It's [02-basics](../02-basics) plus :
5+
It's [02-basic](../02-basic) plus :
66
- [gci](#gci)
77
- [thelper](#thelper)
88
- [mirror](#mirror)
99
- [usestdlibvars](#usestdlibvars)
1010
- [dupwords](#dupwords)
1111
- [misspell](#misspell)
1212

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+
1320
## Enabled linters
1421

1522
### errcheck

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
# Configuration examples for golangci-lint
22

33
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

0 commit comments

Comments
 (0)