Stan — Haskell Static Analyser

Hi everyone!

In Kowainik we made a Haskell Static Analysis CLI tool — Stan. We hope it can be helpful for people to improve and maintain the quality of their projects :slightly_smiling_face:

You can find more details, features description and usage examples in the README on GitHub.

13 Likes

I have tried it and it was a pleasure to install and to use! I have now got a million

Defining lazy fields in data types can lead to unexpected space leaks

some head/fold/reverse warnings and an encouraging 82% health:

           Stan's Summary:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓
┃ Analysed modules            ┃ 12     ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Analysed Lines of Code      ┃ 1505   ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total Haskel2010 extensions ┃ 4      ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total SafeHaskel extensions ┃ 0      ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total checked inspections   ┃ 44     ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total found observations    ┃ 45     ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Total ignored observations  ┃ 0      ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━┫
┃ Project health              ┃ 81.82% ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━┛
3 Likes

Thanks for letting us know about it. I’ll definitely will try it out on my project.

1 Like