for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from spike.model import db
class NaxsiRuleSets(db.Model):
__bind_key__ = 'rules'
__tablename__ = 'naxsi_rulesets'
id = db.Column(db.Integer, primary_key=True)
id
([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
name = db.Column(db.String(1024), nullable=False, unique=True)
remarks = db.Column(db.Text, nullable=False)
timestamp = db.Column(db.Integer, nullable=False)
db.UniqueConstraint('name')
def __init__(self, name, remarks, timestamp):
self.name = name
self.remarks = remarks
self.timestamp = timestamp
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.