Provides elm-review
rules to find misuses of test-only values.
NoTestValuesInProductionCode
- Reports when functions or values meant to be used only in tests are used in production source code.
module ReviewConfig exposing (config)
import NoTestValuesInProductionCode
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoTestValuesInProductionCode.rule
(NoTestValuesInProductionCode.startsWith "test_")
]
You can try the example configuration above out by running the following command:
elm-review --template jfmengels/elm-review-test-values/example