Open upsiflu opened 1 year ago
elm-review --template jfmengels/elm-review-cognitive-complexity/example --rules CognitiveComplexity yields the following hot sites:
elm-review --template jfmengels/elm-review-cognitive-complexity/example --rules CognitiveComplexity
Accordion.view
Accordion
History
view
Ui.Layout.Aspect
Segment.view
Article.view
Occurrence.occasionToString
if
Zipper.Tree.go
Article
List.foldl (|>)
Layout
Control
restrictive UI
constant
bounce
href
Reduce Cognitive complexity
elm-review --template jfmengels/elm-review-cognitive-complexity/example --rules CognitiveComplexity
yields the following hot sites:Accordion.view
→ 18Accordion
to its ownHistory
view
, recalculate the regionsUi.Layout.Aspect
sSegment.view
→ 30Article.view
Occurrence.occasionToString
-> 22if
expressionZipper.Tree.go
-> 28Reduce Intermediate State Caching
Accordion
andArticle
in-memory types and replace them with their respectiveHistory
typeview
must first interpret the history (in aList.foldl (|>)
)Factor out drawing functions
Layout
andControl
?Integrate
restrictive UI
1.0 once finishedconstant
href for the main menubounce
for each segment headerhref
s in the articles need to be interpreted such that flags and assignments are preserved: UrlClicked -> interpret as relative!