Tighten comment-stacked-dashes: flag 2+ lines, not just 3+ - #9
Conversation
The 2-line allowance was being used to smuggle in longer -- comments by splitting them across just-under-the-limit runs. Only a single -- line is now permitted; anything longer must use /* */ or an explicit sql-lint:disable exception.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Claude finished @jnasbyupgrade's task in 2m 9s —— View job Claude's Review
Verdict: Looks good. This is a small, well-scoped change and the implementation, fixtures, and docs are all consistent with each other. Logic check ( Fixture check:
README: the prose and bad/good examples were updated in lockstep with the code and fixtures — no stale "3 or more" references left anywhere else in the repo (checked via grep across Minor/no-action nit: the finding message text ("$n consecutive -- comment lines...") still reads fine for Note: I wasn't able to execute No bugs or regressions found. Nothing blocking. |
Postgres-Extensions/linter#9 tightens comment-stacked-dashes to flag 2+ consecutive -- lines (previously 3+). Bumps b40aaf70 -> e4fab69e.
Postgres-Extensions/linter#9 tightens comment-stacked-dashes to flag 2+ consecutive -- lines (previously 3+). Bumps 97c89b92 -> e4fab69e.
Postgres-Extensions/linter#9 tightens comment-stacked-dashes to flag 2+ consecutive -- lines (previously 3+). Bumps b8632c2a -> e4fab69e.
Postgres-Extensions/linter#9 tightens comment-stacked-dashes to flag 2+ consecutive -- lines (previously 3+). Bumps b40aaf70 -> e4fab69e.
Postgres-Extensions/linter#9 tightens comment-stacked-dashes to flag 2+ consecutive -- lines (previously 3+). Bumps b8632c2a -> e4fab69e.
Summary
comment-stacked-dashesrule previously allowed up to 2 consecutive--line-comments before requiring a/* */block; that gap was being used to smuggle multi-line commentary in as back-to-back 2-line runs.--line is now permitted on its own; anything with 2+ consecutive lines must use/* */or carry an explicitsql-lint:disable comment-stacked-dashesexception.Test plan
perl sql/test/01-fixtures.tpasses (updatedcomment-stacked-dashesfixtures)perl sql/test/02-scanner.tpasses