Rename NoInvalidLicense to NoUnapprovedLicense

This commit is contained in:
Jeroen Engels 2020-06-01 09:01:53 +02:00
parent 9378669cc0
commit 70bfc6f0bd
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
module NoInvalidLicense exposing (rule)
module NoUnapprovedLicense exposing (rule)
{-|
@ -18,7 +18,7 @@ import Set exposing (Set)
{-| Forbid the use of dependencies that use unknown or forbidden licenses.
config =
[ NoInvalidLicense.rule
[ NoUnapprovedLicense.rule
{ allowed = [ "BSD-3-Clause", "MIT" ]
, forbidden = [ "GPL-3.0-only", "GPL-3.0-or-later" ]
}
@ -27,7 +27,7 @@ import Set exposing (Set)
-}
rule : Configuration -> Rule
rule configuration =
Rule.newProjectRuleSchema "NoInvalidLicense" initialProjectContext
Rule.newProjectRuleSchema "NoUnapprovedLicense" initialProjectContext
|> Rule.withElmJsonProjectVisitor elmJsonVisitor
|> Rule.withDependenciesProjectVisitor dependenciesVisitor
|> Rule.withFinalProjectEvaluation (finalEvaluationForProject configuration)

View File

@ -1,9 +1,9 @@
module NoInvalidLicenseTest exposing (all)
module NoUnapprovedLicenseTest exposing (all)
import Elm.Docs
import Elm.Project
import Json.Decode as Decode
import NoInvalidLicense exposing (rule)
import NoUnapprovedLicense exposing (rule)
import Review.Project as Project exposing (Project)
import Review.Project.Dependency as Dependency exposing (Dependency)
import Review.Test
@ -108,7 +108,7 @@ a = 1
all : Test
all =
describe "NoInvalidLicense"
describe "NoUnapprovedLicense"
[ test "should not report anything if there is no `elm.json` file" <|
\() ->
sourceCode