[{"name":"NoUnapprovedLicense","comment":"\n\n@docs rule\n\n","unions":[],"aliases":[],"values":[{"name":"rule","comment":" Forbid the use of dependencies that use unknown or forbidden licenses.\n\n    config =\n        [ NoUnapprovedLicense.rule\n            { allowed = [ \"BSD-3-Clause\", \"MIT\" ]\n            , forbidden = [ \"GPL-3.0-only\", \"GPL-3.0-or-later\" ]\n            }\n        ]\n\nIf the license of a dependency is in the `allowed` list, the dependency will not be reported.\nIf it's in the `forbidden` list, the dependency will be reported as an error.\nIf it's in neither, the dependency will be reported but with a different message asking you\nto add the license to either list.\n\n\n## Usage as an insight rule\n\nIf instead of enforcing a restriction on the licenses, you wish to have an overview of the licenses used in your project,\nyou can run the rule as an insight rule (using `elm-review --report=json --extract`), which would yield an output like\nthe following:\n\n```json\n{\n  \"NoRedInk/elm-json-decode-pipeline\": \"BSD-3-Clause\",\n  \"elm-explorations/markdown\": \"BSD-3-Clause\",\n  \"elm-explorations/test\": \"BSD-3-Clause\",\n  \"elm/browser\": \"BSD-3-Clause\",\n  \"elm/core\": \"BSD-3-Clause\",\n  \"elm/html\": \"BSD-3-Clause\",\n  \"elm/http\": \"BSD-3-Clause\",\n  \"elm/json\": \"BSD-3-Clause\",\n  \"elm/parser\": \"BSD-3-Clause\",\n  \"elm/random\": \"BSD-3-Clause\",\n  \"elm/time\": \"BSD-3-Clause\",\n  \"elm/url\": \"BSD-3-Clause\",\n  \"elm/virtual-dom\": \"BSD-3-Clause\",\n  \"rtfeldman/elm-iso8601-date-strings\": \"BSD-3-Clause\"\n}\n```\n\n","type":"{ allowed : List.List String.String, forbidden : List.List String.String } -> Review.Rule.Rule"}],"binops":[]}]