Go
Missing trailing comma before a newline in a composite literal
Error
Code Style
New
Last modified: 03 December 2024Reports a missing trailing comma before a newline in composite literals, function call arguments, and function parameter lists.
Example:
func f(f int) (
int,
bool // missing a trailing comma
){
println(1, 2 // missing a trailing comma
)
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
GoMissingTrailingComma
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Go, 243.23131 |
Thanks for your feedback!
Was this page helpful?