--auto-correct Inspecting 1 file C Offenses: example.rb:1:1: C: [Corrected] Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true. def badName ^ example.rb:2:3: C: [Corrected] Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||. if something ^^ example.rb:3:5: C: Naming/MethodName: Use snake_case for method names. def badName ^^^^^^^ 1 file inspected, 3 offenses detected, 2 offenses corrected