Repository navigation
Adding a new rule to flag old SQLAlchemy query syntax?
#25618
Closed
Wade-Roberts
started this conversation in
General
Replies: 1 comment
|
I don't think we're too eager to add more rules for third-party libraries at the moment. It's still in the very early stages, but we're starting to look into plugin support again (#283), which will probably be a better fit for this kind of rule. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm wondering if I were to look into creating a rule that will flag the legacy SQLalchemy syntax, if it would be accepted?
I think it would be helpful, as I imagine there is still a lot of code that still uses it, and this could make it easier to detect. Also, agents can use to find and refactor, and it could prevent them from accidentally patterning their queries off of the old patterns in the codebase.
LMK and I may be able to come up with a rule.
This is the object that is considered legacy: https://docs.sqlalchemy.org/en/20/orm/queryguide/query.html#sqlalchemy.orm.Query
All reactions