ci: add aggressive HLint #229
Annotations
1 error and 10 warnings
|
examples/RelaxWithNM.hs#L28
Suggestion in forcingFunction in module Main: Redundant bracket ▫︎ Found: "(\\ t -> bigA * sin (omega * t))" ▫︎ Perhaps: "\\ t -> bigA * sin (omega * t)"
|
examples/RelaxWithNM.hs#L38
Suggestion in .*. in module Main: Redundant bracket ▫︎ Found: "(f x) * (g (t - x))" ▫︎ Perhaps: "f x * (g (t - x))"
|
examples/RelaxWithNM.hs#L38
Suggestion in .*. in module Main: Redundant bracket ▫︎ Found: "(f x) * (g (t - x))" ▫︎ Perhaps: "(f x) * g (t - x)"
|
examples/RelaxWithNM.hs#L43
Warning in flow in module Main: Redundant lambda ▫︎ Found: "term1 = \\ t -> initVal * exp (a * t)" ▫︎ Perhaps: "term1 t = initVal * exp (a * t)"
|
examples/RelaxWithNM.hs#L60
Warning in linearly in module Main: Redundant lambda ▫︎ Found: "linearly (x1, y1) (x2, y2)\n = \\ x -> lerp y1 y2 $ (x - x1) / (x2 - x1)" ▫︎ Perhaps: "linearly (x1, y1) (x2, y2) x = lerp y1 y2 $ (x - x1) / (x2 - x1)"
|
examples/RelaxWithNM.hs#L100
Suggestion in solve in module Main: Redundant bracket ▫︎ Found: "(maxRelaxIters, within6digitss, (map (timeStep *) [0 .. 199]), \n inits)" ▫︎ Perhaps: "(maxRelaxIters, within6digitss, map (timeStep *) [0 .. 199], inits)"
|
examples/RelaxWithNM.hs#L115
Suggestion in solve in module Main: Redundant bracket ▫︎ Found: "(bubbleFns t) !! n" ▫︎ Perhaps: "bubbleFns t !! n"
|
examples/RelaxWithNM.hs#L121
Suggestion in initsParams in module Main: Parenthesize unary negation ▫︎ Found: "- 1.0 / 6.0" ▫︎ Perhaps: "- (1.0 / 6.0)"
|
examples/RelaxWithNM.hs#L126
Suggestion in dataPoints in module Main: Use map once ▫︎ Found: "map (!! 1) $ map snd $ solve initsParams" ▫︎ Perhaps: "map ((!! 1) . snd) (solve initsParams)"
|
examples/RelaxWithNM.hs#L129
Suggestion in forFitting in module Main: Use map once ▫︎ Found: "map (!! 1) $ map snd $ solve ips" ▫︎ Perhaps: "map ((!! 1) . snd) (solve ips)"
|
The logs for this run have expired and are no longer available.
Loading