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

element count >= 0 is always true #295

Open
lue-bird opened this issue Mar 6, 2024 · 1 comment
Open

element count >= 0 is always true #295

lue-bird opened this issue Mar 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lue-bird
Copy link
Collaborator

lue-bird commented Mar 6, 2024

-- neg0 is 0 or less, neg is -1 or less

List.length dict >= neg0 --> True
Array.length dict >= neg0 --> True
Set.size dict >= neg0 --> True
Dict.size dict >= neg0 --> True

-- and in the same way
elementCount < neg0 --> False
elementCount == neg --> False
elementCount /= neg --> True

(found in the FSharpLint default config)

@lue-bird lue-bird added the enhancement New feature or request label Mar 6, 2024
@jfmengels
Copy link
Owner

Sounds good to me 👍

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

2 participants