Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--exclude-rules L009 always included in sqllint command, even when corresponding config is empty #172

Open
ruben-cit opened this issue Mar 6, 2025 · 0 comments

Comments

@ruben-cit
Copy link

Hey folks,

Noticed something that odd that seems to driving some bizarre behaviour downstream for me. It seems like the command that the linter is running always includes the --exclude-rules L009 even when entry in settings.json is empty.

settings.json

{
    "sqlfluff.config": "${workspaceFolder}/.sqlfluff",
    "sqlfluff.dialect": "bigquery",
    "sqlfluff.env.environmentVariables": [
      {
        "key": "example_key",
        "value": "example_value"
      }
    ],
    // "sqlfluff.env.customDotEnvFiles": [
    //   "${workspaceFolder}/example.env"
    // ],
    "sqlfluff.env.useDotEnvFile": true,
    // "sqlfluff.excludeRules": [],
    "sqlfluff.executablePath": "sqlfluff",
    "sqlfluff.ignoreLocalConfig": false,
    "sqlfluff.ignoreParsing": false,
    "sqlfluff.rules": [],
    "sqlfluff.suppressNotifications": false,
    "sqlfluff.workingDirectory": "",
    /* Linter */
    "sqlfluff.linter.arguments": ["-vv"],
    // "sqlfluff.linter.run": "onType",
    "sqlfluff.linter.diagnosticSeverity": "error",
    "sqlfluff.linter.diagnosticSeverityByRule": [
      {
        "rule": "L010",
        "severity": "warning"
      }
    ],
    "sqlfluff.linter.lintEntireProject": true,
    /* Formatter */
    "sqlfluff.format.arguments": ["--FIX-EVEN-UNPARSABLE"],
    "sqlfluff.format.enabled": true,

    "sqlfluff.linter.run": "onSave",
    "sqlfluff.experimental.format.executeInTerminal": true,
    "editor.formatOnSave": false,

}

Logged sqlint command that the parse is running (per the Output tab):

sqlfluff lint -vv --format json --config /workspaces/data-team/.sqlfluff --dialect bigquery --exclude-rules L009 dbt/models/infra/agg_app_versions.sql

Is this intended behaviour or is this something that we could look to fix?

Extension version: 3.3.1
sqlflluff version: 3.3.1

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

No branches or pull requests

1 participant