Inspectopedia
 
2024.3

Error string should not be capitalized or end with punctuation

Info
Code Style
New
Last modified: 03 December 2024

Reports format issues in error strings.

Example:

According to Error Strings at github.com/golang, error strings should not be capitalized or end with punctuation because they might appear among other context.

To fix the format, you can apply the Fix error string format quick-fix. After the quick-fix is applied, the error string will look like this: