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

Public Member Functions

def __init__ (self, errorReporter)
 
def reset (self, path)
 
def check (self, lineNumber, line)
 
def finalize (self)
 

Static Public Member Functions

def formatError (err)
 

Public Attributes

 expectedHash
 
 hasher
 
 lastLineNumber
 
- Public Attributes inherited from SimpleValidator.SimpleValidator
 errorReporter
 
 path
 

Static Public Attributes

string SUITE_NAME = 'CopyrightCommentChecker'
 
string NAME = 'copyrightCommentChecker'
 

Detailed Description

Validator for ensuring copyright comment consistency.

Constructor & Destructor Documentation

◆ __init__()

def validation.CopyrightCommentValidator.__init__ (   self,
  errorReporter 
)

Reimplemented from SimpleValidator.SimpleValidator.

Member Function Documentation

◆ check()

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

◆ finalize()

def validation.CopyrightCommentValidator.finalize (   self)

Reimplemented from SimpleValidator.SimpleValidator.

◆ formatError()

def validation.CopyrightCommentValidator.formatError (   err)
static

◆ reset()

def validation.CopyrightCommentValidator.reset (   self,
  path 
)

Reimplemented from SimpleValidator.SimpleValidator.

Member Data Documentation

◆ expectedHash

validation.CopyrightCommentValidator.expectedHash

◆ hasher

validation.CopyrightCommentValidator.hasher

◆ lastLineNumber

validation.CopyrightCommentValidator.lastLineNumber

◆ NAME

string validation.CopyrightCommentValidator.NAME = 'copyrightCommentChecker'
static

◆ SUITE_NAME

string validation.CopyrightCommentValidator.SUITE_NAME = 'CopyrightCommentChecker'
static

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