Skip to content

Commit 4c67fd1

Browse files
committed
chore: update implementation
1 parent 63145dc commit 4c67fd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/golinters/revive/revive.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.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
189189
func 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.3.9/config/config.go#L15
287+
// Extracted from https://github.com/mgechev/revive/blob/v1.4.0/config/config.go#L16
288288
var defaultRules = []lint.Rule{
289289
&rule.VarDeclarationsRule{},
290290
&rule.PackageCommentsRule{},
@@ -373,7 +373,7 @@ var allRules = append([]lint.Rule{
373373
const defaultConfidence = 0.8
374374

375375
// 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
377377
func normalizeConfig(cfg *lint.Config) {
378378
// NOTE(ldez): this custom section for golangci-lint should be kept.
379379
// ---
@@ -419,7 +419,7 @@ func normalizeConfig(cfg *lint.Config) {
419419
}
420420

421421
// 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
423423
func defaultConfig() *lint.Config {
424424
defaultConfig := lint.Config{
425425
Confidence: defaultConfidence,

0 commit comments

Comments
 (0)