Skip to content

feat: Add bracketing to lexer #60

feat: Add bracketing to lexer

feat: Add bracketing to lexer #60

Triggered via pull request December 19, 2024 12:26
Status Success
Total duration 23s
Artifacts

hlint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 warnings
hlint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
hlint: brat/Brat/Parser.hs#L570
Suggestion in expr' in module Brat.Parser: Avoid lambda using `infix` ▫︎ Found: "(\\ fc -> spanFC fc juxtFC)" ▫︎ Perhaps: "(`spanFC` juxtFC)"
hlint: brat/Brat/Checker/Helpers.hs#L120
Suggestion in pullPorts in module Brat.Checker.Helpers: Use uncurry ▫︎ Found: "\\ (pulled, rest) -> pulled ++ rest" ▫︎ Perhaps: "uncurry (++)" ▫︎ Note: increases laziness
hlint: brat/Brat/Lexer/Bracketed.hs#L55
Suggestion in module Brat.Lexer.Bracketed: Redundant bracket ▫︎ Found: "let\n Pos closeLine closeCol = (end fc)\n closeFC\n = FC (Pos closeLine (closeCol - 1)) (Pos closeLine closeCol)\nin\n skipChars\n (i - 1) (bts ++ [FlatTok (Token closeFC (closeTok b))] ++ rest)" ▫︎ Perhaps: "let\n Pos closeLine closeCol = end fc\n closeFC\n = FC (Pos closeLine (closeCol - 1)) (Pos closeLine closeCol)\nin\n skipChars\n (i - 1) (bts ++ [FlatTok (Token closeFC (closeTok b))] ++ rest)"