Skip to content

Commit 92f55c3

Browse files
committed
Add loggercheck and fatcontext to 03-safe
1 parent 7ecf765 commit 92f55c3

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed

00-empty/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Author: @ccoVeille
55
# License: MIT
66
# Variant: 01-defaults
7-
# Version: v1.0.2
7+
# Version: v1.1.0
88
#
99
# empty file to force using the default settings
1010
# otherwise golangci-lint looks for .golangci.yaml files

01-defaults/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Author: @ccoVeille
55
# License: MIT
66
# Variant: 01-defaults
7-
# Version: v1.0.2
7+
# Version: v1.1.0
88
#
99
linters:
1010
# some linters are enabled by default

02-basic/.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Author: @ccoVeille
55
# License: MIT
66
# Variant: 02-basic
7-
# Version: v1.0.2
7+
# Version: v1.1.0
88
#
99
linters:
1010
# some linters are enabled by default

03-safe/.golangci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Author: @ccoVeille
55
# License: MIT
66
# Variant: 03-safe
7-
# Version: v1.0.2
7+
# Version: v1.1.0
88
#
99
linters:
1010
# some linters are enabled by default
@@ -49,6 +49,12 @@ linters:
4949
# Checks for duplicate words in the source code.
5050
- dupword
5151

52+
# linter to detect errors invalid key values count
53+
- loggercheck
54+
55+
# detects nested contexts in loops or function literals
56+
- fatcontext
57+
5258
linters-settings:
5359
gci: # define the section orders for imports
5460
sections:

03-safe/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ It's [02-basic](../02-basic) plus :
99
- [usestdlibvars](#usestdlibvars)
1010
- [dupwords](#dupwords)
1111
- [misspell](#misspell)
12+
- [fatcontext](#fatcontext)
13+
- [loggercheck](#loggercheck)
1214

1315
## License
1416

@@ -51,6 +53,12 @@ Finds commonly misspelled English words.
5153
### dupword
5254
Checks for duplicate words in the source code.
5355

56+
### loggercheck
57+
Detects errors invalid key values count
58+
59+
### fatcontext
60+
Detects nested contexts in loops or function literals
61+
5462
### revive
5563
Fast, configurable, extensible, flexible, and beautiful linter for Go.
5664
Drop-in replacement of golint.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ All notable changes to this project will be documented in this file.
88
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
99
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010

11+
## [1.1.0] - 2024-12-06
12+
### Changed
13+
- 03-safe: fatcontext & loggercheck
14+
15+
## [1.0.2] - 2024-12-06
16+
### Fixed
17+
- version in .golangci.yml files
18+
1119
## [1.0.1] - 2024-09-01
1220
### Fixed
1321
- context-as-argument default setting should allow \*testing.T

0 commit comments

Comments
 (0)