-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* parcer rules break go's understanding on the right usage * go build in ci demands no patch number in the version * go build - deps require 1.21 at least, let's make it 1.22 * golang-ci lint action * add golangci config with basic rules * cleanup or whitelist printlns
- Loading branch information
Showing
6 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
linters: | ||
enable: | ||
- errcheck | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- staticcheck | ||
- unused | ||
- forbidigo | ||
|
||
linters-settings: | ||
forbidigo: | ||
# Forbid the following identifiers (list of regexp). | ||
# Default: ["^(fmt\\.Print(|f|ln)|print|println)$"] | ||
forbid: | ||
# Builtin function: | ||
- ^print.*$ | ||
# Optional message that gets included in error reports. | ||
- p: ^fmt\.Print.*$ | ||
msg: Do not commit print statements. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/can3p/sackmesser | ||
|
||
go 1.22.0 | ||
go 1.22 | ||
|
||
require ( | ||
github.com/alecthomas/assert/v2 v2.8.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters