mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-12-13 17:10:36 +00:00
Fixed linting
Some checks are pending
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
Some checks are pending
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
This commit is contained in:
parent
99001c749d
commit
1d0407a16d
@ -71,35 +71,18 @@
|
|||||||
},
|
},
|
||||||
"gocritic": {
|
"gocritic": {
|
||||||
"enabled-checks": [
|
"enabled-checks": [
|
||||||
"appendAssign",
|
|
||||||
"assignOp",
|
|
||||||
"boolExprSimplify",
|
"boolExprSimplify",
|
||||||
"builtinShadow",
|
"builtinShadow",
|
||||||
"captLocal",
|
|
||||||
"caseOrder",
|
|
||||||
"defaultCaseOrder",
|
|
||||||
"dupArg",
|
|
||||||
"dupBranchBody",
|
|
||||||
"dupCase",
|
|
||||||
"dupSubExpr",
|
|
||||||
"elseif",
|
|
||||||
"emptyFallthrough",
|
"emptyFallthrough",
|
||||||
"equalFold",
|
"equalFold",
|
||||||
"flagName",
|
|
||||||
"indexAlloc",
|
"indexAlloc",
|
||||||
"initClause",
|
"initClause",
|
||||||
"methodExprCall",
|
"methodExprCall",
|
||||||
"nilValReturn",
|
"nilValReturn",
|
||||||
"rangeExprCopy",
|
"rangeExprCopy",
|
||||||
"rangeValCopy",
|
"rangeValCopy",
|
||||||
"regexpMust",
|
|
||||||
"singleCaseSwitch",
|
|
||||||
"sloppyLen",
|
|
||||||
"stringXbytes",
|
"stringXbytes",
|
||||||
"switchTrue",
|
|
||||||
"typeAssertChain",
|
"typeAssertChain",
|
||||||
"typeSwitchVar",
|
|
||||||
"underef",
|
|
||||||
"unlabelStmt",
|
"unlabelStmt",
|
||||||
"unnamedResult",
|
"unnamedResult",
|
||||||
"unnecessaryBlock",
|
"unnecessaryBlock",
|
||||||
|
|||||||
@ -83,11 +83,11 @@ type DatabaseConfig struct {
|
|||||||
// ErrorTrackingConfig holds error tracking configuration
|
// ErrorTrackingConfig holds error tracking configuration
|
||||||
type ErrorTrackingConfig struct {
|
type ErrorTrackingConfig struct {
|
||||||
Enabled bool `mapstructure:"enabled"`
|
Enabled bool `mapstructure:"enabled"`
|
||||||
Provider string `mapstructure:"provider"` // sentry, noop
|
Provider string `mapstructure:"provider"` // sentry, noop
|
||||||
DSN string `mapstructure:"dsn"` // Sentry DSN
|
DSN string `mapstructure:"dsn"` // Sentry DSN
|
||||||
Environment string `mapstructure:"environment"` // e.g., production, staging, development
|
Environment string `mapstructure:"environment"` // e.g., production, staging, development
|
||||||
Release string `mapstructure:"release"` // Application version/release
|
Release string `mapstructure:"release"` // Application version/release
|
||||||
Debug bool `mapstructure:"debug"` // Enable debug mode
|
Debug bool `mapstructure:"debug"` // Enable debug mode
|
||||||
SampleRate float64 `mapstructure:"sample_rate"` // Error sample rate (0.0-1.0)
|
SampleRate float64 `mapstructure:"sample_rate"` // Error sample rate (0.0-1.0)
|
||||||
TracesSampleRate float64 `mapstructure:"traces_sample_rate"` // Traces sample rate (0.0-1.0)
|
TracesSampleRate float64 `mapstructure:"traces_sample_rate"` // Traces sample rate (0.0-1.0)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,8 +7,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
|
||||||
"github.com/bitechdev/ResolveSpec/pkg/errortracking"
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
|
errortracking "github.com/bitechdev/ResolveSpec/pkg/errortracking"
|
||||||
)
|
)
|
||||||
|
|
||||||
var Logger *zap.SugaredLogger
|
var Logger *zap.SugaredLogger
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user