mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-08-16 19:40:22 +03:00
Use FilePattern
This commit is contained in:
parent
ade886ddd1
commit
49ad03d59d
@ -34,6 +34,7 @@ import NoUnused.Parameters
|
||||
import NoUnused.Patterns
|
||||
import NoUnused.Variables
|
||||
import Review.Rule as Rule exposing (Rule)
|
||||
import Review.FilePattern as FilePattern
|
||||
import NoUnused.CustomTypeConstructorArgs
|
||||
import Css.NoUnknownClasses
|
||||
|
||||
@ -73,7 +74,7 @@ config =
|
||||
, NoSimpleLetBody.rule
|
||||
, NoPrematureLetComputation.rule
|
||||
, NoForbiddenWords.rule [ "REPLACEME" ]
|
||||
, Css.NoUnknownClasses.cssFiles ["src/**/*.css"]
|
||||
, Css.NoUnknownClasses.cssFiles [ FilePattern.include "src/**/*.css"]
|
||||
-- |> Css.NoUnknownClasses.withCssUsingFunctions cssUsingFunctions
|
||||
|> Css.NoUnknownClasses.rule
|
||||
]
|
||||
|
@ -145,6 +145,7 @@ import Elm.Syntax.Range exposing (Range)
|
||||
import Levenshtein
|
||||
import Parser exposing ((|.), (|=), Parser)
|
||||
import RangeDict exposing (RangeDict)
|
||||
import Review.FilePattern exposing (FilePattern)
|
||||
import Review.ModuleNameLookupTable as ModuleNameLookupTable exposing (ModuleNameLookupTable)
|
||||
import Review.Rule as Rule exposing (Rule)
|
||||
import Set exposing (Set)
|
||||
@ -166,12 +167,12 @@ rule (Configuration configuration) =
|
||||
type Configuration
|
||||
= Configuration
|
||||
{ knownClasses : Set String
|
||||
, cssFiles : List String
|
||||
, cssFiles : List FilePattern
|
||||
, cssFunctions : CssFunctions
|
||||
}
|
||||
|
||||
|
||||
cssFiles : List String -> Configuration
|
||||
cssFiles : List FilePattern -> Configuration
|
||||
cssFiles globs =
|
||||
Configuration
|
||||
{ knownClasses = Set.empty
|
||||
|
Loading…
Reference in New Issue
Block a user