'length' used to compare list size with the constant
Open
analysis :alembic:
inspection
nice to have :nail_care:
- Dominant language
- Haskell
- Stars
- 597
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
Something like this `length xs > 5` can be rewritten to handle infinite lists. This can be a separate inspection, or improved suggestion to the existing Infinite length inspection, if we can support such extensible inspections somehow.
Contributor guide
Research direction
Start by reviewing the existing Infinite length inspection and how inspections are extended. Determine whether comparisons such as `length xs > 5` should use a separate inspection or an extensible version of the existing one. Done means the chosen inspection recognizes constant-size comparisons and handles infinite lists safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100