Git Product home page Git Product logo

Comments (9)

aaronsteers avatar aaronsteers commented on August 23, 2024

@UnityIndigo - Do you have a .sqlfluff or similar config file in your repo? This config format allows you to specify the applicable rules to include or ignore, and also allows you to customize a few rule-specific settings.

For example, we are using the following config in our project:

{root}/.sqlfluff:

[sqlfluff]
verbose = 0
nocolor = False
dialect = snowflake
templater = jinja
rules = L001,L002,L003,L004,L005,L006,L007,L008,L009,L010,L011,L012,L013,L014,L015,L016,L017,L018,L019,L020,L021,L022,L023,L024,L025,L026,L027,L028,L029,L030
exclude_rules = None
output_line_length = 90

[sqlfluff:indentation]
indented_joins = False

[sqlfluff:rules]
tab_space_size = 4
max_line_length = 92
indent_unit = space

# keyword capitalization
[sqlfluff:rules:L010]
capitalisation_policy = upper

# non-keyword capitalization
[sqlfluff:rules:L014]
capitalisation_policy = lower

[sqlfluff:rules:L019]
comma_style = trailing

[sqlfluff:rules:L028]
single_table_references = consistent

# function capitalization
[sqlfluff:rules:L030]
capitalisation_policy = upper

from vscode-sqlfluff.

dorzey avatar dorzey commented on August 23, 2024

Maybe I'm misunderstanding, but I thought @UnityIndigo was suggesting something equivalent to sqlfluff fix –ignore parsing.

from vscode-sqlfluff.

jleacox avatar jleacox commented on August 23, 2024

Maybe I'm misunderstanding, but I thought @UnityIndigo was suggesting something equivalent to sqlfluff fix –ignore parsing.

Yes, wasn't there just an issue raised where the .sqlfluff config file wasn't being used in VSCode?

from vscode-sqlfluff.

aaronsteers avatar aaronsteers commented on August 23, 2024

Yes, sorry. Looks like I may have misread. Since I'm not familiar with the -ignore parsing option, I think I read this as excluding specific rules. I don't know if that option is able to be specified in the config file, and if not, please disregard my last. 😄

from vscode-sqlfluff.

aaronsteers avatar aaronsteers commented on August 23, 2024

Yes, wasn't there just an issue raised where the .sqlfluff config file wasn't being used in VSCode?

That was me, and after further testing, I was not able to reproduce the error. We just closed that issue.

from vscode-sqlfluff.

dorzey avatar dorzey commented on August 23, 2024

Should we always -ignore parsing? Or make it a configurable option?

from vscode-sqlfluff.

aaronsteers avatar aaronsteers commented on August 23, 2024

Personally, I think configurable is nice. In theory, at least, I like seeing the red squiglies when I've got some obvious parsing error. I'll have to read up on this more though to see if I'm not missing something.

from vscode-sqlfluff.

dorzey avatar dorzey commented on August 23, 2024

@UnityIndigo in the interim you should be able to add the following to your .sqlfluff config file

[sqlfluff]
ignore=parsing

from vscode-sqlfluff.

RobertOstermann avatar RobertOstermann commented on August 23, 2024

You can now ignore parsing errors in v0.0.6

from vscode-sqlfluff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.