-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
chore(linters): Enable import-alias-naming
and redundant-import-alias
rules for revive
#15836
chore(linters): Enable import-alias-naming
and redundant-import-alias
rules for revive
#15836
Conversation
…ias` rules for revive
…ias` rules for revive
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.
Thanks a lot for this epic effort @zak-pawel! I do have some comments in the code, but in general there are two things
- How about fixing variable naming instead of using an alias e.g. for
github.com/influxdata/telegraf/config
? The variable can easily be namedcfg
without issues... - I love your consistent aliases for internal things like
common_tls
,internal_whatever
etc. but you deviate forinflux_serializer
,influx_parser
orjsonparser
. How about also following the pattern and useserializers_influx
,parsers_influx
andparsers_json
instead?
plugins/outputs/azure_data_explorer/azure_data_explorer_test.go
Outdated
Show resolved
Hide resolved
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 improves overall code readability, but still have some suggestions:
plugins/outputs/azure_data_explorer/azure_data_explorer_test.go
Outdated
Show resolved
Hide resolved
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.
Thanks @zak-pawel! Just two more comments and I think we are good...
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.
Epic! Thanks a lot @zak-pawel for your work!
…as-naming_redundant-import-alias # Conflicts: # plugins/outputs/exec/exec_test.go # plugins/outputs/prometheus_client/v1/collector.go # plugins/outputs/prometheus_client/v2/collector.go
…as-naming_redundant-import-alias # Conflicts: # plugins/inputs/logstash/logstash.go
…as-naming_redundant-import-alias # Conflicts: # plugins/inputs/aerospike/aerospike.go # plugins/inputs/gnmi/gnmi.go
…as-naming_redundant-import-alias # Conflicts: # plugins/outputs/cloudwatch_logs/cloudwatch_logs_test.go
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
…ias` rules for revive (influxdata#15836)
Summary
Checklist
Related issues
resolves #15820
resolves #15825