Class: Cane::AbcCheck::InvalidAst

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

Overview

Null object for when the file cannot be parsed.

Instance Method Summary collapse

Instance Method Details

#violationsObject



58
59
60
# File 'lib/cane/abc_check.rb', line 58

def violations
  [{file: file_name, description: "Files contained invalid syntax"}]
end