Skip to content

Commit

Permalink
Map
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Sep 16, 2021
1 parent 0f7fd11 commit d5955e5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/Docs/NoAtDocsMisuse.elm
Expand Up @@ -96,14 +96,18 @@ commentsVisitor nodes context =

declarationListVisitor : List (Node Declaration) -> Context -> List (Rule.Error {})
declarationListVisitor nodes context =
[ Rule.error
{ message = "Found @docs reference for non-exposed `unknown`"
, details = [ "REPLACEME" ]
}
{ start = { row = 4, column = 13 }
, end = { row = 4, column = 20 }
}
[ { start = { row = 4, column = 13 }
, end = { row = 4, column = 20 }
}
]
|> List.map
(\range ->
Rule.error
{ message = "Found @docs reference for non-exposed `unknown`"
, details = [ "REPLACEME" ]
}
range
)


find : (a -> Bool) -> List a -> Maybe a
Expand Down

0 comments on commit d5955e5

Please sign in to comment.