diff --git a/formatter/formatter_test.go b/formatter/formatter_test.go index d6b6c93..298aaa2 100644 --- a/formatter/formatter_test.go +++ b/formatter/formatter_test.go @@ -61,11 +61,13 @@ Warnings: }, { formatter: &formatter.JSON{}, - want: `[{"Severity":"warning","Failure":"test failure","RuleName":"rule","Category":"cat","Position":{"Start":{"Filename":"test.go","Offset":0,"Line":2,"Column":5},"End":{"Filename":"test.go","Offset":0,"Line":2,"Column":10}},"Confidence":0,"ReplacementLine":""}]`, //nolint:revive // line-length-limit + //revive:disable-next-line // line-length-limit + want: `[{"Severity":"warning","Failure":"test failure","RuleName":"rule","Category":"cat","Position":{"Start":{"Filename":"test.go","Offset":0,"Line":2,"Column":5},"End":{"Filename":"test.go","Offset":0,"Line":2,"Column":10}},"Confidence":0,"ReplacementLine":""}]`, //nolint:revive // line-length-limit }, { formatter: &formatter.NDJSON{}, - want: `{"Severity":"warning","Failure":"test failure","RuleName":"rule","Category":"cat","Position":{"Start":{"Filename":"test.go","Offset":0,"Line":2,"Column":5},"End":{"Filename":"test.go","Offset":0,"Line":2,"Column":10}},"Confidence":0,"ReplacementLine":""}`, //nolint:revive // line-length-limit + //revive:disable-next-line // line-length-limit + want: `{"Severity":"warning","Failure":"test failure","RuleName":"rule","Category":"cat","Position":{"Start":{"Filename":"test.go","Offset":0,"Line":2,"Column":5},"End":{"Filename":"test.go","Offset":0,"Line":2,"Column":10}},"Confidence":0,"ReplacementLine":""}`, //nolint:revive // line-length-limit }, { formatter: &formatter.Plain{}, diff --git a/go.mod b/go.mod index 9f968d7..eec37be 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/fatih/color v1.18.0 github.com/fatih/structtag v1.2.0 github.com/hashicorp/go-version v1.7.0 - github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 + github.com/mgechev/dots v1.0.0 github.com/spf13/afero v1.14.0 golang.org/x/mod v0.24.0 golang.org/x/sync v0.14.0 diff --git a/go.sum b/go.sum index 5513451..318bd95 100644 --- a/go.sum +++ b/go.sum @@ -14,8 +14,8 @@ github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHP github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517 h1:zpIH83+oKzcpryru8ceC6BxnoG8TBrhgAvRg8obzup0= -github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= +github.com/mgechev/dots v1.0.0 h1:o+4OJ3OjWzgQHGJXKfJ8rbH4dqDugu5BiEy84nxg0k4= +github.com/mgechev/dots v1.0.0/go.mod h1:rykuMydC9t3wfkM+ccYH3U3ss03vZGg6h3hmOznXLH0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/spf13/afero v1.14.0 h1:9tH6MapGnn/j0eb0yIXiLjERO8RB6xIVZRDCX7PtqWA= diff --git a/rule/error_strings_test.go b/rule/error_strings_test.go index 3308e21..83e625c 100644 --- a/rule/error_strings_test.go +++ b/rule/error_strings_test.go @@ -34,7 +34,8 @@ func TestErrorStringsRule_Configure(t *testing.T) { { name: "Invalid function", arguments: lint.Arguments{"errors."}, - wantErr: errors.New("found invalid custom function: errors."), //nolint:revive // error-strings: it's ok for tests + //revive:disable-next-line // error-strings + wantErr: errors.New("found invalid custom function: errors."), //nolint:revive // error-strings: it's ok for tests }, { name: "Invalid custom function",