Page MenuHomePhabricator

[lint] Add HLint-based Haskell linter
ClosedPublic

Authored by thoughtpolice on Aug 13 2014, 2:17 AM.
Referenced Files
F15500006: D10250.id.diff
Sun, Apr 13, 3:47 PM
F15500005: D10250.id24676.diff
Sun, Apr 13, 3:47 PM
F15500004: D10250.id24675.diff
Sun, Apr 13, 3:46 PM
F15500001: D10250.id24665.diff
Sun, Apr 13, 3:46 PM
F15500000: D10250.id24664.diff
Sun, Apr 13, 3:46 PM
F15423940: D10250.id.diff
Sat, Mar 22, 7:34 PM
F15406393: D10250.diff
Tue, Mar 18, 12:29 PM
F15400375: D10250.id24676.diff
Mon, Mar 17, 11:18 AM

Details

Summary

This adds a lint engine for hlint, which is the standard and most general Haskell lint tool around these days.

Signed-off-by: Austin Seipp <aseipp@pobox.com>

Test Plan

Install hlint, and run arc unit.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

thoughtpolice retitled this revision from to [lint] Add HLint-based Haskell linter.
thoughtpolice updated this object.
thoughtpolice edited the test plan for this revision. (Show Details)
thoughtpolice edited edge metadata.

Fix unit tests thanks to Evan (too many "~" characters, lololol)

thoughtpolice edited the test plan for this revision. (Show Details)
thoughtpolice added a project: Arcanist.
epriestley edited edge metadata.

One minor thing -- since messages get shipped around, they should just be text.

src/lint/linter/ArcanistHLintLinter.php
74

Unused?

85–86

woah

85–90

These messages get uploaded to the web too, so you probably should avoid console formatting.

This revision now requires changes to proceed.Aug 13 2014, 2:40 AM
src/lint/linter/ArcanistHLintLinter.php
74

Yep.

85–86

I was rather surprised by this behavior too, believe it or not.

85–90

OK, I'll see what else I can cook up.

thoughtpolice edited edge metadata.
  • Remove console formatting from diff
  • Kill unused variable
epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 13 2014, 2:48 AM
epriestley updated this revision to Diff 24676.
epriestley added a subscriber: thoughtpolice_.

Closed by commit rARC4c0edd296e33 (authored by @thoughtpolice_, committed by @epriestley).