Overhaul linting API

Open
#79 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
haskell
Domain
tooling

Research direction

Start from the linting API discussed in pull request #73, especially the HlintErrors and HlintSuggestions types. Read how the existing HLint and case-maybe checks are represented and used; the issue proposes generalizing those APIs for additional checkers. Done means the API supports linter errors and suggestions without tying them specifically to HLint.

Written by the indexing model from the issue text.

Description

And maybe a more general API overhaul would be in order (also given that further such dedicated checkers might get implemented). How about generalizing HlintErrors and HlintSuggestions to LinterErrors and LinterSuggestions, and henceforth considering hlint as just part of the "linter story", with "case-maybe" detection another part, and possibly furthers coming?

Originally posted by @jvoigtlaender in https://github.com/fmidue/haskell-template-task/pull/73#discussion_r4502883006

Dominant language
Haskell
Stars
0
Forks
1
Avg merge
16h 8m
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fmidue/haskell-template-task

All issues in fmidue/haskell-template-task

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.