Skip to content

Add blank-line check (condition 4) to the comment subcommand#3

Merged
shimbaco merged 1 commit into
mainfrom
koryluslint-comment-blank-line-1-1
Jun 4, 2026
Merged

Add blank-line check (condition 4) to the comment subcommand#3
shimbaco merged 1 commit into
mainfrom
koryluslint-comment-blank-line-1-1

Conversation

@shimbaco

@shimbaco shimbaco commented Jun 4, 2026

Copy link
Copy Markdown
Member

No description provided.

In -base mode, koryluslint comment now verifies the blank comment line
between the English block and the [Ja] marker: a multi-line English
block requires exactly one blank line right above the marker (4a),
while a one-line English comment must not have one (4b). To keep false
positives near zero, the check skips comment groups containing lines it
cannot classify as English, Japanese, or blank (separators, code
examples, URL-only lines) and groups with duplicate markers, which
condition 3 already reports.

[Ja] -base モードの koryluslint comment で、英語ブロックと [Ja] マーカーの
間の空行 (コメント記号のみの行) を検査するようにした。英語ブロックが
複数行のときはマーカー直前に空行が 1 行必要 (4a)、1 行のときは空行を
置いてはならない (4b)。誤検出をほぼゼロに保つため、英文・日本語・空行の
いずれにも分類できない行 (区切り線・コード例・URL のみの行) を含む
コメント群と、条件 3 で報告済みのマーカー重複群ではこの検査をスキップする。
@shimbaco shimbaco marked this pull request as ready for review June 4, 2026 17:42
@shimbaco shimbaco merged commit 751ed89 into main Jun 4, 2026
4 checks passed
@shimbaco shimbaco deleted the koryluslint-comment-blank-line-1-1 branch June 4, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant