Skip to content

Commit fb37d4c

Browse files
build(deps): bump github.com/mgechev/revive from 1.3.9 to 1.4.0 (#5035)
Co-authored-by: Fernandez Ludovic <[email protected]>
1 parent a45560d commit fb37d4c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ require (
7575
github.com/maratori/testpackage v1.1.1
7676
github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26
7777
github.com/mattn/go-colorable v0.1.13
78-
github.com/mgechev/revive v1.3.9
78+
github.com/mgechev/revive v1.4.0
7979
github.com/mitchellh/go-homedir v1.1.0
8080
github.com/mitchellh/go-ps v1.0.0
8181
github.com/moricho/tparallel v0.3.2

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)