Skip to content

trace functions

trace functions #622

Triggered via pull request September 4, 2024 06:09
Status Failure
Total duration 47s
Artifacts

hlint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 1 warning
HLint
HLint failed with status: 1. Warning (1)
HLint: src/swarm-engine/Swarm/Game/Step.hs#L554
Warning in stepCESK in module Swarm.Game.Step: Use when ▫︎ Found: "if any (`T.isInfixOf` prettyText t) functionsOfInterest then\n do r <- get @Robot\n let xs = r ^. robotDebug . evalBuffer\n robotDebug @ConcreteRobot . currentFunction\n .= Just (T.unlines $ toList $ RB.getValues xs)\nelse\n return ()" ▫︎ Perhaps: "when (any (`T.isInfixOf` prettyText t) functionsOfInterest)\n $ do r <- get @Robot\n let xs = r ^. robotDebug . evalBuffer\n robotDebug @ConcreteRobot . currentFunction\n .= Just (T.unlines $ toList $ RB.getValues xs)"