Page MenuHomePhabricator

[lint] Add HLint-based Haskell linter
ClosedPublic

Authored by thoughtpolice on Aug 13 2014, 2:17 AM.
Referenced Files
Unknown Object (File)
Fri, Dec 13, 7:44 PM
Unknown Object (File)
Thu, Dec 12, 10:19 PM
Unknown Object (File)
Sat, Dec 7, 10:13 AM
Unknown Object (File)
Thu, Dec 5, 5:03 PM
Unknown Object (File)
Wed, Dec 4, 12:28 AM
Unknown Object (File)
Wed, Nov 27, 4:48 AM
Unknown Object (File)
Nov 22 2024, 11:40 PM
Unknown Object (File)
Nov 19 2024, 2:53 PM

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
Branch
hlint
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 2197
Build 2201: [Placeholder Plan] Wait for 30 Seconds

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
73

Unused?

84–85

woah

84–89

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
73

Yep.

84–85

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

84–89

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).