@@ -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.3.7 /config/config.go#L217
188
- // https://github.com/mgechev/revive/blob/v1.3.7 /config/config.go#L169-L174
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
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.3.9 /config/config.go#L15
287
+ // Extracted from https://github.com/mgechev/revive/blob/v1.4.0 /config/config.go#L16
288
288
var defaultRules = []lint.Rule {
289
289
& rule.VarDeclarationsRule {},
290
290
& rule.PackageCommentsRule {},
@@ -373,7 +373,7 @@ var allRules = append([]lint.Rule{
373
373
const defaultConfidence = 0.8
374
374
375
375
// This element is not exported by revive, so we need copy the code.
376
- // Extracted from https://github.com/mgechev/revive/blob/v1.1.4 /config/config.go#L145
376
+ // Extracted from https://github.com/mgechev/revive/blob/v1.4.0 /config/config.go#L181
377
377
func normalizeConfig (cfg * lint.Config ) {
378
378
// NOTE(ldez): this custom section for golangci-lint should be kept.
379
379
// ---
@@ -419,7 +419,7 @@ func normalizeConfig(cfg *lint.Config) {
419
419
}
420
420
421
421
// This element is not exported by revive, so we need copy the code.
422
- // Extracted from https://github.com/mgechev/revive/blob/v1.1.4 /config/config.go#L214
422
+ // Extracted from https://github.com/mgechev/revive/blob/v1.4.0 /config/config.go#L181
423
423
func defaultConfig () * lint.Config {
424
424
defaultConfig := lint.Config {
425
425
Confidence : defaultConfidence ,
0 commit comments