-
Notifications
You must be signed in to change notification settings - Fork 642
suppress and fix lint errors by unused #754
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
Conversation
8ba0dab
to
c5672f8
Compare
Took a look at this PR and realised the
|
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.
This file was regenerated by running go generate ./hclsyntax/generate.go
and undoes changes made in 314d236.
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.
This file was regenerated by running go generate ./hclsyntax/generate.go
and undoes changes in 314d236.
The majority of unused declarations were one of 3 types: - Global constants or sentinel variables. These were untouched becuse they serve as documentation and may become useful in the future. - Variable declarations to assert a struct implements an interface. These are compile time safety nets and were also ountouched. - Runtime function - Unused fields in structs. These were removed to reduce overall since they serve no purpose and at best increase memory consumption and at worst make such structs more confusing to the reader. There was also an undocumented private function that was removed. It was straightforward and can be reimplemented if need be.
adding nolint directives to the generates files don't make sense if they get rewritten. Instead, the errors are being ignored through the golangci-lint config file.
7898dba
to
dbee716
Compare
The majority of unused declarations were one of these types:
_