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

Do you support custom rules ? #903

Open
Kiblyn11 opened this issue Oct 30, 2024 · 3 comments
Open

Do you support custom rules ? #903

Kiblyn11 opened this issue Oct 30, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Kiblyn11
Copy link

Do you support extending ruleset without rebuilding the binary ?
If not is it planned to do so ?

@gvozdvmozgu
Copy link
Collaborator

Are you looking to use some kind of scripting language to create rules?

@Kiblyn11
Copy link
Author

Kiblyn11 commented Oct 30, 2024

Well, looking at some rules already implemented it doesn't seem easy to do in a different language.
I'm not really fond of packaging another package like SQLfluff does either, I would be happy to be able to configure a directory in Sqruff config with some rules done with the app language, but I figure this isn't an option for Rust.

Unrelated but the missing rule I would like to implement is related to detect unlimited varchar and text columns in DDL. Maybe it is something that can be implemented as part of the core rules ?

@benfdking
Copy link
Collaborator

We haven't focused much on analyzing DDL statements, but I don't see why we wouldn't implement a generic rule like that. It seems like a fairly generic rule that people would use, "the ability to disallow certain types".

@benfdking benfdking added the enhancement New feature or request label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants