Codewerk
sqlfluff
Runs sqlfluff 4.5.0 (MIT) from a hash-pinned private Python environment in an isolated child process without network: layout (LT), capitalisation (CP), aliasing (AL), ambiguity (AM), convention (CV), references (RF) and structure (ST) rules for ansi, postgres, mysql, bigquery, snowflake, tsql, sqlite, duckdb and 20 more dialects. Parse failures are returned as PRS entries with position. Templating is disabled (raw templater): Jinja/dbt placeholders are not rendered. With fix=true the SQL.
POST https://code.halowerk.com/v1/sqlfluffInputs
| Field | Type | Required | Description |
|---|---|---|---|
| sql | string | Yes | SQL text (max. 256 KB). |
| dialect | string | Yes | SQL dialect. |
| rules | array | No | Only these rule codes or groups (e.g. ["LT01", "CP01"] or ["layout"]); default all. |
| exclude_rules | array | No | Rule codes or groups to skip. |
| max_line_length | integer | No | Line length limit for LT05 (default 80). |
| fix | boolean | No | Also return the SQL fixed by sqlfluff. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"sql",
"dialect"
],
"properties": {
"sql": {
"type": "string",
"minLength": 1,
"maxLength": 262144,
"description": "SQL text (max. 256 KB)."
},
"dialect": {
"type": "string",
"enum": [
"ansi",
"athena",
"bigquery",
"clickhouse",
"databricks",
"db2",
"doris",
"duckdb",
"exasol",
"flink",
"greenplum",
"hive",
"impala",
"mariadb",
"materialize",
"mysql",
"oracle",
"postgres",
"redshift",
"snowflake",
"soql",
"sparksql",
"sqlite",
"starrocks",
"teradata",
"trino",
"tsql",
"vertica"
],
"description": "SQL dialect."
},
"rules": {
"type": "array",
"maxItems": 80,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[A-Za-z]{2}[0-9]{2}$|^[a-z]+$"
},
"description": "Only these rule codes or groups (e.g. [\"LT01\", \"CP01\"] or [\"layout\"]); default all."
},
"exclude_rules": {
"type": "array",
"maxItems": 80,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[A-Za-z]{2}[0-9]{2}$|^[a-z]+$"
},
"description": "Rule codes or groups to skip."
},
"max_line_length": {
"type": "integer",
"minimum": 40,
"maximum": 400,
"description": "Line length limit for LT05 (default 80)."
},
"fix": {
"type": "boolean",
"default": false,
"description": "Also return the SQL fixed by sqlfluff."
}
}
}Published input example
{
"sql": "select a,b from orders where id=1",
"dialect": "postgres",
"fix": true
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea