Class: SasLinter::Finding

Inherits:
Struct
  • Object
show all
Defined in:
lib/sas_linter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



18
19
20
# File 'lib/sas_linter.rb', line 18

def column
  @column
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



18
19
20
# File 'lib/sas_linter.rb', line 18

def line
  @line
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



18
19
20
# File 'lib/sas_linter.rb', line 18

def message
  @message
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



18
19
20
# File 'lib/sas_linter.rb', line 18

def path
  @path
end

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



18
19
20
# File 'lib/sas_linter.rb', line 18

def rule
  @rule
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



18
19
20
# File 'lib/sas_linter.rb', line 18

def severity
  @severity
end

Instance Method Details

#to_sObject



19
20
21
# File 'lib/sas_linter.rb', line 19

def to_s
  "#{path}:#{line}:#{column}: [#{rule}] #{message}"
end