Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
False positive in Style/TrivialAccessors with inline private #5641
Not an offense. In this case,
# a.rb class A private def foo @foo end end
# Corrected a.rb class A private attr_reader :foo end
Steps to reproduce the problem
Described in actual behavour.
I don't think it is a false positive for the same reason as the @Drenmi comment.
BTW, maybe we can add an option to ignore this case, i.e. this cop ignores