mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
Use withFix
This commit is contained in:
parent
aa48c3df63
commit
c78297f483
@ -182,7 +182,7 @@ reportError fileKey elmJsonVersion content =
|
||||
unreleasedRange =
|
||||
findUnreleasedRange lines
|
||||
in
|
||||
Rule.errorForExtraFile
|
||||
Rule.errorForExtraFileWithFix
|
||||
fileKey
|
||||
{ message = "Missing entry in CHANGELOG.md for version " ++ elmJsonVersion
|
||||
, details = [ "It seems you have or are ready to release a new version of your package, but forgot to include releases notes for it in your CHANGELOG.md file." ]
|
||||
@ -194,6 +194,7 @@ reportError fileKey elmJsonVersion content =
|
||||
Nothing ->
|
||||
{ start = { row = 1, column = 1 }, end = { row = 1, column = String.length (List.head lines |> Maybe.withDefault "") + 1 } }
|
||||
)
|
||||
[]
|
||||
|
||||
|
||||
findUnreleasedRange : List String -> Maybe Range
|
||||
|
Loading…
Reference in New Issue
Block a user