Vigilance
A simple tool for enforcing code quality metrics on a codebase
 All Classes Namespaces Files Functions Variables Groups
FileConstraint Class Reference

A Constraint decorator that applies a Constraint to specific files only. More...

+ Inheritance diagram for FileConstraint:

Public Member Functions

def __init__
 
def is_of_type
 
def satisfied_by
 
def applies_to
 
- Public Member Functions inherited from Constraint
def is_of_type
 Returns whether the Constraint is considered to be of a certain constraint type. More...
 
def satisfied_by
 Returns whether the Constraint is satisfied by some item under coverage. More...
 
def applies_to
 Returns whether the Constraint should be applied to an item under coverage. More...
 

Public Attributes

 constraint
 
 pathRegex
 

Detailed Description

A Constraint decorator that applies a Constraint to specific files only.

Constructor & Destructor Documentation

def __init__ (   self,
  constraint,
  pathRegex 
)

Member Function Documentation

def applies_to (   self,
  item 
)
def is_of_type (   self,
  constraintType 
)
def satisfied_by (   self,
  item 
)

Member Data Documentation

constraint
pathRegex

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