open-code-review icon indicating copy to clipboard operation
open-code-review copied to clipboard

feat(allowlist): add Haskell support

Open felix-windsor opened this issue 4 months ago • 1 comments

Description

Add first-class Haskell support to OpenCodeReview as a focused subtask of #470.

Scope

  • Recognize .hs and .lhs source files.
  • Exclude conventional Haskell test paths: /test//*.hs and **/*Spec.hs.
  • Add regression coverage for allowed extensions and excluded paths.
  • Add a Haskell-specific review rule and register its path mappings.

Review focus

The rule will cover Haskell-specific correctness and maintainability risks, including partial functions, lazy evaluation and space leaks, exception and resource safety, concurrency primitives, unsafe or metaprogramming features, and typeclass/API design.

Acceptance criteria

  • [ ] .hs and .lhs are recognized case-insensitively.
  • [ ] Conventional test files are excluded.
  • [ ] Haskell files select the Haskell review rule.
  • [ ] make test passes.
  • [ ] make check passes.

Parent: #470

felix-windsor avatar Aug 01 '26 14:08 felix-windsor

I read the contribution guide and traced the existing extension list, exclusion patterns, tests, and ordered system-rule mappings. I was thinking of implementing this as one focused change: add case-insensitive .hs and .lhs support, exclude **/test/**/*.hs and **/*Spec.hs, add the matching allowlist tests, and add a small Haskell rule document plus path mapping without changing resolver behavior. Before I start, could you confirm that this rule scope is what you want and assign the issue if it is still available? I will keep the PR limited to the Haskell path and run make test, make check, and the focused Go tests.

tomatotomata avatar Aug 02 '26 14:08 tomatotomata