-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore new lint error & update formatting #1292
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1292 +/- ##
=======================================
Coverage 90.57% 90.57%
=======================================
Files 118 118
Lines 9970 9970
=======================================
Hits 9030 9030
Misses 559 559
Partials 381 381
|
go.mod
Outdated
@@ -19,6 +19,7 @@ require ( | |||
github.com/zclconf/go-cty v1.10.0 | |||
golang.org/x/mod v0.5.1 | |||
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 | |||
golang.org/x/text v0.3.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need it? What license does it have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's needed to fix error reported by linter, as strings.Title
may not handle unicode correctly.
License is the same as for Go (https://cs.opensource.google/go/x/text/+/master:LICENSE, https://go.dev/LICENSE )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add ignore to that rule in those two places and not add more third-party dependencies? =)
I'd park this till more holistic go1.18 update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
it's really not a 3rd party, just "extension pack" from Golang devs...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nfx added ignore instead of using new library
Lint error on Go 1.18: ``` provider/generate_test.go:250:18: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (SA1019) qa/testing.go:458:17: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (SA1019) ```
Lint error on Go 1.18: ``` provider/generate_test.go:250:18: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (SA1019) qa/testing.go:458:17: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (SA1019) ```
Lint error on Go 1.18: