HLint rules to automatically reduce duplication across modules?
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 1.6k
- Forks
- 210
- PR merge metrics
- No merged PRs in 30d
Description
Is the following possible:
- We identify a commonly occurring code-pattern in our project, and add a function for it in some Utils module.
- HLint looks at all the functions in this Utils modules, and uses them to build rules for "Reduce duplication"
If not automatically, can we manually run some script and feed it the Utils module to generate custom hlint rules, every once in a while?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading HLint's existing rule and suggestion-generation documentation or entry points, then examine how custom rules are currently defined. Determine whether Utils functions can be analyzed automatically or whether a separate script would be needed. Done means a concrete, maintainable approach is documented, with a scoped implementation plan or prototype.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100