Skip to content

Improve error-strings rule to detect acronyms and proper nouns #1264

Closed
@alexandear

Description

@alexandear

Is your feature request related to a problem? Please describe.

According to this Go wiki, error strings should not be capitalized unless they begin with proper nouns or acronyms. Currently, the error-strings rule cannot determine if the first word is an acronym or a proper noun. It only decreases the confidence from 0.8 to 0.6 if the first character is uppercase.

Describe the solution you'd like

Update the lintErrorString function to correctly identify acronyms and proper nouns in most common cases.

Additional context

Examples of error strings that should be ignored by error-strings:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions