Tech Debt: Standardize Naming Conventions in Go Code #13128
Labels
proposal
Proposes new design or functionality.
provider
Pertains to the provider itself, rather than any interaction with AWS.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Community Note
Description
Several naming styles having cropped up in the AWS provider. I propose that conventions be adopted and that any non-conforming code be aligned.
Go Conventions
At this point, the AWS provider cannot adhere to standard Go conventions without starting a losing tech debt war. However, when choosing between equally plausible options, weight can be given to the Go conventions. The Go conventions are simple:
func queryResult()
instead offunc query_result()
)func getIP()
andfunc ipAddress()
instead offunc getIp()
andfunc iPAddress()
)Proposal
To minimize work to bring everything in conformity based on all the function and constant names in the AWS provider, some initial steps to bring the Terraform AWS provider to convention consistency:
The text was updated successfully, but these errors were encountered: