@@ -184,8 +184,8 @@ func toIssue(pass *analysis.Pass, object *jsonObject) goanalysis.Issue {
184184// This function mimics the GetConfig function of revive.
185185// This allows to get default values and right types.
186186// https://github.com/golangci/golangci-lint/issues/1745
187- // https://github.com/mgechev/revive/blob/v1.4 .0/config/config.go#L218
188- // https://github.com/mgechev/revive/blob/v1.4 .0/config/config.go#L170-L176
187+ // https://github.com/mgechev/revive/blob/v1.5 .0/config/config.go#L220
188+ // https://github.com/mgechev/revive/blob/v1.5 .0/config/config.go#L172-L178
189189func getConfig (cfg * config.ReviveSettings ) (* lint.Config , error ) {
190190 conf := defaultConfig ()
191191
@@ -284,7 +284,7 @@ func safeTomlSlice(r []any) []any {
284284}
285285
286286// This element is not exported by revive, so we need copy the code.
287- // Extracted from https://github.com/mgechev/revive/blob/v1.4 .0/config/config.go#L16
287+ // Extracted from https://github.com/mgechev/revive/blob/v1.5 .0/config/config.go#L16
288288var defaultRules = []lint.Rule {
289289 & rule.VarDeclarationsRule {},
290290 & rule.PackageCommentsRule {},
@@ -368,12 +368,14 @@ var allRules = append([]lint.Rule{
368368 & rule.EnforceSliceStyleRule {},
369369 & rule.MaxControlNestingRule {},
370370 & rule.CommentsDensityRule {},
371+ & rule.FileLengthLimitRule {},
372+ & rule.FilenameFormatRule {},
371373}, defaultRules ... )
372374
373375const defaultConfidence = 0.8
374376
375377// This element is not exported by revive, so we need copy the code.
376- // Extracted from https://github.com/mgechev/revive/blob/v1.4 .0/config/config.go#L181
378+ // Extracted from https://github.com/mgechev/revive/blob/v1.5 .0/config/config.go#L183
377379func normalizeConfig (cfg * lint.Config ) {
378380 // NOTE(ldez): this custom section for golangci-lint should be kept.
379381 // ---
@@ -419,7 +421,7 @@ func normalizeConfig(cfg *lint.Config) {
419421}
420422
421423// This element is not exported by revive, so we need copy the code.
422- // Extracted from https://github.com/mgechev/revive/blob/v1.4 .0/config/config.go#L181
424+ // Extracted from https://github.com/mgechev/revive/blob/v1.5 .0/config/config.go#L252
423425func defaultConfig () * lint.Config {
424426 defaultConfig := lint.Config {
425427 Confidence : defaultConfidence ,
0 commit comments