mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Expose and document ProjectData
This commit is contained in:
parent
586bc20b47
commit
79decbc14c
@ -15,7 +15,7 @@ module Review.Rule exposing
|
||||
, Error, error, errorWithFix, ModuleKey, errorForModule, errorForModuleWithFix, ElmJsonKey, errorForElmJson, ReadmeKey, errorForReadme, errorForReadmeWithFix
|
||||
, ReviewError, errorRuleName, errorMessage, errorDetails, errorRange, errorFixes, errorFilePath, errorTarget
|
||||
, ignoreErrorsForDirectories, ignoreErrorsForFiles
|
||||
, review, reviewV2, ruleName
|
||||
, review, reviewV2, ProjectData, ruleName
|
||||
, Required, Forbidden
|
||||
)
|
||||
|
||||
@ -243,7 +243,7 @@ reason or seemingly inappropriately.
|
||||
|
||||
# Running rules
|
||||
|
||||
@docs review, reviewV2, ruleName
|
||||
@docs review, reviewV2, ProjectData, ruleName
|
||||
|
||||
|
||||
# Internals
|
||||
@ -609,6 +609,8 @@ runReview ((Project p) as project) rules maybeProjectData nodeContexts =
|
||||
}
|
||||
|
||||
|
||||
{-| Internal cache about the project.
|
||||
-}
|
||||
type ProjectData
|
||||
= ProjectData (ProjectRuleCache ScopeProjectContext)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user