Coding style checker or code formatter for Ruby / Rails

后端 未结 3 971
挽巷
挽巷 2020-12-14 02:56

When I use C# or Perl, there are some useful tools like StyleCop, FxCop, Perl::Critic and Perltidy. They can check or format my code automatically. Then, are there any equiv

3条回答
  •  感情败类
    2020-12-14 03:08

    There's some style checkers listed at in the Ruby toolbox at https://www.ruby-toolbox.com/categories/code_metrics .

    Also, turning on warnings can check for some kinds of bad code. Do so with $VERBOSE = true or by one of the ways listed here.

提交回复
热议问题