mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-29 01:24:35 +03:00
Rename rule
This commit is contained in:
parent
955c3c56be
commit
3b6027578c
@ -1,4 +1,4 @@
|
||||
module Css.NoUnusedCssClasses exposing (cssFiles, dontReport, rule, withCssUsingFunctions)
|
||||
module Css.NoUnusedClasses exposing (cssFiles, dontReport, rule, withCssUsingFunctions)
|
||||
|
||||
import Css.ClassFunction as ClassFunction exposing (CssArgument)
|
||||
import Dict exposing (Dict)
|
||||
@ -13,7 +13,7 @@ import Set exposing (Set)
|
||||
|
||||
rule : Configuration -> Rule
|
||||
rule (Configuration configuration) =
|
||||
Rule.newProjectRuleSchema "NoUnusedCssClasses" initialProjectContext
|
||||
Rule.newProjectRuleSchema "Css.NoUnusedClasses" initialProjectContext
|
||||
|> Rule.withExtraFilesProjectVisitor cssFilesVisitor
|
||||
[ FilePattern.include "**/*.css" ]
|
||||
|> Rule.withModuleVisitor moduleVisitor
|
@ -1,7 +1,7 @@
|
||||
module Css.NoUnusedCssClassesTest exposing (all)
|
||||
module Css.NoUnusedClassesTest exposing (all)
|
||||
|
||||
import Css.ClassFunction as ClassFunction exposing (CssArgument, fromLiteral)
|
||||
import Css.NoUnusedCssClasses exposing (cssFiles, dontReport, rule, withCssUsingFunctions)
|
||||
import Css.NoUnusedClasses exposing (cssFiles, dontReport, rule, withCssUsingFunctions)
|
||||
import Dict
|
||||
import Elm.Syntax.Expression exposing (Expression)
|
||||
import Elm.Syntax.Node exposing (Node)
|
||||
@ -14,7 +14,7 @@ import Test exposing (Test, describe, test)
|
||||
|
||||
all : Test
|
||||
all =
|
||||
describe "NoUnusedCssClasses"
|
||||
describe "Css.NoUnusedClasses"
|
||||
[ test "should not report an error when strings don't seem to be CSS classes" <|
|
||||
\() ->
|
||||
"""module A exposing (..)
|
Loading…
Reference in New Issue
Block a user