Method: RuboCop::Cop::Offense#real_column

Defined in:
lib/rubocop/cop/offense.rb

#real_columnObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Internally we use column number that start at 0, but when outputting column numbers, we want them to start at 1. One reason is that editors, such as Emacs, expect this.

[View source]

202
203
204
# File 'lib/rubocop/cop/offense.rb', line 202

def real_column
  column + 1
end