Versions in this module Expand all Collapse all v0 v0.0.2 Aug 8, 2022 Changes in this version + const OutFormatCheckstyle + const OutFormatCodeClimate + const OutFormatColoredLineNumber + const OutFormatGithubActions + const OutFormatHTML + const OutFormatJSON + const OutFormatJunitXML + const OutFormatLineNumber + const OutFormatTab + var DefaultExcludePatterns = []ExcludePattern + var OutFormats = []string + func DetectGoVersion() string + func GetDefaultExcludePatternsStrings() []string + func IsGreaterThanOrEqualGo118(v string) bool + type AsasalintSettings struct + Exclude []string + IgnoreTest bool + UseBuiltinExclusions bool + type BaseRule struct + Linters []string + Path string + Source string + Text string + func (b BaseRule) Validate(minConditionsCount int) error + type BiDiChkSettings struct + FirstStrongIsolate bool + LeftToRightEmbedding bool + LeftToRightIsolate bool + LeftToRightOverride bool + PopDirectionalFormatting bool + PopDirectionalIsolate bool + RightToLeftEmbedding bool + RightToLeftIsolate bool + RightToLeftOverride bool + type Config struct + InternalCmdTest bool + InternalTest bool + Issues Issues + Linters Linters + LintersSettings LintersSettings + Output Output + Run Run + Severity Severity + Version Version + func NewDefault() *Config + func (c *Config) GetConfigDir() string + type CustomLinterSettings struct + Description string + OriginalURL string + Path string + type Cyclop struct + MaxComplexity int + PackageAverage float64 + SkipTests bool + type DecorderSettings struct + DecOrder []string + DisableDecNumCheck bool + DisableDecOrderCheck bool + DisableInitFuncFirstCheck bool + type DepGuardSettings struct + AdditionalGuards []DepGuardSettings + IgnoreFileRules []string + IncludeGoRoot bool + ListType string + Packages []string + PackagesWithErrorMessage map[string]string + type DogsledSettings struct + MaxBlankIdentifiers int + type DuplSettings struct + Threshold int + type ErrChkJSONSettings struct + CheckErrorFreeEncoding bool + ReportNoExported bool + type ErrcheckSettings struct + CheckAssignToBlank bool + CheckTypeAssertions bool + DisableDefaultExclusions bool + Exclude string + ExcludeFunctions []string + Ignore string + type ErrorLintSettings struct + Asserts bool + Comparison bool + Errorf bool + type ExcludePattern struct + ID string + Linter string + Pattern string + Why string + func GetExcludePatterns(include []string) []ExcludePattern + type ExcludeRule struct + func (e ExcludeRule) Validate() error + type ExhaustiveSettings struct + CheckGenerated bool + DefaultSignifiesExhaustive bool + IgnoreEnumMembers string + PackageScopeOnly bool + type ExhaustiveStructSettings struct + StructPatterns []string + type ExhaustructSettings struct + Exclude []string + Include []string + type FileReader struct + func NewFileReader(toCfg, commandLineCfg *Config, log logutils.Log) *FileReader + func (r *FileReader) Read() error + type ForbidigoSettings struct + ExcludeGodocExamples bool + Forbid []string + type FunlenSettings struct + Lines int + Statements int + type GciSettings struct + CustomOrder bool + LocalPrefixes string + Sections []string + SkipGenerated bool + type GoConstSettings struct + IgnoreCalls bool + IgnoreTests bool + MatchWithConstants bool + MinOccurrencesCount int + MinStringLen int + NumberMax int + NumberMin int + ParseNumbers bool + type GoCycloSettings struct + MinComplexity int + type GoFmtSettings struct + Simplify bool + type GoHeaderSettings struct + Template string + TemplatePath string + Values map[string]map[string]string + type GoImportsSettings struct + LocalPrefixes string + type GoLintSettings struct + MinConfidence float64 + type GoMndSettings struct + Checks []string + IgnoredFiles []string + IgnoredFunctions []string + IgnoredNumbers []string + Settings map[string]map[string]interface{} + type GoModDirectivesSettings struct + ExcludeForbidden bool + ReplaceAllowList []string + ReplaceLocal bool + RetractAllowNoExplanation bool + type GoModGuardSettings struct + Allowed struct{ ... } + Blocked struct{ ... } + type GoSecSettings struct + Concurrency int + Confidence string + Config map[string]interface{} + ExcludeGenerated bool + Excludes []string + Includes []string + Severity string + type GocognitSettings struct + MinComplexity int + type GocriticCheckSettings map[string]interface + type GocriticSettings struct + DisabledChecks []string + DisabledTags []string + EnabledChecks []string + EnabledTags []string + SettingsPerCheck map[string]GocriticCheckSettings + func (s *GocriticSettings) GetLowercasedParams() map[string]GocriticCheckSettings + func (s *GocriticSettings) InferEnabledChecks(log logutils.Log) + func (s *GocriticSettings) IsCheckEnabled(name string) bool + func (s *GocriticSettings) Validate(log logutils.Log) error + type GodotSettings struct + Capital bool + CheckAll bool + Exclude []string + Period bool + Scope string + type GodoxSettings struct + Keywords []string + type GofumptSettings struct + ExtraRules bool + LangVersion string + ModulePath string + type GovetSettings struct + CheckShadowing bool + Disable []string + DisableAll bool + Enable []string + EnableAll bool + Go string + Settings map[string]map[string]interface{} + func (cfg *GovetSettings) Validate() error + type GrouperSettings struct + ConstRequireGrouping bool + ConstRequireSingleConst bool + ImportRequireGrouping bool + ImportRequireSingleImport bool + TypeRequireGrouping bool + TypeRequireSingleType bool + VarRequireGrouping bool + VarRequireSingleVar bool + type IfshortSettings struct + MaxDeclChars int + MaxDeclLines int + type ImportAsAlias struct + Alias string + Pkg string + type ImportAsSettings struct + Alias []ImportAsAlias + NoExtraAliases bool + NoUnaliased bool + type IreturnSettings struct + Allow []string + Reject []string + type Issues struct + Diff bool + DiffFromRevision string + DiffPatchFilePath string + ExcludeCaseSensitive bool + ExcludePatterns []string + ExcludeRules []ExcludeRule + IncludeDefaultExcludes []string + MaxIssuesPerLinter int + MaxSameIssues int + NeedFix bool + UseDefaultExcludes bool + WholeFiles bool + type Linters struct + Disable []string + DisableAll bool + Enable []string + EnableAll bool + Fast bool + Presets []string + type LintersSettings struct + Asasalint AsasalintSettings + BiDiChk BiDiChkSettings + Custom map[string]CustomLinterSettings + Cyclop Cyclop + Decorder DecorderSettings + Depguard DepGuardSettings + Dogsled DogsledSettings + Dupl DuplSettings + ErrChkJSON ErrChkJSONSettings + Errcheck ErrcheckSettings + ErrorLint ErrorLintSettings + Exhaustive ExhaustiveSettings + ExhaustiveStruct ExhaustiveStructSettings + Exhaustruct ExhaustructSettings + Forbidigo ForbidigoSettings + Funlen FunlenSettings + Gci GciSettings + GoModDirectives GoModDirectivesSettings + Gocognit GocognitSettings + Goconst GoConstSettings + Gocritic GocriticSettings + Gocyclo GoCycloSettings + Godot GodotSettings + Godox GodoxSettings + Gofmt GoFmtSettings + Gofumpt GofumptSettings + Goheader GoHeaderSettings + Goimports GoImportsSettings + Golint GoLintSettings + Gomnd GoMndSettings + Gomodguard GoModGuardSettings + Gosec GoSecSettings + Gosimple StaticCheckSettings + Govet GovetSettings + Grouper GrouperSettings + Ifshort IfshortSettings + ImportAs ImportAsSettings + Ireturn IreturnSettings + Lll LllSettings + MaintIdx MaintIdxSettings + Makezero MakezeroSettings + Maligned MalignedSettings + Misspell MisspellSettings + Nakedret NakedretSettings + Nestif NestifSettings + NilNil NilNilSettings + Nlreturn NlreturnSettings + NoLintLint NoLintLintSettings + NoNamedReturns NoNamedReturnsSettings + ParallelTest ParallelTestSettings + Prealloc PreallocSettings + Predeclared PredeclaredSettings + Promlinter PromlinterSettings + Revive ReviveSettings + RowsErrCheck RowsErrCheckSettings + Staticcheck StaticCheckSettings + Structcheck StructCheckSettings + Stylecheck StaticCheckSettings + Tagliatelle TagliatelleSettings + Tenv TenvSettings + Testpackage TestpackageSettings + Thelper ThelperSettings + Unparam UnparamSettings + Unused StaticCheckSettings + UseStdlibVars UseStdlibVarsSettings + Varcheck VarCheckSettings + Varnamelen VarnamelenSettings + WSL WSLSettings + Whitespace WhitespaceSettings + Wrapcheck WrapcheckSettings + type LllSettings struct + LineLength int + TabWidth int + type MaintIdxSettings struct + Under int + type MakezeroSettings struct + Always bool + type MalignedSettings struct + SuggestNewOrder bool + type MisspellSettings struct + IgnoreWords []string + Locale string + type NakedretSettings struct + MaxFuncLines int + type NestifSettings struct + MinComplexity int + type NilNilSettings struct + CheckedTypes []string + type NlreturnSettings struct + BlockSize int + type NoLintLintSettings struct + AllowNoExplanation []string + AllowUnused bool + RequireExplanation bool + RequireSpecific bool + type NoNamedReturnsSettings struct + ReportErrorInDefer bool + type Output struct + Color string + Format string + PathPrefix string + PrintIssuedLine bool + PrintLinterName bool + PrintWelcomeMessage bool + SortResults bool + UniqByLine bool + type ParallelTestSettings struct + IgnoreMissing bool + type PreallocSettings struct + ForLoops bool + RangeLoops bool + Simple bool + type PredeclaredSettings struct + Ignore string + Qualified bool + type PromlinterSettings struct + DisabledLinters []string + Strict bool + type ReviveSettings struct + Confidence float64 + Directives []struct{ ... } + EnableAllRules bool + ErrorCode int + IgnoreGeneratedHeader bool + MaxOpenFiles int + Rules []struct{ ... } + Severity string + WarningCode int + type RowsErrCheckSettings struct + Packages []string + type Run struct + AllowParallelRunners bool + AllowSerialRunners bool + AnalyzeTests bool + Args []string + BuildTags []string + CPUProfilePath string + Concurrency int + Config string + Deadline time.Duration + ExitCodeIfIssuesFound int + Go string + IsVerbose bool + MemProfilePath string + ModulesDownloadMode string + NoConfig bool + PrintResourcesUsage bool + PrintVersion bool + Silent bool + SkipDirs []string + SkipFiles []string + Timeout time.Duration + TracePath string + UseDefaultSkipDirs bool + type Severity struct + CaseSensitive bool + Default string + Rules []SeverityRule + type SeverityRule struct + Severity string + func (s *SeverityRule) Validate() error + type StaticCheckSettings struct + Checks []string + DotImportWhitelist []string + GoVersion string + HTTPStatusCodeWhitelist []string + Initialisms []string + func (s *StaticCheckSettings) HasConfiguration() bool + type StructCheckSettings struct + CheckExportedFields bool + type TagliatelleSettings struct + Case struct{ ... } + type TenvSettings struct + All bool + type TestpackageSettings struct + AllowPackages []string + SkipRegexp string + type ThelperOptions struct + Begin *bool + First *bool + Name *bool + type ThelperSettings struct + Benchmark ThelperOptions + Fuzz ThelperOptions + TB ThelperOptions + Test ThelperOptions + type UnparamSettings struct + Algo string + CheckExported bool + type UseStdlibVarsSettings struct + CryptoHash bool + DefaultRPCPathFlag bool + HTTPMethod bool + HTTPStatusCode bool + TimeLayout bool + TimeMonth bool + TimeWeekday bool + type VarCheckSettings struct + CheckExportedFields bool + type VarnamelenSettings struct + CheckReceiver bool + CheckReturn bool + CheckTypeParam bool + IgnoreChanRecvOk bool + IgnoreDecls []string + IgnoreMapIndexOk bool + IgnoreNames []string + IgnoreTypeAssertOk bool + MaxDistance int + MinNameLength int + type Version struct + Format string + type WSLSettings struct + AllowAssignAndAnythingCuddle bool + AllowAssignAndCallCuddle bool + AllowCuddleDeclaration bool + AllowMultiLineAssignCuddle bool + AllowSeparatedLeadingComment bool + AllowTrailingComment bool + ForceCaseTrailingWhitespaceLimit int + ForceCuddleErrCheckAndAssign bool + ForceExclusiveShortDeclarations bool + StrictAppend bool + type WhitespaceSettings struct + MultiFunc bool + MultiIf bool + type WrapcheckSettings struct + IgnoreInterfaceRegexps []string + IgnorePackageGlobs []string + IgnoreSigRegexps []string + IgnoreSigs []string