Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _fix_violations(self, oFile):
for dViolation in self.violations:
fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), 'end')
def _fix_violations(self, oFile):
for dViolation in self.violations:
fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), 'map')
def _fix_violations(self, oFile):
for dViolation in self.violations:
iLineNumber = utils.get_violation_linenumber(dViolation)
fix.enforce_one_space_after_word(self, oFile.lines[iLineNumber], '=>')
def _fix_violations(self, oFile):
for dViolation in self.violations:
fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), ':')
def _fix_violations(self, oFile):
for dViolation in self.violations:
oLine = utils.get_violating_line(oFile, dViolation)
fix.enforce_one_space_after_word(self, oLine, ':')
def _fix_violations(self, oFile):
for dViolation in self.violations:
fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), '=>')
def _fix_violations(self, oFile):
for dViolation in self.violations:
oLine = utils.get_violating_line(oFile, dViolation)
fix.enforce_one_space_after_word(self, oLine, 'port')
def _fix_violations(self, oFile):
for dViolation in self.violations:
oLine = utils.get_violating_line(oFile, dViolation)
fix.enforce_one_space_after_word(self, oLine, ':')
def _fix_violations(self, oFile):
for dViolation in self.violations:
iLineNumber = utils.get_violation_linenumber(dViolation)
sWord = dViolation['label']
fix.enforce_one_space_after_word(self, oFile.lines[iLineNumber], sWord)