Automattic / Automattic/harper

Python comments are marked for "Sentence does not start with a capital letter"

Open
#1,985 3 comments 0 reactions 0 assignees View on GitHub
bug harper-core linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

**What got flagged?**
Python commands like ``# this is where you would insert your policy`` are often flagged for _This sentence does not start with a capital letter_. Here the word "this" is flagged.

**Why is this incorrect?**
It is not a full sentence. Therefore I want to start with a lowercase letter.

**Example of correct usage:**
`` # this is a comment``

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported warning with the Python comment example in the issue, then trace the capitalization rule that flags the word "this". Done means lowercase Python comments no longer trigger this warning while ordinary sentences still receive the capitalization check.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.