Closed Vighnesh-V closed 4 years ago
It also appears that there are no HOF tests that fail; I assume this is because we haven't written all of the HOF tests yet right?
Changes made! This PR just tweaks our architecture a little, to enable us to write different kinds of linter rules over different chunks of the(any) AST. This just lays the foundation to start writing the hof recommendations - I'll do that in another PR.
We now also have linting rules for map and iter. Fold is a little more fucky at the moment, probably requiring work with the typed tree.
Resolved the issue of distinguishing fold. We now have three rules - one for fold, one for map, one for iter that all work well on obvious cases (definitely more testing needed).
Resolves #19
Lints Hofs. Resolves #19