From 07ca251fb9223018d640850e743b6795f7718577 Mon Sep 17 00:00:00 2001 From: jnasbyupgrade Date: Wed, 12 Aug 2026 16:27:50 -0500 Subject: [PATCH 1/2] Bump .vendor/linter to pick up tightened comment-stacked-dashes rule Postgres-Extensions/linter#9 tightens comment-stacked-dashes to flag 2+ consecutive -- lines (previously 3+). Bumps 97c89b92 -> e4fab69e. --- .vendor/linter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vendor/linter b/.vendor/linter index 97c89b9..e4fab69 160000 --- a/.vendor/linter +++ b/.vendor/linter @@ -1 +1 @@ -Subproject commit 97c89b92cfa072be4661ffb6a7dc96f03e6d2bf8 +Subproject commit e4fab69e7f6256682f5b6b80e7a8f2423a0c39a9 From 14ac71780a71aa773711175bd8a1b28fd870dd65 Mon Sep 17 00:00:00 2001 From: jnasbyupgrade Date: Wed, 12 Aug 2026 16:37:48 -0500 Subject: [PATCH 2/2] Convert 2-line -- comments to /* */ blocks for comment-stacked-dashes 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. --- sql/test_factory.sql | 6 ++++-- test/install/load.sql | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sql/test_factory.sql b/sql/test_factory.sql index 38e2698..605c70b 100644 --- a/sql/test_factory.sql +++ b/sql/test_factory.sql @@ -246,8 +246,10 @@ BEGIN END $body$; ---select (tf.get('moo','moo')::moo).*; --- Restore the caller's role saved at the top of this script. +/* + * select (tf.get('moo','moo')::moo).*; + * Restore the caller's role saved at the top of this script. + */ DO $body$ BEGIN EXECUTE 'SET ROLE ' || pg_catalog.quote_ident(pg_catalog.current_setting('test_factory.original_role')); diff --git a/test/install/load.sql b/test/install/load.sql index 1ad130c..7ee0c8b 100644 --- a/test/install/load.sql +++ b/test/install/load.sql @@ -199,8 +199,10 @@ SELECT :'load_mode' = 'existing' AS is_existing CREATE SCHEMA IF NOT EXISTS tap; CREATE EXTENSION IF NOT EXISTS pgtap SCHEMA tap; - -- Captured before either branch below runs CREATE EXTENSION, so the - -- role-restore proof after \endif covers whichever one actually ran. + /* + * Captured before either branch below runs CREATE EXTENSION, so the + * role-restore proof after \endif covers whichever one actually ran. + */ SELECT current_user AS role_before_install \gset