Documentation
¶
Index ¶
- type AsasalintSettings
- type BaseRule
- type BiDiChkSettings
- type Config
- type CopyLoopVarSettings
- type CustomLinterSettings
- type CyclopSettings
- type DecorderSettings
- type DepGuardDeny
- type DepGuardList
- type DepGuardSettings
- type DogsledSettings
- type DupWordSettings
- type DuplSettings
- type EmbeddedStructFieldCheckSettings
- type ErrChkJSONSettings
- type ErrcheckSettings
- type ErrorLintAllowPair
- type ErrorLintSettings
- type ExcludeRule
- type ExhaustiveSettings
- type ExhaustructSettings
- type FatcontextSettings
- type ForbidigoPattern
- type ForbidigoSettings
- type Formats
- type FormatterExclusions
- type FormatterSettings
- type Formatters
- type FuncOrderSettings
- type FunlenSettings
- type GciSettings
- type GinkgoLinterSettings
- type GoChecksumTypeSettings
- type GoConstSettings
- type GoCriticCheckSettings
- type GoCriticSettings
- type GoCycloSettings
- type GoFmtRewriteRule
- type GoFmtSettings
- type GoFumptSettings
- type GoHeaderSettings
- type GoImportsSettings
- type GoLinesSettings
- type GoModDirectivesSettings
- type GoModGuardAllowed
- type GoModGuardBlocked
- type GoModGuardModule
- type GoModGuardSettings
- type GoModGuardVersion
- type GoSecSettings
- type GocognitSettings
- type GodotSettings
- type GodoxSettings
- type GosmopolitanSettings
- type GovetSettings
- type GrouperSettings
- type INamedParamSettings
- type IfaceSettings
- type ImportAsAlias
- type ImportAsSettings
- type InterfaceBloatSettings
- type IreturnSettings
- type Issues
- type JUnitXML
- type LinterExclusions
- type Linters
- type LintersSettings
- type LllSettings
- type LoggerCheckSettings
- type MaintIdxSettings
- type MakezeroSettings
- type MisspellExtraWords
- type MisspellSettings
- type MndSettings
- type MustTagFunction
- type MustTagSettings
- type NakedretSettings
- type NestifSettings
- type NilNilSettings
- type NlreturnSettings
- type NoLintLintSettings
- type NoNamedReturnsSettings
- type Output
- type ParallelTestSettings
- type PerfSprintSettings
- type PreallocSettings
- type PredeclaredSettings
- type PromlinterSettings
- type ProtoGetterSettings
- type ReassignSettings
- type RecvcheckSettings
- type ReviveDirective
- type ReviveRule
- type ReviveSettings
- type RowsErrCheckSettings
- type Run
- type Severity
- type SeverityRule
- type SimpleFormat
- type SlogLintSettings
- type SpancheckSettings
- type StaticCheckSettings
- type Tab
- type TagAlignSettings
- type TagliatelleBase
- type TagliatelleCase
- type TagliatelleExtendedRule
- type TagliatelleOverrides
- type TagliatelleSettings
- type TestifylintBoolCompare
- type TestifylintExpectedActual
- type TestifylintFormatter
- type TestifylintGoRequire
- type TestifylintRequireError
- type TestifylintSettings
- type TestifylintSuiteExtraAssertCall
- type TestpackageSettings
- type Text
- type ThelperOptions
- type ThelperSettings
- type UnconvertSettings
- type UnparamSettings
- type UnusedSettings
- type UseStdlibVarsSettings
- type UseTestingSettings
- type VarnamelenSettings
- type WSLv4Settings
- type WSLv5Settings
- type WhitespaceSettings
- type WrapcheckSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsasalintSettings ¶
type BaseRule ¶
type BaseRule struct {
Linters []string `yaml:"linters,omitempty" toml:"linters,multiline,omitempty"`
Path *string `yaml:"path,omitempty" toml:"path,multiline,omitempty"`
PathExcept *string `yaml:"path-except,omitempty" toml:"path-except,multiline,omitempty"`
Text *string `yaml:"text,omitempty" toml:"text,multiline,omitempty"`
Source *string `yaml:"source,omitempty" toml:"source,multiline,omitempty"`
InternalReference *string `yaml:"-,omitempty" toml:"-,multiline,omitempty"`
}
type BiDiChkSettings ¶
type BiDiChkSettings struct {
LeftToRightEmbedding *bool `yaml:"left-to-right-embedding,omitempty" toml:"left-to-right-embedding,multiline,omitempty"`
RightToLeftEmbedding *bool `yaml:"right-to-left-embedding,omitempty" toml:"right-to-left-embedding,multiline,omitempty"`
PopDirectionalFormatting *bool `yaml:"pop-directional-formatting,omitempty" toml:"pop-directional-formatting,multiline,omitempty"`
LeftToRightOverride *bool `yaml:"left-to-right-override,omitempty" toml:"left-to-right-override,multiline,omitempty"`
RightToLeftOverride *bool `yaml:"right-to-left-override,omitempty" toml:"right-to-left-override,multiline,omitempty"`
LeftToRightIsolate *bool `yaml:"left-to-right-isolate,omitempty" toml:"left-to-right-isolate,multiline,omitempty"`
RightToLeftIsolate *bool `yaml:"right-to-left-isolate,omitempty" toml:"right-to-left-isolate,multiline,omitempty"`
FirstStrongIsolate *bool `yaml:"first-strong-isolate,omitempty" toml:"first-strong-isolate,multiline,omitempty"`
PopDirectionalIsolate *bool `yaml:"pop-directional-isolate,omitempty" toml:"pop-directional-isolate,multiline,omitempty"`
}
type Config ¶
type Config struct {
Version *string `yaml:"version,omitempty" toml:"version,multiline,omitempty"`
Run Run `yaml:"run,omitempty" toml:"run,multiline,omitempty"`
Output Output `yaml:"output,omitempty" toml:"output,multiline,omitempty"`
Linters Linters `yaml:"linters,omitempty" toml:"linters,multiline,omitempty"`
Issues Issues `yaml:"issues,omitempty" toml:"issues,multiline,omitempty"`
Severity Severity `yaml:"severity,omitempty" toml:"severity,multiline,omitempty"`
Formatters Formatters `yaml:"formatters,omitempty" toml:"formatters,multiline,omitempty"`
}
type CopyLoopVarSettings ¶
type CopyLoopVarSettings struct {
CheckAlias *bool `yaml:"check-alias,omitempty" toml:"check-alias,multiline,omitempty"`
}
type CustomLinterSettings ¶
type CustomLinterSettings struct {
Type *string `yaml:"type,omitempty" toml:"type,multiline,omitempty"`
Path *string `yaml:"path,omitempty" toml:"path,multiline,omitempty"`
Description *string `yaml:"description,omitempty" toml:"description,multiline,omitempty"`
OriginalURL *string `yaml:"original-url,omitempty" toml:"original-url,multiline,omitempty"`
Settings any `yaml:"settings,omitempty" toml:"settings,multiline,omitempty"`
}
type CyclopSettings ¶
type DecorderSettings ¶
type DecorderSettings struct {
DecOrder []string `yaml:"dec-order,omitempty" toml:"dec-order,multiline,omitempty"`
IgnoreUnderscoreVars *bool `yaml:"ignore-underscore-vars,omitempty" toml:"ignore-underscore-vars,multiline,omitempty"`
DisableDecNumCheck *bool `yaml:"disable-dec-num-check,omitempty" toml:"disable-dec-num-check,multiline,omitempty"`
DisableTypeDecNumCheck *bool `yaml:"disable-type-dec-num-check,omitempty" toml:"disable-type-dec-num-check,multiline,omitempty"`
DisableConstDecNumCheck *bool `yaml:"disable-const-dec-num-check,omitempty" toml:"disable-const-dec-num-check,multiline,omitempty"`
DisableVarDecNumCheck *bool `yaml:"disable-var-dec-num-check,omitempty" toml:"disable-var-dec-num-check,multiline,omitempty"`
DisableDecOrderCheck *bool `yaml:"disable-dec-order-check,omitempty" toml:"disable-dec-order-check,multiline,omitempty"`
DisableInitFuncFirstCheck *bool `yaml:"disable-init-func-first-check,omitempty" toml:"disable-init-func-first-check,multiline,omitempty"`
}
type DepGuardDeny ¶
type DepGuardList ¶
type DepGuardList struct {
ListMode *string `yaml:"list-mode,omitempty" toml:"list-mode,multiline,omitempty"`
Files []string `yaml:"files,omitempty" toml:"files,multiline,omitempty"`
Allow []string `yaml:"allow,omitempty" toml:"allow,multiline,omitempty"`
Deny []DepGuardDeny `yaml:"deny,omitempty" toml:"deny,multiline,omitempty"`
}
type DepGuardSettings ¶
type DepGuardSettings struct {
Rules map[string]*DepGuardList `yaml:"rules,omitempty" toml:"rules,multiline,omitempty"`
}
type DogsledSettings ¶
type DogsledSettings struct {
MaxBlankIdentifiers *int `yaml:"max-blank-identifiers,omitempty" toml:"max-blank-identifiers,multiline,omitempty"`
}
type DupWordSettings ¶
type DuplSettings ¶
type DuplSettings struct {
Threshold *int `yaml:"threshold,omitempty" toml:"threshold,multiline,omitempty"`
}
type EmbeddedStructFieldCheckSettings ¶ added in v2.2.0
type EmbeddedStructFieldCheckSettings struct {
ForbidMutex *bool `yaml:"forbid-mutex,omitempty" toml:"forbid-mutex,multiline,omitempty"`
}
type ErrChkJSONSettings ¶
type ErrcheckSettings ¶
type ErrcheckSettings struct {
DisableDefaultExclusions *bool `yaml:"disable-default-exclusions,omitempty" toml:"disable-default-exclusions,multiline,omitempty"`
CheckTypeAssertions *bool `yaml:"check-type-assertions,omitempty" toml:"check-type-assertions,multiline,omitempty"`
CheckAssignToBlank *bool `yaml:"check-blank,omitempty" toml:"check-blank,multiline,omitempty"`
ExcludeFunctions []string `yaml:"exclude-functions,omitempty" toml:"exclude-functions,multiline,omitempty"`
Verbose *bool `yaml:"verbose,omitempty" toml:"verbose,multiline,omitempty"`
}
type ErrorLintAllowPair ¶
type ErrorLintSettings ¶
type ErrorLintSettings struct {
Errorf *bool `yaml:"errorf,omitempty" toml:"errorf,multiline,omitempty"`
ErrorfMulti *bool `yaml:"errorf-multi,omitempty" toml:"errorf-multi,multiline,omitempty"`
Asserts *bool `yaml:"asserts,omitempty" toml:"asserts,multiline,omitempty"`
Comparison *bool `yaml:"comparison,omitempty" toml:"comparison,multiline,omitempty"`
AllowedErrors []ErrorLintAllowPair `yaml:"allowed-errors,omitempty" toml:"allowed-errors,multiline,omitempty"`
AllowedErrorsWildcard []ErrorLintAllowPair `yaml:"allowed-errors-wildcard,omitempty" toml:"allowed-errors-wildcard,multiline,omitempty"`
}
type ExcludeRule ¶
type ExcludeRule struct {
BaseRule `yaml:",inline"`
}
type ExhaustiveSettings ¶
type ExhaustiveSettings struct {
Check []string `yaml:"check,omitempty" toml:"check,multiline,omitempty"`
DefaultSignifiesExhaustive *bool `yaml:"default-signifies-exhaustive,omitempty" toml:"default-signifies-exhaustive,multiline,omitempty"`
IgnoreEnumMembers *string `yaml:"ignore-enum-members,omitempty" toml:"ignore-enum-members,multiline,omitempty"`
IgnoreEnumTypes *string `yaml:"ignore-enum-types,omitempty" toml:"ignore-enum-types,multiline,omitempty"`
PackageScopeOnly *bool `yaml:"package-scope-only,omitempty" toml:"package-scope-only,multiline,omitempty"`
ExplicitExhaustiveMap *bool `yaml:"explicit-exhaustive-map,omitempty" toml:"explicit-exhaustive-map,multiline,omitempty"`
ExplicitExhaustiveSwitch *bool `yaml:"explicit-exhaustive-switch,omitempty" toml:"explicit-exhaustive-switch,multiline,omitempty"`
DefaultCaseRequired *bool `yaml:"default-case-required,omitempty" toml:"default-case-required,multiline,omitempty"`
}
type ExhaustructSettings ¶
type FatcontextSettings ¶
type FatcontextSettings struct {
CheckStructPointers *bool `yaml:"check-struct-pointers,omitempty" toml:"check-struct-pointers,multiline,omitempty"`
}
type ForbidigoPattern ¶
type ForbidigoSettings ¶
type ForbidigoSettings struct {
Forbid []ForbidigoPattern `yaml:"forbid,omitempty" toml:"forbid,multiline,omitempty"`
ExcludeGodocExamples *bool `yaml:"exclude-godoc-examples,omitempty" toml:"exclude-godoc-examples,multiline,omitempty"`
AnalyzeTypes *bool `yaml:"analyze-types,omitempty" toml:"analyze-types,multiline,omitempty"`
}
type Formats ¶
type Formats struct {
Text Text `yaml:"text,omitempty" toml:"text,multiline,omitempty"`
JSON SimpleFormat `yaml:"json,omitempty" toml:"json,multiline,omitempty"`
Tab Tab `yaml:"tab,omitempty" toml:"tab,multiline,omitempty"`
HTML SimpleFormat `yaml:"html,omitempty" toml:"html,multiline,omitempty"`
Checkstyle SimpleFormat `yaml:"checkstyle,omitempty" toml:"checkstyle,multiline,omitempty"`
CodeClimate SimpleFormat `yaml:"code-climate,omitempty" toml:"code-climate,multiline,omitempty"`
JUnitXML JUnitXML `yaml:"junit-xml,omitempty" toml:"junit-xml,multiline,omitempty"`
TeamCity SimpleFormat `yaml:"teamcity,omitempty" toml:"teamcity,multiline,omitempty"`
Sarif SimpleFormat `yaml:"sarif,omitempty" toml:"sarif,multiline,omitempty"`
}
type FormatterExclusions ¶
type FormatterSettings ¶
type FormatterSettings struct {
Gci GciSettings `yaml:"gci,omitempty" toml:"gci,multiline,omitempty"`
GoFmt GoFmtSettings `yaml:"gofmt,omitempty" toml:"gofmt,multiline,omitempty"`
GoFumpt GoFumptSettings `yaml:"gofumpt,omitempty" toml:"gofumpt,multiline,omitempty"`
GoImports GoImportsSettings `yaml:"goimports,omitempty" toml:"goimports,multiline,omitempty"`
GoLines GoLinesSettings `yaml:"golines,omitempty" toml:"golines,multiline,omitempty"`
}
type Formatters ¶
type Formatters struct {
Enable []string `yaml:"enable,omitempty" toml:"enable,multiline,omitempty"`
Settings FormatterSettings `yaml:"settings,omitempty" toml:"settings,multiline,omitempty"`
Exclusions FormatterExclusions `yaml:"exclusions,omitempty" toml:"exclusions,multiline,omitempty"`
}
type FuncOrderSettings ¶ added in v2.1.3
type FuncOrderSettings struct {
Constructor *bool `yaml:"constructor,omitempty,omitempty" toml:"constructor,omitempty,multiline,omitempty"`
StructMethod *bool `yaml:"struct-method,omitempty,omitempty" toml:"struct-method,omitempty,multiline,omitempty"`
Alphabetical *bool `yaml:"alphabetical,omitempty,omitempty" toml:"alphabetical,omitempty,multiline,omitempty"`
}
type FunlenSettings ¶
type GciSettings ¶
type GciSettings struct {
Sections []string `yaml:"sections,omitempty" toml:"sections,multiline,omitempty"`
NoInlineComments *bool `yaml:"no-inline-comments,omitempty" toml:"no-inline-comments,multiline,omitempty"`
NoPrefixComments *bool `yaml:"no-prefix-comments,omitempty" toml:"no-prefix-comments,multiline,omitempty"`
CustomOrder *bool `yaml:"custom-order,omitempty" toml:"custom-order,multiline,omitempty"`
NoLexOrder *bool `yaml:"no-lex-order,omitempty" toml:"no-lex-order,multiline,omitempty"`
}
type GinkgoLinterSettings ¶
type GinkgoLinterSettings struct {
SuppressLenAssertion *bool `yaml:"suppress-len-assertion,omitempty" toml:"suppress-len-assertion,multiline,omitempty"`
SuppressNilAssertion *bool `yaml:"suppress-nil-assertion,omitempty" toml:"suppress-nil-assertion,multiline,omitempty"`
SuppressErrAssertion *bool `yaml:"suppress-err-assertion,omitempty" toml:"suppress-err-assertion,multiline,omitempty"`
SuppressCompareAssertion *bool `yaml:"suppress-compare-assertion,omitempty" toml:"suppress-compare-assertion,multiline,omitempty"`
SuppressAsyncAssertion *bool `yaml:"suppress-async-assertion,omitempty" toml:"suppress-async-assertion,multiline,omitempty"`
SuppressTypeCompareWarning *bool `yaml:"suppress-type-compare-assertion,omitempty" toml:"suppress-type-compare-assertion,multiline,omitempty"`
ForbidFocusContainer *bool `yaml:"forbid-focus-container,omitempty" toml:"forbid-focus-container,multiline,omitempty"`
AllowHaveLenZero *bool `yaml:"allow-havelen-zero,omitempty" toml:"allow-havelen-zero,multiline,omitempty"`
ForceExpectTo *bool `yaml:"force-expect-to,omitempty" toml:"force-expect-to,multiline,omitempty"`
ValidateAsyncIntervals *bool `yaml:"validate-async-intervals,omitempty" toml:"validate-async-intervals,multiline,omitempty"`
ForbidSpecPollution *bool `yaml:"forbid-spec-pollution,omitempty" toml:"forbid-spec-pollution,multiline,omitempty"`
ForceSucceedForFuncs *bool `yaml:"force-succeed,omitempty" toml:"force-succeed,multiline,omitempty"`
}
type GoChecksumTypeSettings ¶
type GoChecksumTypeSettings struct {
DefaultSignifiesExhaustive *bool `yaml:"default-signifies-exhaustive,omitempty" toml:"default-signifies-exhaustive,multiline,omitempty"`
}
type GoConstSettings ¶
type GoConstSettings struct {
IgnoreStringValues []string `yaml:"ignore-string-values,omitempty" toml:"ignore-string-values,multiline,omitempty"`
MatchWithConstants *bool `yaml:"match-constant,omitempty" toml:"match-constant,multiline,omitempty"`
MinStringLen *int `yaml:"min-len,omitempty" toml:"min-len,multiline,omitempty"`
MinOccurrencesCount *int `yaml:"min-occurrences,omitempty" toml:"min-occurrences,multiline,omitempty"`
ParseNumbers *bool `yaml:"numbers,omitempty" toml:"numbers,multiline,omitempty"`
NumberMin *int `yaml:"min,omitempty" toml:"min,multiline,omitempty"`
NumberMax *int `yaml:"max,omitempty" toml:"max,multiline,omitempty"`
IgnoreCalls *bool `yaml:"ignore-calls,omitempty" toml:"ignore-calls,multiline,omitempty"`
FindDuplicates *bool `yaml:"find-duplicates,omitempty" toml:"find-duplicates,multiline,omitempty"`
EvalConstExpressions *bool `yaml:"eval-const-expressions,omitempty" toml:"eval-const-expressions,multiline,omitempty"`
IgnoreStrings *string `yaml:"ignore-strings,omitempty" toml:"ignore-strings,multiline,omitempty"`
}
type GoCriticCheckSettings ¶
type GoCriticSettings ¶
type GoCriticSettings struct {
Go *string `yaml:"-,omitempty" toml:"-,multiline,omitempty"`
DisableAll *bool `yaml:"disable-all,omitempty" toml:"disable-all,multiline,omitempty"`
EnabledChecks []string `yaml:"enabled-checks,omitempty" toml:"enabled-checks,multiline,omitempty"`
EnableAll *bool `yaml:"enable-all,omitempty" toml:"enable-all,multiline,omitempty"`
DisabledChecks []string `yaml:"disabled-checks,omitempty" toml:"disabled-checks,multiline,omitempty"`
EnabledTags []string `yaml:"enabled-tags,omitempty" toml:"enabled-tags,multiline,omitempty"`
DisabledTags []string `yaml:"disabled-tags,omitempty" toml:"disabled-tags,multiline,omitempty"`
SettingsPerCheck map[string]GoCriticCheckSettings `yaml:"settings,omitempty" toml:"settings,multiline,omitempty"`
}
type GoCycloSettings ¶
type GoCycloSettings struct {
MinComplexity *int `yaml:"min-complexity,omitempty" toml:"min-complexity,multiline,omitempty"`
}
type GoFmtRewriteRule ¶
type GoFmtSettings ¶
type GoFmtSettings struct {
Simplify *bool `yaml:"simplify,omitempty" toml:"simplify,multiline,omitempty"`
RewriteRules []GoFmtRewriteRule `yaml:"rewrite-rules,omitempty" toml:"rewrite-rules,multiline,omitempty"`
}
type GoFumptSettings ¶
type GoHeaderSettings ¶
type GoHeaderSettings struct {
Values map[string]map[string]string `yaml:"values,omitempty" toml:"values,multiline,omitempty"`
Template *string `yaml:"template,omitempty" toml:"template,multiline,omitempty"`
TemplatePath *string `yaml:"template-path,omitempty" toml:"template-path,multiline,omitempty"`
}
type GoImportsSettings ¶
type GoImportsSettings struct {
LocalPrefixes []string `yaml:"local-prefixes,omitempty" toml:"local-prefixes,multiline,omitempty"`
}
type GoLinesSettings ¶
type GoLinesSettings struct {
MaxLen *int `yaml:"max-len,omitempty" toml:"max-len,multiline,omitempty"`
TabLen *int `yaml:"tab-len,omitempty" toml:"tab-len,multiline,omitempty"`
ShortenComments *bool `yaml:"shorten-comments,omitempty" toml:"shorten-comments,multiline,omitempty"`
ReformatTags *bool `yaml:"reformat-tags,omitempty" toml:"reformat-tags,multiline,omitempty"`
ChainSplitDots *bool `yaml:"chain-split-dots,omitempty" toml:"chain-split-dots,multiline,omitempty"`
}
type GoModDirectivesSettings ¶
type GoModDirectivesSettings struct {
ReplaceAllowList []string `yaml:"replace-allow-list,omitempty" toml:"replace-allow-list,multiline,omitempty"`
ReplaceLocal *bool `yaml:"replace-local,omitempty" toml:"replace-local,multiline,omitempty"`
ExcludeForbidden *bool `yaml:"exclude-forbidden,omitempty" toml:"exclude-forbidden,multiline,omitempty"`
RetractAllowNoExplanation *bool `yaml:"retract-allow-no-explanation,omitempty" toml:"retract-allow-no-explanation,multiline,omitempty"`
ToolchainForbidden *bool `yaml:"toolchain-forbidden,omitempty" toml:"toolchain-forbidden,multiline,omitempty"`
ToolchainPattern *string `yaml:"toolchain-pattern,omitempty" toml:"toolchain-pattern,multiline,omitempty"`
ToolForbidden *bool `yaml:"tool-forbidden,omitempty" toml:"tool-forbidden,multiline,omitempty"`
GoDebugForbidden *bool `yaml:"go-debug-forbidden,omitempty" toml:"go-debug-forbidden,multiline,omitempty"`
GoVersionPattern *string `yaml:"go-version-pattern,omitempty" toml:"go-version-pattern,multiline,omitempty"`
}
type GoModGuardAllowed ¶
type GoModGuardBlocked ¶
type GoModGuardBlocked struct {
Modules []map[string]GoModGuardModule `yaml:"modules,omitempty" toml:"modules,multiline,omitempty"`
Versions []map[string]GoModGuardVersion `yaml:"versions,omitempty" toml:"versions,multiline,omitempty"`
LocalReplaceDirectives *bool `yaml:"local-replace-directives,omitempty" toml:"local-replace-directives,multiline,omitempty"`
}
type GoModGuardModule ¶
type GoModGuardSettings ¶
type GoModGuardSettings struct {
Allowed GoModGuardAllowed `yaml:"allowed,omitempty" toml:"allowed,multiline,omitempty"`
Blocked GoModGuardBlocked `yaml:"blocked,omitempty" toml:"blocked,multiline,omitempty"`
}
type GoModGuardVersion ¶
type GoSecSettings ¶
type GoSecSettings struct {
Includes []string `yaml:"includes,omitempty" toml:"includes,multiline,omitempty"`
Excludes []string `yaml:"excludes,omitempty" toml:"excludes,multiline,omitempty"`
Severity *string `yaml:"severity,omitempty" toml:"severity,multiline,omitempty"`
Confidence *string `yaml:"confidence,omitempty" toml:"confidence,multiline,omitempty"`
Config map[string]any `yaml:"config,omitempty" toml:"config,multiline,omitempty"`
Concurrency *int `yaml:"concurrency,omitempty" toml:"concurrency,multiline,omitempty"`
}
type GocognitSettings ¶
type GocognitSettings struct {
MinComplexity *int `yaml:"min-complexity,omitempty" toml:"min-complexity,multiline,omitempty"`
}
type GodotSettings ¶
type GodotSettings struct {
Scope *string `yaml:"scope,omitempty" toml:"scope,multiline,omitempty"`
Exclude []string `yaml:"exclude,omitempty" toml:"exclude,multiline,omitempty"`
Capital *bool `yaml:"capital,omitempty" toml:"capital,multiline,omitempty"`
Period *bool `yaml:"period,omitempty" toml:"period,multiline,omitempty"`
}
type GodoxSettings ¶
type GodoxSettings struct {
Keywords []string `yaml:"keywords,omitempty" toml:"keywords,multiline,omitempty"`
}
type GosmopolitanSettings ¶
type GosmopolitanSettings struct {
AllowTimeLocal *bool `yaml:"allow-time-local,omitempty" toml:"allow-time-local,multiline,omitempty"`
EscapeHatches []string `yaml:"escape-hatches,omitempty" toml:"escape-hatches,multiline,omitempty"`
WatchForScripts []string `yaml:"watch-for-scripts,omitempty" toml:"watch-for-scripts,multiline,omitempty"`
}
type GovetSettings ¶
type GovetSettings struct {
Go *string `yaml:"-,omitempty" toml:"-,multiline,omitempty"`
Enable []string `yaml:"enable,omitempty" toml:"enable,multiline,omitempty"`
Disable []string `yaml:"disable,omitempty" toml:"disable,multiline,omitempty"`
EnableAll *bool `yaml:"enable-all,omitempty" toml:"enable-all,multiline,omitempty"`
DisableAll *bool `yaml:"disable-all,omitempty" toml:"disable-all,multiline,omitempty"`
Settings map[string]map[string]any `yaml:"settings,omitempty" toml:"settings,multiline,omitempty"`
}
type GrouperSettings ¶
type GrouperSettings struct {
ConstRequireSingleConst *bool `yaml:"const-require-single-const,omitempty" toml:"const-require-single-const,multiline,omitempty"`
ConstRequireGrouping *bool `yaml:"const-require-grouping,omitempty" toml:"const-require-grouping,multiline,omitempty"`
ImportRequireSingleImport *bool `yaml:"import-require-single-import,omitempty" toml:"import-require-single-import,multiline,omitempty"`
ImportRequireGrouping *bool `yaml:"import-require-grouping,omitempty" toml:"import-require-grouping,multiline,omitempty"`
TypeRequireSingleType *bool `yaml:"type-require-single-type,omitempty" toml:"type-require-single-type,multiline,omitempty"`
TypeRequireGrouping *bool `yaml:"type-require-grouping,omitempty" toml:"type-require-grouping,multiline,omitempty"`
VarRequireSingleVar *bool `yaml:"var-require-single-var,omitempty" toml:"var-require-single-var,multiline,omitempty"`
VarRequireGrouping *bool `yaml:"var-require-grouping,omitempty" toml:"var-require-grouping,multiline,omitempty"`
}
type INamedParamSettings ¶
type INamedParamSettings struct {
SkipSingleParam *bool `yaml:"skip-single-param,omitempty" toml:"skip-single-param,multiline,omitempty"`
}
type IfaceSettings ¶
type ImportAsAlias ¶
type ImportAsSettings ¶
type ImportAsSettings struct {
Alias []ImportAsAlias `yaml:"alias,omitempty" toml:"alias,multiline,omitempty"`
NoUnaliased *bool `yaml:"no-unaliased,omitempty" toml:"no-unaliased,multiline,omitempty"`
NoExtraAliases *bool `yaml:"no-extra-aliases,omitempty" toml:"no-extra-aliases,multiline,omitempty"`
}
type InterfaceBloatSettings ¶
type InterfaceBloatSettings struct {
Max *int `yaml:"max,omitempty" toml:"max,multiline,omitempty"`
}
type IreturnSettings ¶
type Issues ¶
type Issues struct {
MaxIssuesPerLinter *int `yaml:"max-issues-per-linter,omitempty" toml:"max-issues-per-linter,multiline,omitempty"`
MaxSameIssues *int `yaml:"max-same-issues,omitempty" toml:"max-same-issues,multiline,omitempty"`
UniqByLine *bool `yaml:"uniq-by-line,omitempty" toml:"uniq-by-line,multiline,omitempty"`
DiffFromRevision *string `yaml:"new-from-rev,omitempty" toml:"new-from-rev,multiline,omitempty"`
DiffFromMergeBase *string `yaml:"new-from-merge-base,omitempty" toml:"new-from-merge-base,multiline,omitempty"`
DiffPatchFilePath *string `yaml:"new-from-patch,omitempty" toml:"new-from-patch,multiline,omitempty"`
WholeFiles *bool `yaml:"whole-files,omitempty" toml:"whole-files,multiline,omitempty"`
Diff *bool `yaml:"new,omitempty" toml:"new,multiline,omitempty"`
NeedFix *bool `yaml:"fix,omitempty" toml:"fix,multiline,omitempty"`
}
type JUnitXML ¶
type JUnitXML struct {
SimpleFormat `yaml:",inline"`
Extended *bool `yaml:"extended,omitempty" toml:"extended,multiline,omitempty"`
}
type LinterExclusions ¶
type LinterExclusions struct {
Generated *string `yaml:"generated,omitempty" toml:"generated,multiline,omitempty"`
WarnUnused *bool `yaml:"warn-unused,omitempty" toml:"warn-unused,multiline,omitempty"`
Presets []string `yaml:"presets,omitempty" toml:"presets,multiline,omitempty"`
Rules []ExcludeRule `yaml:"rules,omitempty" toml:"rules,multiline,omitempty"`
Paths []string `yaml:"paths,omitempty" toml:"paths,multiline,omitempty"`
PathsExcept []string `yaml:"paths-except,omitempty" toml:"paths-except,multiline,omitempty"`
}
type Linters ¶
type Linters struct {
Default *string `yaml:"default,omitempty" toml:"default,multiline,omitempty"`
Enable []string `yaml:"enable,omitempty" toml:"enable,multiline,omitempty"`
Disable []string `yaml:"disable,omitempty" toml:"disable,multiline,omitempty"`
FastOnly *bool `yaml:"fast-only,omitempty" toml:"fast-only,multiline,omitempty"`
Settings LintersSettings `yaml:"settings,omitempty" toml:"settings,multiline,omitempty"`
Exclusions LinterExclusions `yaml:"exclusions,omitempty" toml:"exclusions,multiline,omitempty"`
}
type LintersSettings ¶
type LintersSettings struct {
FormatterSettings `yaml:"-,omitempty" toml:"-,multiline,omitempty"`
Asasalint AsasalintSettings `yaml:"asasalint,omitempty" toml:"asasalint,multiline,omitempty"`
BiDiChk BiDiChkSettings `yaml:"bidichk,omitempty" toml:"bidichk,multiline,omitempty"`
CopyLoopVar CopyLoopVarSettings `yaml:"copyloopvar,omitempty" toml:"copyloopvar,multiline,omitempty"`
Cyclop CyclopSettings `yaml:"cyclop,omitempty" toml:"cyclop,multiline,omitempty"`
Decorder DecorderSettings `yaml:"decorder,omitempty" toml:"decorder,multiline,omitempty"`
Depguard DepGuardSettings `yaml:"depguard,omitempty" toml:"depguard,multiline,omitempty"`
Dogsled DogsledSettings `yaml:"dogsled,omitempty" toml:"dogsled,multiline,omitempty"`
Dupl DuplSettings `yaml:"dupl,omitempty" toml:"dupl,multiline,omitempty"`
DupWord DupWordSettings `yaml:"dupword,omitempty" toml:"dupword,multiline,omitempty"`
EmbeddedStructFieldCheck EmbeddedStructFieldCheckSettings `yaml:"embeddedstructfieldcheck,omitempty" toml:"embeddedstructfieldcheck,multiline,omitempty"`
Errcheck ErrcheckSettings `yaml:"errcheck,omitempty" toml:"errcheck,multiline,omitempty"`
ErrChkJSON ErrChkJSONSettings `yaml:"errchkjson,omitempty" toml:"errchkjson,multiline,omitempty"`
ErrorLint ErrorLintSettings `yaml:"errorlint,omitempty" toml:"errorlint,multiline,omitempty"`
Exhaustive ExhaustiveSettings `yaml:"exhaustive,omitempty" toml:"exhaustive,multiline,omitempty"`
Exhaustruct ExhaustructSettings `yaml:"exhaustruct,omitempty" toml:"exhaustruct,multiline,omitempty"`
Fatcontext FatcontextSettings `yaml:"fatcontext,omitempty" toml:"fatcontext,multiline,omitempty"`
Forbidigo ForbidigoSettings `yaml:"forbidigo,omitempty" toml:"forbidigo,multiline,omitempty"`
FuncOrder FuncOrderSettings `yaml:"funcorder,omitempty" toml:"funcorder,multiline,omitempty"`
Funlen FunlenSettings `yaml:"funlen,omitempty" toml:"funlen,multiline,omitempty"`
GinkgoLinter GinkgoLinterSettings `yaml:"ginkgolinter,omitempty" toml:"ginkgolinter,multiline,omitempty"`
Gocognit GocognitSettings `yaml:"gocognit,omitempty" toml:"gocognit,multiline,omitempty"`
GoChecksumType GoChecksumTypeSettings `yaml:"gochecksumtype,omitempty" toml:"gochecksumtype,multiline,omitempty"`
Goconst GoConstSettings `yaml:"goconst,omitempty" toml:"goconst,multiline,omitempty"`
Gocritic GoCriticSettings `yaml:"gocritic,omitempty" toml:"gocritic,multiline,omitempty"`
Gocyclo GoCycloSettings `yaml:"gocyclo,omitempty" toml:"gocyclo,multiline,omitempty"`
Godot GodotSettings `yaml:"godot,omitempty" toml:"godot,multiline,omitempty"`
Godox GodoxSettings `yaml:"godox,omitempty" toml:"godox,multiline,omitempty"`
Goheader GoHeaderSettings `yaml:"goheader,omitempty" toml:"goheader,multiline,omitempty"`
GoModDirectives GoModDirectivesSettings `yaml:"gomoddirectives,omitempty" toml:"gomoddirectives,multiline,omitempty"`
Gomodguard GoModGuardSettings `yaml:"gomodguard,omitempty" toml:"gomodguard,multiline,omitempty"`
Gosec GoSecSettings `yaml:"gosec,omitempty" toml:"gosec,multiline,omitempty"`
Gosmopolitan GosmopolitanSettings `yaml:"gosmopolitan,omitempty" toml:"gosmopolitan,multiline,omitempty"`
Govet GovetSettings `yaml:"govet,omitempty" toml:"govet,multiline,omitempty"`
Grouper GrouperSettings `yaml:"grouper,omitempty" toml:"grouper,multiline,omitempty"`
Iface IfaceSettings `yaml:"iface,omitempty" toml:"iface,multiline,omitempty"`
ImportAs ImportAsSettings `yaml:"importas,omitempty" toml:"importas,multiline,omitempty"`
Inamedparam INamedParamSettings `yaml:"inamedparam,omitempty" toml:"inamedparam,multiline,omitempty"`
InterfaceBloat InterfaceBloatSettings `yaml:"interfacebloat,omitempty" toml:"interfacebloat,multiline,omitempty"`
Ireturn IreturnSettings `yaml:"ireturn,omitempty" toml:"ireturn,multiline,omitempty"`
Lll LllSettings `yaml:"lll,omitempty" toml:"lll,multiline,omitempty"`
LoggerCheck LoggerCheckSettings `yaml:"loggercheck,omitempty" toml:"loggercheck,multiline,omitempty"`
MaintIdx MaintIdxSettings `yaml:"maintidx,omitempty" toml:"maintidx,multiline,omitempty"`
Makezero MakezeroSettings `yaml:"makezero,omitempty" toml:"makezero,multiline,omitempty"`
Misspell MisspellSettings `yaml:"misspell,omitempty" toml:"misspell,multiline,omitempty"`
Mnd MndSettings `yaml:"mnd,omitempty" toml:"mnd,multiline,omitempty"`
MustTag MustTagSettings `yaml:"musttag,omitempty" toml:"musttag,multiline,omitempty"`
Nakedret NakedretSettings `yaml:"nakedret,omitempty" toml:"nakedret,multiline,omitempty"`
Nestif NestifSettings `yaml:"nestif,omitempty" toml:"nestif,multiline,omitempty"`
NilNil NilNilSettings `yaml:"nilnil,omitempty" toml:"nilnil,multiline,omitempty"`
Nlreturn NlreturnSettings `yaml:"nlreturn,omitempty" toml:"nlreturn,multiline,omitempty"`
NoLintLint NoLintLintSettings `yaml:"nolintlint,omitempty" toml:"nolintlint,multiline,omitempty"`
NoNamedReturns NoNamedReturnsSettings `yaml:"nonamedreturns,omitempty" toml:"nonamedreturns,multiline,omitempty"`
ParallelTest ParallelTestSettings `yaml:"paralleltest,omitempty" toml:"paralleltest,multiline,omitempty"`
PerfSprint PerfSprintSettings `yaml:"perfsprint,omitempty" toml:"perfsprint,multiline,omitempty"`
Prealloc PreallocSettings `yaml:"prealloc,omitempty" toml:"prealloc,multiline,omitempty"`
Predeclared PredeclaredSettings `yaml:"predeclared,omitempty" toml:"predeclared,multiline,omitempty"`
Promlinter PromlinterSettings `yaml:"promlinter,omitempty" toml:"promlinter,multiline,omitempty"`
ProtoGetter ProtoGetterSettings `yaml:"protogetter,omitempty" toml:"protogetter,multiline,omitempty"`
Reassign ReassignSettings `yaml:"reassign,omitempty" toml:"reassign,multiline,omitempty"`
Recvcheck RecvcheckSettings `yaml:"recvcheck,omitempty" toml:"recvcheck,multiline,omitempty"`
Revive ReviveSettings `yaml:"revive,omitempty" toml:"revive,multiline,omitempty"`
RowsErrCheck RowsErrCheckSettings `yaml:"rowserrcheck,omitempty" toml:"rowserrcheck,multiline,omitempty"`
SlogLint SlogLintSettings `yaml:"sloglint,omitempty" toml:"sloglint,multiline,omitempty"`
Spancheck SpancheckSettings `yaml:"spancheck,omitempty" toml:"spancheck,multiline,omitempty"`
Staticcheck StaticCheckSettings `yaml:"staticcheck,omitempty" toml:"staticcheck,multiline,omitempty"`
TagAlign TagAlignSettings `yaml:"tagalign,omitempty" toml:"tagalign,multiline,omitempty"`
Tagliatelle TagliatelleSettings `yaml:"tagliatelle,omitempty" toml:"tagliatelle,multiline,omitempty"`
Testifylint TestifylintSettings `yaml:"testifylint,omitempty" toml:"testifylint,multiline,omitempty"`
Testpackage TestpackageSettings `yaml:"testpackage,omitempty" toml:"testpackage,multiline,omitempty"`
Thelper ThelperSettings `yaml:"thelper,omitempty" toml:"thelper,multiline,omitempty"`
Unconvert UnconvertSettings `yaml:"unconvert,omitempty" toml:"unconvert,multiline,omitempty"`
Unparam UnparamSettings `yaml:"unparam,omitempty" toml:"unparam,multiline,omitempty"`
Unused UnusedSettings `yaml:"unused,omitempty" toml:"unused,multiline,omitempty"`
UseStdlibVars UseStdlibVarsSettings `yaml:"usestdlibvars,omitempty" toml:"usestdlibvars,multiline,omitempty"`
UseTesting UseTestingSettings `yaml:"usetesting,omitempty" toml:"usetesting,multiline,omitempty"`
Varnamelen VarnamelenSettings `yaml:"varnamelen,omitempty" toml:"varnamelen,multiline,omitempty"`
Whitespace WhitespaceSettings `yaml:"whitespace,omitempty" toml:"whitespace,multiline,omitempty"`
Wrapcheck WrapcheckSettings `yaml:"wrapcheck,omitempty" toml:"wrapcheck,multiline,omitempty"`
WSL WSLv4Settings `yaml:"wsl,omitempty" toml:"wsl,multiline,omitempty"`
WSLv5 WSLv5Settings `yaml:"wsl_v5,omitempty" toml:"wsl_v5,multiline,omitempty"`
Custom map[string]CustomLinterSettings `yaml:"custom,omitempty" toml:"custom,multiline,omitempty"`
}
type LllSettings ¶
type LoggerCheckSettings ¶
type LoggerCheckSettings struct {
Kitlog *bool `yaml:"kitlog,omitempty" toml:"kitlog,multiline,omitempty"`
Klog *bool `yaml:"klog,omitempty" toml:"klog,multiline,omitempty"`
Logr *bool `yaml:"logr,omitempty" toml:"logr,multiline,omitempty"`
Slog *bool `yaml:"slog,omitempty" toml:"slog,multiline,omitempty"`
Zap *bool `yaml:"zap,omitempty" toml:"zap,multiline,omitempty"`
RequireStringKey *bool `yaml:"require-string-key,omitempty" toml:"require-string-key,multiline,omitempty"`
NoPrintfLike *bool `yaml:"no-printf-like,omitempty" toml:"no-printf-like,multiline,omitempty"`
Rules []string `yaml:"rules,omitempty" toml:"rules,multiline,omitempty"`
}
type MaintIdxSettings ¶
type MaintIdxSettings struct {
Under *int `yaml:"under,omitempty" toml:"under,multiline,omitempty"`
}
type MakezeroSettings ¶
type MakezeroSettings struct {
Always *bool `yaml:"always,omitempty" toml:"always,multiline,omitempty"`
}
type MisspellExtraWords ¶
type MisspellSettings ¶
type MisspellSettings struct {
Mode *string `yaml:"mode,omitempty" toml:"mode,multiline,omitempty"`
Locale *string `yaml:"locale,omitempty" toml:"locale,multiline,omitempty"`
ExtraWords []MisspellExtraWords `yaml:"extra-words,omitempty" toml:"extra-words,multiline,omitempty"`
IgnoreRules []string `yaml:"ignore-rules,omitempty" toml:"ignore-rules,multiline,omitempty"`
}
type MndSettings ¶
type MndSettings struct {
Checks []string `yaml:"checks,omitempty" toml:"checks,multiline,omitempty"`
IgnoredNumbers []string `yaml:"ignored-numbers,omitempty" toml:"ignored-numbers,multiline,omitempty"`
IgnoredFiles []string `yaml:"ignored-files,omitempty" toml:"ignored-files,multiline,omitempty"`
IgnoredFunctions []string `yaml:"ignored-functions,omitempty" toml:"ignored-functions,multiline,omitempty"`
}
type MustTagFunction ¶
type MustTagSettings ¶
type MustTagSettings struct {
Functions []MustTagFunction `yaml:"functions,omitempty" toml:"functions,multiline,omitempty"`
}
type NakedretSettings ¶
type NakedretSettings struct {
MaxFuncLines *uint `yaml:"max-func-lines,omitempty" toml:"max-func-lines,multiline,omitempty"`
}
type NestifSettings ¶
type NestifSettings struct {
MinComplexity *int `yaml:"min-complexity,omitempty" toml:"min-complexity,multiline,omitempty"`
}
type NilNilSettings ¶
type NilNilSettings struct {
OnlyTwo *bool `yaml:"only-two,omitempty" toml:"only-two,multiline,omitempty"`
DetectOpposite *bool `yaml:"detect-opposite,omitempty" toml:"detect-opposite,multiline,omitempty"`
CheckedTypes []string `yaml:"checked-types,omitempty" toml:"checked-types,multiline,omitempty"`
}
type NlreturnSettings ¶
type NlreturnSettings struct {
BlockSize *int `yaml:"block-size,omitempty" toml:"block-size,multiline,omitempty"`
}
type NoLintLintSettings ¶
type NoLintLintSettings struct {
RequireExplanation *bool `yaml:"require-explanation,omitempty" toml:"require-explanation,multiline,omitempty"`
RequireSpecific *bool `yaml:"require-specific,omitempty" toml:"require-specific,multiline,omitempty"`
AllowNoExplanation []string `yaml:"allow-no-explanation,omitempty" toml:"allow-no-explanation,multiline,omitempty"`
AllowUnused *bool `yaml:"allow-unused,omitempty" toml:"allow-unused,multiline,omitempty"`
}
type NoNamedReturnsSettings ¶
type NoNamedReturnsSettings struct {
ReportErrorInDefer *bool `yaml:"report-error-in-defer,omitempty" toml:"report-error-in-defer,multiline,omitempty"`
}
type Output ¶
type Output struct {
Formats Formats `yaml:"formats,omitempty" toml:"formats,multiline,omitempty"`
SortOrder []string `yaml:"sort-order,omitempty" toml:"sort-order,multiline,omitempty"`
ShowStats *bool `yaml:"show-stats,omitempty" toml:"show-stats,multiline,omitempty"`
PathPrefix *string `yaml:"path-prefix,omitempty" toml:"path-prefix,multiline,omitempty"`
PathMode *string `yaml:"path-mode,omitempty" toml:"path-mode,multiline,omitempty"`
}
type ParallelTestSettings ¶
type ParallelTestSettings struct {
Go *string `yaml:"-,omitempty" toml:"-,multiline,omitempty"`
IgnoreMissing *bool `yaml:"ignore-missing,omitempty" toml:"ignore-missing,multiline,omitempty"`
IgnoreMissingSubtests *bool `yaml:"ignore-missing-subtests,omitempty" toml:"ignore-missing-subtests,multiline,omitempty"`
}
type PerfSprintSettings ¶
type PerfSprintSettings struct {
IntegerFormat *bool `yaml:"integer-format,omitempty" toml:"integer-format,multiline,omitempty"`
IntConversion *bool `yaml:"int-conversion,omitempty" toml:"int-conversion,multiline,omitempty"`
ErrorFormat *bool `yaml:"error-format,omitempty" toml:"error-format,multiline,omitempty"`
ErrError *bool `yaml:"err-error,omitempty" toml:"err-error,multiline,omitempty"`
ErrorF *bool `yaml:"errorf,omitempty" toml:"errorf,multiline,omitempty"`
StringFormat *bool `yaml:"string-format,omitempty" toml:"string-format,multiline,omitempty"`
SprintF1 *bool `yaml:"sprintf1,omitempty" toml:"sprintf1,multiline,omitempty"`
StrConcat *bool `yaml:"strconcat,omitempty" toml:"strconcat,multiline,omitempty"`
BoolFormat *bool `yaml:"bool-format,omitempty" toml:"bool-format,multiline,omitempty"`
HexFormat *bool `yaml:"hex-format,omitempty" toml:"hex-format,multiline,omitempty"`
}
type PreallocSettings ¶
type PredeclaredSettings ¶
type PromlinterSettings ¶
type ProtoGetterSettings ¶
type ProtoGetterSettings struct {
SkipGeneratedBy []string `yaml:"skip-generated-by,omitempty" toml:"skip-generated-by,multiline,omitempty"`
SkipFiles []string `yaml:"skip-files,omitempty" toml:"skip-files,multiline,omitempty"`
SkipAnyGenerated *bool `yaml:"skip-any-generated,omitempty" toml:"skip-any-generated,multiline,omitempty"`
ReplaceFirstArgInAppend *bool `yaml:"replace-first-arg-in-append,omitempty" toml:"replace-first-arg-in-append,multiline,omitempty"`
}
type ReassignSettings ¶
type ReassignSettings struct {
Patterns []string `yaml:"patterns,omitempty" toml:"patterns,multiline,omitempty"`
}
type RecvcheckSettings ¶
type ReviveDirective ¶
type ReviveRule ¶
type ReviveRule struct {
Name *string `yaml:"name,omitempty" toml:"name,multiline,omitempty"`
Arguments []any `yaml:"arguments,omitempty" toml:"arguments,multiline,omitempty"`
Severity *string `yaml:"severity,omitempty" toml:"severity,multiline,omitempty"`
Disabled *bool `yaml:"disabled,omitempty" toml:"disabled,multiline,omitempty"`
Exclude []string `yaml:"exclude,omitempty" toml:"exclude,multiline,omitempty"`
}
type ReviveSettings ¶
type ReviveSettings struct {
Go *string `yaml:"-,omitempty" toml:"-,multiline,omitempty"`
MaxOpenFiles *int `yaml:"max-open-files,omitempty" toml:"max-open-files,multiline,omitempty"`
Confidence *float64 `yaml:"confidence,omitempty" toml:"confidence,multiline,omitempty"`
Severity *string `yaml:"severity,omitempty" toml:"severity,multiline,omitempty"`
EnableAllRules *bool `yaml:"enable-all-rules,omitempty" toml:"enable-all-rules,multiline,omitempty"`
Rules []ReviveRule `yaml:"rules,omitempty" toml:"rules,multiline,omitempty"`
ErrorCode *int `yaml:"error-code,omitempty" toml:"error-code,multiline,omitempty"`
WarningCode *int `yaml:"warning-code,omitempty" toml:"warning-code,multiline,omitempty"`
Directives []ReviveDirective `yaml:"directives,omitempty" toml:"directives,multiline,omitempty"`
}
type RowsErrCheckSettings ¶
type RowsErrCheckSettings struct {
Packages []string `yaml:"packages,omitempty" toml:"packages,multiline,omitempty"`
}
type Run ¶
type Run struct {
Timeout time.Duration `yaml:"timeout,omitempty" toml:"timeout,multiline,omitempty"`
Concurrency *int `yaml:"concurrency,omitempty" toml:"concurrency,multiline,omitempty"`
Go *string `yaml:"go,omitempty" toml:"go,multiline,omitempty"`
RelativePathMode *string `yaml:"relative-path-mode,omitempty" toml:"relative-path-mode,multiline,omitempty"`
BuildTags []string `yaml:"build-tags,omitempty" toml:"build-tags,multiline,omitempty"`
ModulesDownloadMode *string `yaml:"modules-download-mode,omitempty" toml:"modules-download-mode,multiline,omitempty"`
ExitCodeIfIssuesFound *int `yaml:"issues-exit-code,omitempty" toml:"issues-exit-code,multiline,omitempty"`
AnalyzeTests *bool `yaml:"tests,omitempty" toml:"tests,multiline,omitempty"`
AllowParallelRunners *bool `yaml:"allow-parallel-runners,omitempty" toml:"allow-parallel-runners,multiline,omitempty"`
AllowSerialRunners *bool `yaml:"allow-serial-runners,omitempty" toml:"allow-serial-runners,multiline,omitempty"`
}
type Severity ¶
type Severity struct {
Default *string `yaml:"default,omitempty" toml:"default,multiline,omitempty"`
Rules []SeverityRule `yaml:"rules,omitempty" toml:"rules,multiline,omitempty"`
}
type SeverityRule ¶
type SimpleFormat ¶
type SimpleFormat struct {
Path *string `yaml:"path,omitempty" toml:"path,multiline,omitempty"`
}
type SlogLintSettings ¶
type SlogLintSettings struct {
NoMixedArgs *bool `yaml:"no-mixed-args,omitempty" toml:"no-mixed-args,multiline,omitempty"`
KVOnly *bool `yaml:"kv-only,omitempty" toml:"kv-only,multiline,omitempty"`
AttrOnly *bool `yaml:"attr-only,omitempty" toml:"attr-only,multiline,omitempty"`
NoGlobal *string `yaml:"no-global,omitempty" toml:"no-global,multiline,omitempty"`
Context *string `yaml:"context,omitempty" toml:"context,multiline,omitempty"`
StaticMsg *bool `yaml:"static-msg,omitempty" toml:"static-msg,multiline,omitempty"`
MsgStyle *string `yaml:"msg-style,omitempty" toml:"msg-style,multiline,omitempty"`
NoRawKeys *bool `yaml:"no-raw-keys,omitempty" toml:"no-raw-keys,multiline,omitempty"`
KeyNamingCase *string `yaml:"key-naming-case,omitempty" toml:"key-naming-case,multiline,omitempty"`
ForbiddenKeys []string `yaml:"forbidden-keys,omitempty" toml:"forbidden-keys,multiline,omitempty"`
ArgsOnSepLines *bool `yaml:"args-on-sep-lines,omitempty" toml:"args-on-sep-lines,multiline,omitempty"`
}
type SpancheckSettings ¶
type SpancheckSettings struct {
Checks []string `yaml:"checks,omitempty" toml:"checks,multiline,omitempty"`
IgnoreCheckSignatures []string `yaml:"ignore-check-signatures,omitempty" toml:"ignore-check-signatures,multiline,omitempty"`
ExtraStartSpanSignatures []string `yaml:"extra-start-span-signatures,omitempty" toml:"extra-start-span-signatures,multiline,omitempty"`
}
type StaticCheckSettings ¶
type StaticCheckSettings struct {
Checks []string `yaml:"checks,omitempty" toml:"checks,multiline,omitempty"`
Initialisms []string `yaml:"initialisms,omitempty" toml:"initialisms,multiline,omitempty"`
DotImportWhitelist []string `yaml:"dot-import-whitelist,omitempty" toml:"dot-import-whitelist,multiline,omitempty"`
HTTPStatusCodeWhitelist []string `yaml:"http-status-code-whitelist,omitempty" toml:"http-status-code-whitelist,multiline,omitempty"`
}
type Tab ¶
type Tab struct {
SimpleFormat `yaml:",inline"`
PrintLinterName *bool `yaml:"print-linter-name,omitempty" toml:"print-linter-name,multiline,omitempty"`
Colors *bool `yaml:"colors,omitempty" toml:"colors,multiline,omitempty"`
}
type TagAlignSettings ¶
type TagAlignSettings struct {
Align *bool `yaml:"align,omitempty" toml:"align,multiline,omitempty"`
Sort *bool `yaml:"sort,omitempty" toml:"sort,multiline,omitempty"`
Order []string `yaml:"order,omitempty" toml:"order,multiline,omitempty"`
Strict *bool `yaml:"strict,omitempty" toml:"strict,multiline,omitempty"`
}
type TagliatelleBase ¶
type TagliatelleBase struct {
Rules map[string]string `yaml:"rules,omitempty" toml:"rules,multiline,omitempty"`
ExtendedRules map[string]TagliatelleExtendedRule `yaml:"extended-rules,omitempty" toml:"extended-rules,multiline,omitempty"`
UseFieldName *bool `yaml:"use-field-name,omitempty" toml:"use-field-name,multiline,omitempty"`
IgnoredFields []string `yaml:"ignored-fields,omitempty" toml:"ignored-fields,multiline,omitempty"`
}
type TagliatelleCase ¶
type TagliatelleCase struct {
TagliatelleBase `yaml:",inline"`
Overrides []TagliatelleOverrides `yaml:"overrides,omitempty" toml:"overrides,multiline,omitempty"`
}
type TagliatelleExtendedRule ¶
type TagliatelleExtendedRule struct {
Case *string `yaml:"case,omitempty" toml:"case,multiline,omitempty"`
ExtraInitialisms *bool `yaml:"extra-initialisms,omitempty" toml:"extra-initialisms,multiline,omitempty"`
InitialismOverrides map[string]bool `yaml:"initialism-overrides,omitempty" toml:"initialism-overrides,multiline,omitempty"`
}
type TagliatelleOverrides ¶
type TagliatelleOverrides struct {
TagliatelleBase `yaml:",inline"`
Package *string `yaml:"pkg,omitempty" toml:"pkg,multiline,omitempty"`
Ignore *bool `yaml:"ignore,omitempty" toml:"ignore,multiline,omitempty"`
}
type TagliatelleSettings ¶
type TagliatelleSettings struct {
Case TagliatelleCase `yaml:"case,omitempty" toml:"case,multiline,omitempty"`
}
type TestifylintBoolCompare ¶
type TestifylintBoolCompare struct {
IgnoreCustomTypes *bool `yaml:"ignore-custom-types,omitempty" toml:"ignore-custom-types,multiline,omitempty"`
}
type TestifylintExpectedActual ¶
type TestifylintExpectedActual struct {
ExpVarPattern *string `yaml:"pattern,omitempty" toml:"pattern,multiline,omitempty"`
}
type TestifylintFormatter ¶
type TestifylintFormatter struct {
CheckFormatString *bool `yaml:"check-format-string,omitempty" toml:"check-format-string,multiline,omitempty"`
RequireFFuncs *bool `yaml:"require-f-funcs,omitempty" toml:"require-f-funcs,multiline,omitempty"`
RequireStringMsg *bool `yaml:"require-string-msg,omitempty" toml:"require-string-msg,multiline,omitempty"`
}
type TestifylintGoRequire ¶
type TestifylintGoRequire struct {
IgnoreHTTPHandlers *bool `yaml:"ignore-http-handlers,omitempty" toml:"ignore-http-handlers,multiline,omitempty"`
}
type TestifylintRequireError ¶
type TestifylintRequireError struct {
FnPattern *string `yaml:"fn-pattern,omitempty" toml:"fn-pattern,multiline,omitempty"`
}
type TestifylintSettings ¶
type TestifylintSettings struct {
EnableAll *bool `yaml:"enable-all,omitempty" toml:"enable-all,multiline,omitempty"`
DisableAll *bool `yaml:"disable-all,omitempty" toml:"disable-all,multiline,omitempty"`
EnabledCheckers []string `yaml:"enable,omitempty" toml:"enable,multiline,omitempty"`
DisabledCheckers []string `yaml:"disable,omitempty" toml:"disable,multiline,omitempty"`
BoolCompare TestifylintBoolCompare `yaml:"bool-compare,omitempty" toml:"bool-compare,multiline,omitempty"`
ExpectedActual TestifylintExpectedActual `yaml:"expected-actual,omitempty" toml:"expected-actual,multiline,omitempty"`
Formatter TestifylintFormatter `yaml:"formatter,omitempty" toml:"formatter,multiline,omitempty"`
GoRequire TestifylintGoRequire `yaml:"go-require,omitempty" toml:"go-require,multiline,omitempty"`
RequireError TestifylintRequireError `yaml:"require-error,omitempty" toml:"require-error,multiline,omitempty"`
SuiteExtraAssertCall TestifylintSuiteExtraAssertCall `yaml:"suite-extra-assert-call,omitempty" toml:"suite-extra-assert-call,multiline,omitempty"`
}
type TestifylintSuiteExtraAssertCall ¶
type TestifylintSuiteExtraAssertCall struct {
Mode *string `yaml:"mode,omitempty" toml:"mode,multiline,omitempty"`
}
type TestpackageSettings ¶
type Text ¶
type Text struct {
SimpleFormat `yaml:",inline"`
PrintLinterName *bool `yaml:"print-linter-name,omitempty" toml:"print-linter-name,multiline,omitempty"`
PrintIssuedLine *bool `yaml:"print-issued-lines,omitempty" toml:"print-issued-lines,multiline,omitempty"`
Colors *bool `yaml:"colors,omitempty" toml:"colors,multiline,omitempty"`
}
type ThelperOptions ¶
type ThelperSettings ¶
type ThelperSettings struct {
Test ThelperOptions `yaml:"test,omitempty" toml:"test,multiline,omitempty"`
Fuzz ThelperOptions `yaml:"fuzz,omitempty" toml:"fuzz,multiline,omitempty"`
Benchmark ThelperOptions `yaml:"benchmark,omitempty" toml:"benchmark,multiline,omitempty"`
TB ThelperOptions `yaml:"tb,omitempty" toml:"tb,multiline,omitempty"`
}
type UnconvertSettings ¶
type UnparamSettings ¶
type UnparamSettings struct {
CheckExported *bool `yaml:"check-exported,omitempty" toml:"check-exported,multiline,omitempty"`
}
type UnusedSettings ¶
type UnusedSettings struct {
FieldWritesAreUses *bool `yaml:"field-writes-are-uses,omitempty" toml:"field-writes-are-uses,multiline,omitempty"`
PostStatementsAreReads *bool `yaml:"post-statements-are-reads,omitempty" toml:"post-statements-are-reads,multiline,omitempty"`
ExportedFieldsAreUsed *bool `yaml:"exported-fields-are-used,omitempty" toml:"exported-fields-are-used,multiline,omitempty"`
ParametersAreUsed *bool `yaml:"parameters-are-used,omitempty" toml:"parameters-are-used,multiline,omitempty"`
LocalVariablesAreUsed *bool `yaml:"local-variables-are-used,omitempty" toml:"local-variables-are-used,multiline,omitempty"`
GeneratedIsUsed *bool `yaml:"generated-is-used,omitempty" toml:"generated-is-used,multiline,omitempty"`
}
type UseStdlibVarsSettings ¶
type UseStdlibVarsSettings struct {
HTTPMethod *bool `yaml:"http-method,omitempty" toml:"http-method,multiline,omitempty"`
HTTPStatusCode *bool `yaml:"http-status-code,omitempty" toml:"http-status-code,multiline,omitempty"`
TimeWeekday *bool `yaml:"time-weekday,omitempty" toml:"time-weekday,multiline,omitempty"`
TimeMonth *bool `yaml:"time-month,omitempty" toml:"time-month,multiline,omitempty"`
TimeLayout *bool `yaml:"time-layout,omitempty" toml:"time-layout,multiline,omitempty"`
CryptoHash *bool `yaml:"crypto-hash,omitempty" toml:"crypto-hash,multiline,omitempty"`
DefaultRPCPath *bool `yaml:"default-rpc-path,omitempty" toml:"default-rpc-path,multiline,omitempty"`
SQLIsolationLevel *bool `yaml:"sql-isolation-level,omitempty" toml:"sql-isolation-level,multiline,omitempty"`
TLSSignatureScheme *bool `yaml:"tls-signature-scheme,omitempty" toml:"tls-signature-scheme,multiline,omitempty"`
ConstantKind *bool `yaml:"constant-kind,omitempty" toml:"constant-kind,multiline,omitempty"`
TimeDateMonth *bool `yaml:"time-date-month,omitempty" toml:"time-date-month,multiline,omitempty"`
}
type UseTestingSettings ¶
type UseTestingSettings struct {
ContextBackground *bool `yaml:"context-background,omitempty" toml:"context-background,multiline,omitempty"`
ContextTodo *bool `yaml:"context-todo,omitempty" toml:"context-todo,multiline,omitempty"`
OSChdir *bool `yaml:"os-chdir,omitempty" toml:"os-chdir,multiline,omitempty"`
OSMkdirTemp *bool `yaml:"os-mkdir-temp,omitempty" toml:"os-mkdir-temp,multiline,omitempty"`
OSSetenv *bool `yaml:"os-setenv,omitempty" toml:"os-setenv,multiline,omitempty"`
OSTempDir *bool `yaml:"os-temp-dir,omitempty" toml:"os-temp-dir,multiline,omitempty"`
OSCreateTemp *bool `yaml:"os-create-temp,omitempty" toml:"os-create-temp,multiline,omitempty"`
}
type VarnamelenSettings ¶
type VarnamelenSettings struct {
MaxDistance *int `yaml:"max-distance,omitempty" toml:"max-distance,multiline,omitempty"`
MinNameLength *int `yaml:"min-name-length,omitempty" toml:"min-name-length,multiline,omitempty"`
CheckReceiver *bool `yaml:"check-receiver,omitempty" toml:"check-receiver,multiline,omitempty"`
CheckReturn *bool `yaml:"check-return,omitempty" toml:"check-return,multiline,omitempty"`
CheckTypeParam *bool `yaml:"check-type-param,omitempty" toml:"check-type-param,multiline,omitempty"`
IgnoreNames []string `yaml:"ignore-names,omitempty" toml:"ignore-names,multiline,omitempty"`
IgnoreTypeAssertOk *bool `yaml:"ignore-type-assert-ok,omitempty" toml:"ignore-type-assert-ok,multiline,omitempty"`
IgnoreMapIndexOk *bool `yaml:"ignore-map-index-ok,omitempty" toml:"ignore-map-index-ok,multiline,omitempty"`
IgnoreChanRecvOk *bool `yaml:"ignore-chan-recv-ok,omitempty" toml:"ignore-chan-recv-ok,multiline,omitempty"`
IgnoreDecls []string `yaml:"ignore-decls,omitempty" toml:"ignore-decls,multiline,omitempty"`
}
type WSLv4Settings ¶ added in v2.2.0
type WSLv4Settings struct {
StrictAppend *bool `yaml:"strict-append,omitempty" toml:"strict-append,multiline,omitempty"`
AllowAssignAndCallCuddle *bool `yaml:"allow-assign-and-call,omitempty" toml:"allow-assign-and-call,multiline,omitempty"`
AllowAssignAndAnythingCuddle *bool `yaml:"allow-assign-and-anything,omitempty" toml:"allow-assign-and-anything,multiline,omitempty"`
AllowMultiLineAssignCuddle *bool `yaml:"allow-multiline-assign,omitempty" toml:"allow-multiline-assign,multiline,omitempty"`
ForceCaseTrailingWhitespaceLimit *int `yaml:"force-case-trailing-whitespace,omitempty" toml:"force-case-trailing-whitespace,multiline,omitempty"`
AllowTrailingComment *bool `yaml:"allow-trailing-comment,omitempty" toml:"allow-trailing-comment,multiline,omitempty"`
AllowSeparatedLeadingComment *bool `yaml:"allow-separated-leading-comment,omitempty" toml:"allow-separated-leading-comment,multiline,omitempty"`
AllowCuddleDeclaration *bool `yaml:"allow-cuddle-declarations,omitempty" toml:"allow-cuddle-declarations,multiline,omitempty"`
AllowCuddleWithCalls []string `yaml:"allow-cuddle-with-calls,omitempty" toml:"allow-cuddle-with-calls,multiline,omitempty"`
AllowCuddleWithRHS []string `yaml:"allow-cuddle-with-rhs,omitempty" toml:"allow-cuddle-with-rhs,multiline,omitempty"`
AllowCuddleUsedInBlock *bool `yaml:"allow-cuddle-used-in-block,omitempty" toml:"allow-cuddle-used-in-block,multiline,omitempty"`
ForceCuddleErrCheckAndAssign *bool `yaml:"force-err-cuddling,omitempty" toml:"force-err-cuddling,multiline,omitempty"`
ErrorVariableNames []string `yaml:"error-variable-names,omitempty" toml:"error-variable-names,multiline,omitempty"`
ForceExclusiveShortDeclarations *bool `yaml:"force-short-decl-cuddling,omitempty" toml:"force-short-decl-cuddling,multiline,omitempty"`
}
type WSLv5Settings ¶ added in v2.2.0
type WSLv5Settings struct {
AllowFirstInBlock *bool `yaml:"allow-first-in-block,omitempty" toml:"allow-first-in-block,multiline,omitempty"`
AllowWholeBlock *bool `yaml:"allow-whole-block,omitempty" toml:"allow-whole-block,multiline,omitempty"`
BranchMaxLines *int `yaml:"branch-max-lines,omitempty" toml:"branch-max-lines,multiline,omitempty"`
CaseMaxLines *int `yaml:"case-max-lines,omitempty" toml:"case-max-lines,multiline,omitempty"`
Default *string `yaml:"default,omitempty" toml:"default,multiline,omitempty"`
Enable []string `yaml:"enable,omitempty" toml:"enable,multiline,omitempty"`
Disable []string `yaml:"disable,omitempty" toml:"disable,multiline,omitempty"`
}
type WhitespaceSettings ¶
type WrapcheckSettings ¶
type WrapcheckSettings struct {
ExtraIgnoreSigs []string `yaml:"extra-ignore-sigs,omitempty" toml:"extra-ignore-sigs,multiline,omitempty"`
IgnoreSigs []string `yaml:"ignore-sigs,omitempty" toml:"ignore-sigs,multiline,omitempty"`
IgnoreSigRegexps []string `yaml:"ignore-sig-regexps,omitempty" toml:"ignore-sig-regexps,multiline,omitempty"`
IgnorePackageGlobs []string `yaml:"ignore-package-globs,omitempty" toml:"ignore-package-globs,multiline,omitempty"`
IgnoreInterfaceRegexps []string `yaml:"ignore-interface-regexps,omitempty" toml:"ignore-interface-regexps,multiline,omitempty"`
ReportInternalErrors *bool `yaml:"report-internal-errors,omitempty" toml:"report-internal-errors,multiline,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.