From f4f7245732cd7ae2f48b49c0a86f088322beb851 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 29 Aug 2019 09:16:54 -0700 Subject: [PATCH] Add README Summary: Per title. Reviewed By: danielbuechele Differential Revision: D17111990 fbshipit-source-id: f5a14b7f0ce544cec324b70b74eeed8d6efb42b0 --- scripts/stricter/README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 scripts/stricter/README.md diff --git a/scripts/stricter/README.md b/scripts/stricter/README.md new file mode 100644 index 000000000..086af8608 --- /dev/null +++ b/scripts/stricter/README.md @@ -0,0 +1,31 @@ +# 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](http://haskellstack.org/) 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.