Skip to content

Commit

Permalink
Add to enable/disable, re-order settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jjti committed Dec 30, 2023
1 parent 9291c62 commit c2e6c30
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1905,13 +1905,19 @@ linters-settings:
args-on-sep-lines: true

spancheck:
# Disable the span.End() check.
# Default: false
disable-end-check: true

# Enable all checks. This overrides individual check settings.
# Default: false
enable-all: false
enable-all: true

# Disable the span.End() check.
# Enables a check that `span.RecordError` is called whenever a path to a return statement with an error
# is found. Developers should use `span.RecordError(err)` to create an exception event on the span.
# https://github.com/jjti/go-spancheck#checks
# Default: false
disable-end-check: false
enable-record-error-check: true

# Enables a check that `span.SetStatus` is called whenever a path to a return statement with an error
# is found. Developers should use `span.SetStatus(codes.Error, msg)` to set the `status:error` attribute
Expand All @@ -1921,23 +1927,17 @@ linters-settings:
enable-set-status-check: true

# A slice of regexes for function signatures that, if found in the call path to an error return statement,
# should silence the SetStatus check.
# should silence the RecordError check.
# https://github.com/jjti/go-spancheck#configuration
# Default: []
ignore-set-status-check-signatures:
ignore-record-error-check-signatures:
- "telemetry.RecordError"

# Enables a check that `span.RecordError` is called whenever a path to a return statement with an error
# is found. Developers should use `span.RecordError(err)` to create an exception event on the span.
# https://github.com/jjti/go-spancheck#checks
# Default: false
enable-record-error-check: true

# A slice of regexes for function signatures that, if found in the call path to an error return statement,
# should silence the RecordError check.
# should silence the SetStatus check.
# https://github.com/jjti/go-spancheck#configuration
# Default: []
ignore-record-error-check-signatures:
ignore-set-status-check-signatures:
- "telemetry.RecordError"

staticcheck:
Expand Down Expand Up @@ -2470,6 +2470,7 @@ linters:
- rowserrcheck
- scopelint
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- structcheck
Expand Down Expand Up @@ -2590,6 +2591,7 @@ linters:
- rowserrcheck
- scopelint
- sloglint
- spancheck
- sqlclosecheck
- staticcheck
- structcheck
Expand Down

0 comments on commit c2e6c30

Please sign in to comment.