예제 #1
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations:
         iLineNumber = utils.get_violation_line_number(dViolation)
         fix.enforce_one_space_after_word(self, oFile.lines[iLineNumber],
                                          'package')
         fix.enforce_one_space_before_word(self, oFile.lines[iLineNumber],
                                           'is')
예제 #2
0
 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, 'architecture')
         fix.enforce_one_space_before_word(self, oLine, 'of')
         fix.enforce_one_space_after_word(self, oLine, 'of')
         fix.enforce_one_space_before_word(self, oLine, 'is')
예제 #3
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations:
         iLineNumber = dViolation['lineNumber']
         fix.enforce_one_space_after_word(self, oFile.lines[iLineNumber],
                                          'package')
         fix.enforce_one_space_before_word(self, oFile.lines[iLineNumber],
                                           'is')
예제 #4
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations:
         fix.enforce_one_space_after_word(
             self, oFile.lines[dViolation['lineNumber']], 'architecture')
         fix.enforce_one_space_before_word(
             self, oFile.lines[dViolation['lineNumber']], 'of')
         fix.enforce_one_space_after_word(
             self, oFile.lines[dViolation['lineNumber']], 'of')
         fix.enforce_one_space_before_word(
             self, oFile.lines[dViolation['lineNumber']], 'is')
예제 #5
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations:
         oLine = oFile.lines[dViolation['lineNumber']]
         fix.enforce_one_space_before_word(self, oLine, self.sWord)
예제 #6
0
 def _fix_violations(self, oFile):
     for iLineNumber in self.violations:
         fix.enforce_one_space_before_word(self, oFile.lines[iLineNumber],
                                           '=>')
예제 #7
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations:
         oLine = utils.get_violating_line(oFile, dViolation)
         fix.enforce_one_space_before_word(self, oLine, self.sWord)
예제 #8
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations:
         fix.enforce_one_space_before_word(
             self, oFile.lines[dViolation['lineNumber']], ':')
예제 #9
0
 def _fix_violations(self, oFile):
     for iLineNumber in self.violations:
         oLine = oFile.lines[iLineNumber]
         fix.enforce_one_space_before_word(self, oLine, 'is')
예제 #10
0
 def _fix_violations(self, oFile):
     for dViolation in self.violations:
         fix.enforce_one_space_before_word(
             self, utils.get_violating_line(oFile, dViolation), ':=')