Comments (2)
@Jonathan-MW You can change the setting sqlfluff.linter.diagnosticSeverity
to adjust the default to warning
instead of error
. Then change the sqlfluff.linter.diagnosticSeverityByRule
to alter the parsing errors to be red error
problems instead of warnings.
"sqlfluff.linter.diagnosticSeverity": "warning",
"sqlfluff.linter.diagnosticSeverityByRule": [
{
"rule": "PRS",
"severity": "error"
}
],
from vscode-sqlfluff.
Thanks!
I also found that some extra linting rules need to be defined with severity: "error".
E.g. L038, as a comma after the last column definition in a select statement does throw an error for the sql engine I used (Databricks/spark sql). However Sqlfluff does not throw an "unparsable" error for this trailing comma (only the L038 violation), even though the sql dialect is set to "databricks" in the vscode settings ("sqlfluff.dialect": "databricks").
from vscode-sqlfluff.
Related Issues (20)
- Not specifying a SQL Dialect in extension settings leads to confusing error HOT 1
- Environment variables cannot be passed to extension
- VS code SQL editor marks problems but running SQLFluff via terminal doesn't detect problems
- vscode format on save errors due to future deprecation
- `sqlfluff 3.0` release breaks extension `sql` document formatter HOT 5
- OSError: [Errno 6] Device not configured: '/dev/tty' HOT 4
- No documentation or examples for how to override defaults for rules or rule groups HOT 2
- `Format Document` or `SQLFluff: Fix` overwrites file contents with sqlfluff logs HOT 4
- Can't find the sqlfluff.exe file after installation HOT 6
- [Feature] Show rule name in `Problems` tab HOT 2
- Unable to lint non `.sql` files HOT 1
- WSL - Executable not found HOT 2
- Extension doesn't respect warnings from sqlfluff output
- What is the syntax for adding rules? HOT 3
- Command 'Format Document With...' resulted in an error HOT 1
- Can config custom .sqlfluffignore file ?
- ERROR: Starting in sqlfluff version 0.7.0 the dbt templater is distributed as a separate python package. Please pip install sqlfluff-templater-dbt to use it. HOT 1
- Auto Detect SqlFlulf executable from Python Virtual Environment HOT 1
- "File path not found" when working on unsaved files HOT 1
- Issue with semvar comparison HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-sqlfluff.