Rename rule

This commit is contained in:
Jeroen Engels 2024-05-07 18:18:52 +02:00
parent 955c3c56be
commit 3b6027578c
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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 (..)