CatapultServer  v0.5.0.1 (Elephant)
validation.ReturnOnNewLineValidator Class Reference
Inheritance diagram for validation.ReturnOnNewLineValidator:
Collaboration diagram for validation.ReturnOnNewLineValidator:

Public Member Functions

def __init__ (self, errorReporter)
 
def check (self, lineNumber, line)
 
- Public Member Functions inherited from SimpleValidator.SimpleValidator
def reset (self, path)
 
def finalize (self)
 

Static Public Member Functions

def formatError (err)
 

Public Attributes

 patternReturn
 
 skip
 
- Public Attributes inherited from SimpleValidator.SimpleValidator
 errorReporter
 
 path
 

Static Public Attributes

string SUITE_NAME = 'ReturnOnNewLine'
 
string NAME = 'returnOnNewLine'
 

Detailed Description

Validates that return is placed in a separate line

Constructor & Destructor Documentation

◆ __init__()

def validation.ReturnOnNewLineValidator.__init__ (   self,
  errorReporter 
)

Reimplemented from SimpleValidator.SimpleValidator.

Member Function Documentation

◆ check()

def validation.ReturnOnNewLineValidator.check (   self,
  lineNumber,
  line 
)

◆ formatError()

def validation.ReturnOnNewLineValidator.formatError (   err)
static

Member Data Documentation

◆ NAME

string validation.ReturnOnNewLineValidator.NAME = 'returnOnNewLine'
static

◆ patternReturn

validation.ReturnOnNewLineValidator.patternReturn

◆ skip

validation.ReturnOnNewLineValidator.skip

◆ SUITE_NAME

string validation.ReturnOnNewLineValidator.SUITE_NAME = 'ReturnOnNewLine'
static

The documentation for this class was generated from the following file: