@@ -184,8 +184,8 @@ func toIssue(pass *analysis.Pass, object *jsonObject) goanalysis.Issue {
184
184
// This function mimics the GetConfig function of revive.
185
185
// This allows to get default values and right types.
186
186
// 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
189
189
func getConfig (cfg * config.ReviveSettings ) (* lint.Config , error ) {
190
190
conf := defaultConfig ()
191
191
@@ -284,7 +284,7 @@ func safeTomlSlice(r []any) []any {
284
284
}
285
285
286
286
// 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
288
288
var defaultRules = []lint.Rule {
289
289
& rule.VarDeclarationsRule {},
290
290
& rule.PackageCommentsRule {},
@@ -368,12 +368,14 @@ var allRules = append([]lint.Rule{
368
368
& rule.EnforceSliceStyleRule {},
369
369
& rule.MaxControlNestingRule {},
370
370
& rule.CommentsDensityRule {},
371
+ & rule.FileLengthLimitRule {},
372
+ & rule.FilenameFormatRule {},
371
373
}, defaultRules ... )
372
374
373
375
const defaultConfidence = 0.8
374
376
375
377
// 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
377
379
func normalizeConfig (cfg * lint.Config ) {
378
380
// NOTE(ldez): this custom section for golangci-lint should be kept.
379
381
// ---
@@ -419,7 +421,7 @@ func normalizeConfig(cfg *lint.Config) {
419
421
}
420
422
421
423
// 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
423
425
func defaultConfig () * lint.Config {
424
426
defaultConfig := lint.Config {
425
427
Confidence : defaultConfidence ,
0 commit comments