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

Commit

Permalink
comment-format: whitelist //region comments (#4609)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Artene authored and adidahiya committed Apr 2, 2019
1 parent c98d916 commit 5dbb3bb
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 5dbb3bb

Please sign in to comment.