Skip to content

Commit

Permalink
chore(terraform): auto-applied ".golangci.yml"
Browse files Browse the repository at this point in the history
this file was auto-applied from the "github-common-files" module
located here:
  - https://github.com/lrstanley/.github/tree/master/terraform/github-common-files

instructions on how to tell Terraform to exclude this file:
  - https://github.com/lrstanley/.github/blob/master/example.ci-config.yml

Signed-off-by: Liam Stanley <me@liamstanley.io>
  • Loading branch information
lrstanley committed Sep 11, 2023
1 parent 68d6b1e commit 2c7bade
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ linters:
- godot # checks if comments end in a period
- godox # detects FIXME, TODO and other comment keywords
- goimports # in addition to fixing imports, goimports also formats your code in the same style as gofmt
- gomnd # detects magic numbers
- gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
- gomodguard # allow and block lists linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations
- goprintffuncname # checks that printf-like functions are named with f at the end
Expand Down Expand Up @@ -99,6 +98,7 @@ linters:
- whitespace # detects leading and trailing whitespace

# disabled for now:
# - gomnd # detects magic numbers
# - errname # checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
# - gochecknoglobals # checks that no global variables exist
# - gocognit # computes and checks the cognitive complexity of functions
Expand Down Expand Up @@ -150,19 +150,19 @@ linters-settings:
# Whether to skip (*x).method() calls where x is a pointer receiver.
skipRecvDeref: false

gomnd:
# Values always ignored: `time.Date`,
# `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
# `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
ignored-functions:
- os.Chmod
- os.Mkdir
- os.MkdirAll
- os.OpenFile
- os.WriteFile
- prometheus.ExponentialBuckets
- prometheus.ExponentialBucketsRange
- prometheus.LinearBuckets
# gomnd:
# # Values always ignored: `time.Date`,
# # `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
# # `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
# ignored-functions:
# - os.Chmod
# - os.Mkdir
# - os.MkdirAll
# - os.OpenFile
# - os.WriteFile
# - prometheus.ExponentialBuckets
# - prometheus.ExponentialBucketsRange
# - prometheus.LinearBuckets

gomodguard:
blocked:
Expand Down

0 comments on commit 2c7bade

Please sign in to comment.