From d47cb1b00240cd66c90c4582bd55b7f32a259abf Mon Sep 17 00:00:00 2001 From: Steven Troxler Date: Wed, 17 Mar 2021 10:38:04 -0700 Subject: [PATCH] Ignore the no-"-1" linter error for duckling Summary: By default, Facebook Haskell code has a lint error banning -1s, because at one point it was used as a default value in some API handlers and it's better to use Option + Nothing for this use case. But in Duckling - particularly in the Time module - it's quite common that we actually want to work with -1 as a meaningful integer value, involving some kind of offset. Reviewed By: chessai Differential Revision: D27118984 fbshipit-source-id: 5fe2200e8005a20855d7fdd3a8eb2ad33291edc8 --- .hlint.yaml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .hlint.yaml diff --git a/.hlint.yaml b/.hlint.yaml new file mode 100644 index 00000000..9fc28519 --- /dev/null +++ b/.hlint.yaml @@ -0,0 +1,3 @@ +- ignore: { + name: "Do not use -1" + }