You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# lib/rubocop_test.rb# A sample for rubocopmoduleRubocopTestpublicdeffor_all_to_seeendprotecteddeffor_the_kidsendprivatedefjust_for_meendmodule_functiondefavailable_or_includedendend
$ bin/rubocop -v; bin/rubocop -D lib0.25.0 (using Parser 2.2.0.pre.4, running on ruby 2.1.2 x86_64-darwin13.0)Inspecting 1 fileCOffenses:lib/rubocop_test.rb:4:3: C: Style/AccessModifierIndentation: Outdent access modifiers like public. public ^^^^^^lib/rubocop_test.rb:4:3: C: Style/EmptyLinesAroundAccessModifier: Keep a blank line before and after public. public ^^^^^^lib/rubocop_test.rb:8:3: C: Style/AccessModifierIndentation: Outdent access modifiers like protected. protected ^^^^^^^^^lib/rubocop_test.rb:8:3: C: Style/EmptyLinesAroundAccessModifier: Keep a blank line before and after protected. protected ^^^^^^^^^lib/rubocop_test.rb:12:3: C: Style/AccessModifierIndentation: Outdent access modifiers like private. private ^^^^^^^lib/rubocop_test.rb:12:3: C: Style/EmptyLinesAroundAccessModifier: Keep a blank line before and after private. private ^^^^^^^1 file inspected, 6 offenses detected
This is semi-related to #730 which added some support for module_function in the Lint/DefEndAlignment cop.
The text was updated successfully, but these errors were encountered:
module_function
is not treated the same aspublic
,private
, orprotected
with at least the following cops:Here is sample code which demo's this:
This is semi-related to #730 which added some support for
module_function
in theLint/DefEndAlignment
cop.The text was updated successfully, but these errors were encountered: