Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/safegres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"dependencies": {
"@inquirerer/utils": "^3.3.9",
"@pgpmjs/logger": "workspace:^",
"@pgsql/lint": "^18.1.0",
"@pgsql/traverse": "^18.7.1",
"@pgsql/types": "^18.0.0",
"confstash": "^0.1.0",
Expand Down
60 changes: 0 additions & 60 deletions packages/safegres/src/lint/engine.ts

This file was deleted.

26 changes: 15 additions & 11 deletions packages/safegres/src/lint/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
/**
* Source-level SQL/PL/pgSQL convention linter.
*
* Distinct from safegres's catalog checks: it reasons about the *text* of a
* function definition (fully-qualified references, dynamic SQL, forbidden
* directives) rather than live-database facts, and carries no `pg` dependency.
* safegres is its first consumer; the seam is drawn so it can become a
* standalone `@pgsql/lint` package unchanged.
* This module used to carry safegres's own copy of the linter. It now lives in
* the standalone `@pgsql/lint` package (source text in → findings out, no `pg`
* dependency); safegres consumes it as "the catalog adapter", feeding it the
* `pg_get_functiondef` text it already reads. This file is a thin re-export so
* the rest of safegres keeps importing from `../lint` unchanged.
*/

export type { LintOptions } from './engine';
export { lintDefinition } from './engine';
export { parseUnit } from './parse-unit';
export { LINT_RULES, LINT_RULES_BY_CODE, LINT_RULES_BY_ID } from './rules';
export { Suppressions } from './suppressions';
export type {
DynamicSqlSite,
LintOptions,
LintProblem,
LintResult,
LintRule,
Expand All @@ -23,4 +19,12 @@ export type {
SqlFragment,
SuppressedProblem,
SuppressionScope
} from './types';
} from '@pgsql/lint';
export {
LINT_RULES,
LINT_RULES_BY_CODE,
LINT_RULES_BY_ID,
lintDefinition,
parseUnit,
Suppressions
} from '@pgsql/lint';
183 changes: 0 additions & 183 deletions packages/safegres/src/lint/parse-unit.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/safegres/src/lint/rules/index.ts

This file was deleted.

29 changes: 0 additions & 29 deletions packages/safegres/src/lint/rules/no-dynamic-sql.ts

This file was deleted.

Loading
Loading