Files
flipper/scripts/stricter
Simon Marlow e296095d36 Enable for Haskell files
Summary:
Splitting out from D32204499 as requested

skip-linter-coverage-verification

Reviewed By: zertosh

Differential Revision: D32279416

fbshipit-source-id: 203efc7eaebf4cfde42a9809a68157167f7d2324
2021-11-10 22:15:59 -08:00
..
2019-08-30 03:32:47 -07:00
2019-08-29 09:19:01 -07:00
2019-08-29 09:23:57 -07:00
2021-11-10 22:15:59 -08:00

stricter

A tool for enforcing a strictly decreasing number of TypeScript strict mode violations. All this tool does is run tsc --strict on the current and the previous (Mercurial) revision, compares the error count. If there are more errors than before, a positive exit code is raised and the regressions printed.

Usage

Requires stack to be installed.

./stricter.hs

Bear in mind that this is hard-coded to Mercurial, so you'll need to make some changes first if you want to use this in git repositories.

Building

To build the native binaries, run

stack build

The stricter.lnx64 binary in the parent directory is the result of building this on a Linux machine so we can run this more quickly in our CI environment.