Ruby source code analyzer (something like pylint)

后端 未结 7 1995
一整个雨季
一整个雨季 2020-12-04 11:47

Does Ruby have any tools along the lines of pylint for analyzing source code for errors and simple coding standards?

It would be nice if it could be integrated with

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 12:05

    One recently-updated interesting-looking tool is Ruby Object Oriented Design Inferometer - roodi for short. It's at v1.3.0, so I'm guessing it's fairly mature.

    I haven't tried it myself, because my code is of course already beyond reproach (hah).

    As for test coverage (oh dear, I haven't tried this one either) there's rcov

    Also (look, I am definitely going to try some of these today. One at least) you might care to take a look at flog and flay for another style checker and a refactoring candidate finder.

提交回复
热议问题