Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

comment-format: whitelist //region comments #4609

Merged
merged 2 commits into from Apr 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/rules/commentFormatRule.ts
Expand Up @@ -180,8 +180,8 @@ function walk(ctx: Lint.WalkContext<Options>) {
return;
}
const commentText = fullText.slice(start, end);
// whitelist //#region and //#endregion and JetBrains IDEs' "//noinspection ..."
if (/^(?:#(?:end)?region|noinspection\s)/.test(commentText)) {
// whitelist //#region and //#endregion and JetBrains IDEs' "//noinspection ...", "//region", "//endregion"
if (/^(?:#?(?:end)?region|noinspection\s)/.test(commentText)) {
return;
}

Expand Down