-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
limit
and offset
helper funcitons have incorrect arglists
#359
Comments
I've always said Eastwood is wrong to use
|
What do you mean by "non-DSL arguments"? It's not clear from the documentation that it accepts both 1 or 2 arguments and ignores everything beyond 2nd argument, or even 1st, if it is not a map. (honey.sql.helpers/offset 10)
{:offset 10}
(honey.sql.helpers/offset 10 20)
{:offset 10}
(honey.sql.helpers/offset {} 10 20)
{:offset 10} I find this as confusing for humans as it confuses eastwood. |
@seancorfield bump |
I honestly don't know what to say in response to this given the examples in the docs that show the helpers having the DSL data structure threaded through them. |
If eastwood were using real argument list, it would have never noticed any issues if this function was incorrectly used with 3 or more arguments, for example. It does a good job of using Moreover, clojure docstrings become insufficient as user have to go to examples and other documentation to figure out how this has to be used. This may be referred to as unnecessary mental load. Having something like |
@seancorfield bump |
I've already said "I honestly don't know what to say in response to this". Stop being rude and entitled. |
I'm sorry, I didn't mean to be rude or entitled. I pinged you in case you've missed my last comment. |
I want to be crystal clear that this issue is closed and I will have no further discussion on this. Eastwood has had issues with arglists dating back around seven years at this point and has generally dealt with it by accruing custom configuration to deal with third-party libraries that provide You can see an earlier discussion about Eastwood and HoneySQL here: #334 And this Eastwood issue intended to address some of Eastwood's limitations in this area: jonase/eastwood#399 Since Eastwood has configuration for HoneySQL, you should go raise an issue on Eastwood's repo to have that existing configuration updated to include all the helpers that have been added since that configuration was last updated. As noted (repeatedly, in many places, over many years), I think Eastwood is wrong to use No need to respond here. |
limit
andoffset
arglists are missing the first map argument being currently defined as:This causes eastwood linter errors in our project for otherwise valid code:
The text was updated successfully, but these errors were encountered: