Add blank-line check (condition 4) to the comment subcommand#3
Merged
Conversation
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 で報告済みのマーカー重複群ではこの検査をスキップする。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.