rubocop-instance_variable_access provides the Style/InstanceVariableAccess cop, which flags direct reads of instance variables (including class instance variables) outside of their reader method, encouraging access via attr_reader/attr_accessor or a hand-written reader even from within the defining class.

Required Ruby Version

>= 3.3.0

Authors

Takeshi KOMIYA

Versions

  1. 1.0.0 September 21, 2026 (12 KB)

Pushed by

GitHub

SHA 256 checksum