mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-25 18:51:41 +03:00
Make the import cycle look more like the compiler's message
This commit is contained in:
parent
6bf6d41c55
commit
ac68adc905
@ -401,9 +401,9 @@ review rules project =
|
|||||||
( [ Review.Error.ReviewError
|
( [ Review.Error.ReviewError
|
||||||
{ filePath = "GLOBAL ERROR"
|
{ filePath = "GLOBAL ERROR"
|
||||||
, ruleName = "Incorrect project"
|
, ruleName = "Incorrect project"
|
||||||
, message = "Import cycle discovered"
|
, message = "our module imports form a cycle:"
|
||||||
, details =
|
, details =
|
||||||
[ "I detected an import cycle in your project. This prevents me from working correctly, and results in a error for the Elm compiler anyway. Please resolve it using the compiler's suggestions, then try running `elm-review` again."
|
[ "Learn more about why this is disallowed and how to break cycles here:<https://elm-lang.org/0.19.1/import-cycles>"
|
||||||
]
|
]
|
||||||
, range = { start = { row = 0, column = 0 }, end = { row = 0, column = 0 } }
|
, range = { start = { row = 0, column = 0 }, end = { row = 0, column = 0 } }
|
||||||
, fixes = Nothing
|
, fixes = Nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user