Skip to content

Bump .vendor/linter: tighten comment-stacked-dashes to 2+ lines - #43

Merged
jnasbyupgrade merged 2 commits into
masterfrom
bump-linter-comment-stacked-dashes
Aug 12, 2026
Merged

Bump .vendor/linter: tighten comment-stacked-dashes to 2+ lines#43
jnasbyupgrade merged 2 commits into
masterfrom
bump-linter-comment-stacked-dashes

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps the .vendor/linter submodule to pick up Postgres-Extensions/linter#9: comment-stacked-dashes now flags 2+ consecutive -- lines (previously 3+); only a single -- line is allowed before a /* */ block is required.
  • The tighter rule flagged existing 2-line -- comments in this repo; converted those to /* */ blocks in a follow-up commit. Pure formatting change — no code semantics altered, and any sql-lint:disable-block directives among them keep working (suppression matching is against raw line text, not comment state).

Test plan

  • make lint passes cleanly with the bumped submodule and the comment fixes

Postgres-Extensions/linter#9 tightens comment-stacked-dashes to flag 2+
consecutive -- lines (previously 3+). Bumps 97c89b92 -> e4fab69e.
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 391e40ad-9ae4-422f-8593-6c100c792936

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The bumped linter now flags 2+ consecutive -- lines (previously 3+).
Rewriting the existing offenders as /* */ blocks is a pure formatting
change; disable-block directives keep working since suppression is
matched against raw line text regardless of comment state.
@jnasbyupgrade
jnasbyupgrade merged commit 941eb42 into master Aug 12, 2026
15 of 16 checks passed
@jnasbyupgrade
jnasbyupgrade deleted the bump-linter-comment-stacked-dashes branch August 12, 2026 21:43
jnasbyupgrade added a commit to jnasbyupgrade/test_factory that referenced this pull request Aug 12, 2026
Master's own Postgres-Extensions#43 further tightened the vendored linter's
comment-stacked-dashes rule (2+ consecutive "--" lines now must be a
block comment, down from 3+), which itself was needed to fix two
pre-existing 2-line comments elsewhere. That change conflicted with this
branch's own restructured test/install/load.sql, which had duplicated a
similar 2-line comment into two places (fresh mode's own "Captured
before..." note, and its "Everything from here on..." note) -- both now
also need to be block comments under the new threshold. Fixed all three
occurrences the linter flagged after resolving.

Also caught and fixed my own mistake while resolving this: initially
checked out the *previous* .vendor/linter submodule commit instead of
the new one master's Postgres-Extensions#43 actually points at (misread the diff
direction) -- confirmed against the real upstream linter repo's history
before fixing it, which is what actually surfaced these findings in the
first place.

Verified locally on PG12 and PG17: fresh and update modes both pass,
make lint is clean, and sql/test_factory--0.5.0.sql remains untouched.
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