Skip to content

Linter not warning on comments starting with an article #998

Description

@ext11n7

Problem

Some object comments start with an article ("A", "An", or "The"), which makes them unnecessarily verbose and inconsistent with technical writing best practices. For example:

The object that calculates sum.

[] +> my-sum

Starting with "The" adds no information. The comment should begin directly with the meaningful word.

Suggestion

Add a new lint comment-starts-with-article that reports a WARNING level defect when the first word of a comment is "A", "An", or "The" (case-insensitive).

Example of bad code

The main entry point.

[] +> app

Expected fix

Main entry point.

[] +> app

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersgood-titleThe title was checked and improved by ChatGPThelp wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions