Class: Crspec::Transpiler::Lint

Inherits:
Struct
  • Object
show all
Defined in:
lib/crspec/transpiler/rewriter.rb

Overview

Lint severities:

:error   - construct is rejected by Crspec at load/run time
:warning - construct is concurrency-unsafe and needs manual review
:info    - construct was auto-rewritten or is worth double-checking

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



11
12
13
# File 'lib/crspec/transpiler/rewriter.rb', line 11

def code
  @code
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



11
12
13
# File 'lib/crspec/transpiler/rewriter.rb', line 11

def line
  @line
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



11
12
13
# File 'lib/crspec/transpiler/rewriter.rb', line 11

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



11
12
13
# File 'lib/crspec/transpiler/rewriter.rb', line 11

def severity
  @severity
end