Where can I find an actively developed lint tool for Ruby?

后端 未结 9 951
别跟我提以往
别跟我提以往 2020-12-12 19:27

Most of the code I write is in Ruby, and every once in a while, I make some typo which only gets caught after a while. This is irritating when I have my scripts running long

9条回答
  •  我在风中等你
    2020-12-12 19:49

    • ruby -c myfile.rb will check for correct Ruby syntax.
    • Reek checks Ruby code for common code smells.
    • Roodi checks Ruby code for common object-oriented design issues.
    • Flog can warn you about unusually complex code.

    [Plug] If your project is in a public Github repository, Caliper can run the latter three tools and others on your code every time you commit. (Disclaimer: I work on Caliper)

提交回复
热议问题