mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-22 13:15:59 +03:00
Remove warnings in storing data in module contexts
Fixes https://github.com/jfmengels/elm-review/issues/164 as that removes an incomplete sentence.
This commit is contained in:
parent
88e7f8b375
commit
57fa48e5f2
@ -960,9 +960,6 @@ what happens in other parts of the module. If you don't need a context, I
|
|||||||
recommend specifying `()`, and using functions from this module with names
|
recommend specifying `()`, and using functions from this module with names
|
||||||
starting with "withSimple".
|
starting with "withSimple".
|
||||||
|
|
||||||
**NOTE**: Do not store functions, JSON values or regular expressions in your contexts, as they will be
|
|
||||||
compared internally, which [may cause Elm to crash](https://package.elm-lang.org/packages/elm/core/latest/Basics#==).
|
|
||||||
|
|
||||||
module My.Rule.Name exposing (rule)
|
module My.Rule.Name exposing (rule)
|
||||||
|
|
||||||
import Review.Rule as Rule exposing (Rule)
|
import Review.Rule as Rule exposing (Rule)
|
||||||
@ -1027,7 +1024,6 @@ newModuleRuleSchema name initialModuleContext =
|
|||||||
|
|
||||||
|
|
||||||
{-| Same as [`newModuleRuleSchema`](#newModuleRuleSchema), except that you can request for data to help initialize the context.
|
{-| Same as [`newModuleRuleSchema`](#newModuleRuleSchema), except that you can request for data to help initialize the context.
|
||||||
compared internally, which [may cause Elm to crash](https://package.elm-lang.org/packages/elm/core/latest/Basics#==).
|
|
||||||
|
|
||||||
module My.Rule.Name exposing (rule)
|
module My.Rule.Name exposing (rule)
|
||||||
|
|
||||||
@ -1198,7 +1194,7 @@ The second argument is the initial `projectContext`, i.e. the data that the rule
|
|||||||
accumulate as the project will be traversed, and allows the rule to know/remember
|
accumulate as the project will be traversed, and allows the rule to know/remember
|
||||||
what happens in other parts of the project.
|
what happens in other parts of the project.
|
||||||
|
|
||||||
**NOTE**: Do not store functions, JSON values or regular expressions in your contexts, as they will be
|
**NOTE**: Do not store functions, JSON values or regular expressions in your project context, as they will be
|
||||||
compared internally, which [may cause Elm to crash](https://package.elm-lang.org/packages/elm/core/latest/Basics#==).
|
compared internally, which [may cause Elm to crash](https://package.elm-lang.org/packages/elm/core/latest/Basics#==).
|
||||||
|
|
||||||
Project rules traverse the project in the following order:
|
Project rules traverse the project in the following order:
|
||||||
|
Loading…
Reference in New Issue
Block a user