How to use the vsg.fix.enforce_one_space_after_word function in vsg

To help you get started, we’ve selected a few vsg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jeremiah-c-leary / vhdl-style-guide / vsg / rules / if_statement / rule_015.py View on Github external
def _fix_violations(self, oFile):
        for dViolation in self.violations:
            fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), 'end')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / instantiation / rule_018.py View on Github external
def _fix_violations(self, oFile):
        for dViolation in self.violations:
            fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), 'map')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / instantiation / rule_022.py View on Github external
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], '=>')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / constant / rule_005.py View on Github external
def _fix_violations(self, oFile):
        for dViolation in self.violations:
            fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), ':')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / port / rule_006.py View on Github external
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, ':')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / instantiation / rule_030.py View on Github external
def _fix_violations(self, oFile):
        for dViolation in self.violations:
            fix.enforce_one_space_after_word(self, utils.get_violating_line(oFile, dViolation), '=>')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / port / rule_003.py View on Github external
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')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / port / rule_005.py View on Github external
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, ':')
github jeremiah-c-leary / vhdl-style-guide / vsg / rules / generate / rule_002.py View on Github external
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)