fix lint issues

Summary: as title

Reviewed By: ChrisyShine

Differential Revision: D61572873

fbshipit-source-id: d23d2e1877d6adc2f2c889f0d33f037a7641abe2
This commit is contained in:
Julien Odent 2024-08-21 02:00:58 -07:00 committed by Facebook GitHub Bot
parent 8d6efd9f78
commit 99b8c69b08
13 changed files with 14 additions and 12 deletions

View File

@ -1,3 +1,3 @@
# Code of Conduct # Code of Conduct
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.facebook.com/pages/876921332402685/open-source-code-of-conduct) so that you can understand what actions will and will not be tolerated. Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.facebook.com/pages/876921332402685/open-source-code-of-conduct) so that you can understand what actions will and will not be tolerated.

View File

@ -50,7 +50,7 @@ allExamples = concat
[ "31-р" [ "31-р"
] ]
, examples (OrdinalData 48) , examples (OrdinalData 48)
[ [
"48-р" "48-р"
] ]
, examples (OrdinalData 99) , examples (OrdinalData 99)

View File

@ -27,7 +27,7 @@ rulePhoneNumber :: Rule
rulePhoneNumber = Rule rulePhoneNumber = Rule
{ name = "phone number" { name = "phone number"
, pattern = , pattern =
-- Arabic is a right to left langauge except for numbers, which are read -- Arabic is a right to left language except for numbers, which are read
-- left to right. This regex uses the unicode range for Arabic numbers -- left to right. This regex uses the unicode range for Arabic numbers
-- [\1632-\1641] to make the code easier to read and maintain. The unicode -- [\1632-\1641] to make the code easier to read and maintain. The unicode
-- sequence \1601\1585\1593\1610, corresponding to فرعي, is a popular -- sequence \1601\1585\1593\1610, corresponding to فرعي, is a popular

View File

@ -8,7 +8,7 @@
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedStrings #-}
module Duckling.Temperature.MN.Corpus module Duckling.Temperature.MN.Corpus
( corpus ( corpus
) where ) where
import Prelude import Prelude

View File

@ -1460,7 +1460,7 @@ rulePeriodicHolidays = mkRuleHolidays
, ( "Dia Internacional de l'Record del Tràfic d'Esclaus i la seva Abolició", "dia internacional de l'record del tr(à|a)fic d'esclaus i de la seva abolici(ó|o)", monthDay 8 23 ) , ( "Dia Internacional de l'Record del Tràfic d'Esclaus i la seva Abolició", "dia internacional de l'record del tr(à|a)fic d'esclaus i de la seva abolici(ó|o)", monthDay 8 23 )
, ( "Dia Internacional del Derecho a la Verdad en relación con Violaciones Graves de los Derechos Humanos y de la Dignidad de las Víctimas de las Naciones Unidas", "dia internacional del derecho a la verdad en relaci(ó|o)n con violaciones graves de los derechos humanos y de la dignidad de las v(í|i)ctimas de las naciones unidas", monthDay 3 24 ) , ( "Dia Internacional del Derecho a la Verdad en relación con Violaciones Graves de los Derechos Humanos y de la Dignidad de las Víctimas de las Naciones Unidas", "dia internacional del derecho a la verdad en relaci(ó|o)n con violaciones graves de los derechos humanos y de la dignidad de las v(í|i)ctimas de las naciones unidas", monthDay 3 24 )
, ( "Dia Internacional per a l'Eliminació Total de les Armes Nuclears", "dia internacional per a l'eliminaci(ó|o) total de les armes nuclears", monthDay 9 26 ) , ( "Dia Internacional per a l'Eliminació Total de les Armes Nuclears", "dia internacional per a l'eliminaci(ó|o) total de les armes nuclears", monthDay 9 26 )
, ( "Dia Internacional de les Nacions Unides a Suport de les Víctimes de la Tortura", "dia internacional de les Nacions Unides en suport de les v(í|i)ctimes de la tortura", monthDay 6 26 ) , ( "Dia Internacional de les Nacions Unides a Support de les Víctimes de la Tortura", "dia internacional de les Nacions Unides en support de les v(í|i)ctimes de la tortura", monthDay 6 26 )
, ( "Dia Internacional de la Beneficència", "dia internacional de la benefic(è|e)ncia", monthDay 9 5 ) , ( "Dia Internacional de la Beneficència", "dia internacional de la benefic(è|e)ncia", monthDay 9 5 )
, ( "Dia Internacional de Commemoració anual en memòria de les Víctimes de l'Holocaust", "dia internacional de commemoraci(ó|o) anual en mem(ò|o)ria de les v(í|i)ctimes de l'holocaust", monthDay 1 27 ) , ( "Dia Internacional de Commemoració anual en memòria de les Víctimes de l'Holocaust", "dia internacional de commemoraci(ó|o) anual en mem(ò|o)ria de les v(í|i)ctimes de l'holocaust", monthDay 1 27 )
, ( "Dia Internacional de la Democràcia", "dia (internacional)?de la democr(à|a)cia", monthDay 9 15 ) , ( "Dia Internacional de la Democràcia", "dia (internacional)?de la democr(à|a)cia", monthDay 9 15 )

View File

@ -142,7 +142,7 @@ isRangeValid = \case
(start == end - 2 && (start == end - 2 &&
isArabicProclitic2 (doc ! start) (doc ! (start + 1)) && isArabicProclitic2 (doc ! start) (doc ! (start + 1)) &&
(start == 0 || isDifferent (doc ! (start - 1)) (doc ! start))) || (start == 0 || isDifferent (doc ! (start - 1)) (doc ! start))) ||
-- Is preceeded by proclitic -- Is preceded by proclitic
(start /= 0 && isArabicProclitic (doc ! (start - 1)) && (start /= 0 && isArabicProclitic (doc ! (start - 1)) &&
(end == length doc || (end == length doc ||
isDifferent (doc ! (end - 1)) (doc ! (end)))) || isDifferent (doc ! (end - 1)) (doc ! (end)))) ||

View File

@ -45,7 +45,6 @@ rulesVolumes = map go volumes
} }
rules :: [Rule] rules :: [Rule]
rules = [ rules = [
] ]
++ rulesVolumes ++ rulesVolumes

View File

@ -14,7 +14,7 @@
{-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeFamilies #-}
module Main (main) where module CustomDimensionExample (main) where
import Control.DeepSeq import Control.DeepSeq
import Control.Monad import Control.Monad

View File

@ -8,7 +8,7 @@
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS -fno-full-laziness #-} {-# OPTIONS -fno-full-laziness #-}
module Main (main) where module DucklingExpensive (main) where
import Control.Monad import Control.Monad
import System.Environment import System.Environment

View File

@ -8,7 +8,7 @@
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS -fno-full-laziness #-} {-# OPTIONS -fno-full-laziness #-}
module Main (main) where module DucklingRequestSample (main) where
import Control.Monad import Control.Monad
import System.Environment import System.Environment

View File

@ -9,6 +9,8 @@
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-} {-# LANGUAGE TypeApplications #-}
module ExampleMain where
import Control.Applicative hiding (empty) import Control.Applicative hiding (empty)
import Control.Arrow ((***)) import Control.Arrow ((***))
import Control.Exception (SomeException, catch) import Control.Exception (SomeException, catch)

View File

@ -5,6 +5,8 @@
-- LICENSE file in the root directory of this source tree. -- LICENSE file in the root directory of this source tree.
module RegenMain where
import Prelude import Prelude
import Duckling.Ranking.Generate import Duckling.Ranking.Generate

View File

@ -1,4 +1,3 @@
-- Copyright (c) 2016-present, Facebook, Inc. -- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved. -- All rights reserved.
-- --