コード例 #1
0
 def analyze(self, oFile):
     for iLineNumber, oLine in enumerate(oFile.lines):
         if oLine.__dict__[self.condition]:
             check.is_blank_line_before(self, oFile, iLineNumber,
                                        self.sUnless)
コード例 #2
0
 def _analyze(self, oFile, oLine, iLineNumber):
     if oLine.isFirstIf:
         check.is_blank_line_before(self, oFile, iLineNumber, 'isComment')
コード例 #3
0
 def _analyze(self, oFile, oLine, iLineNumber):
     if oLine.__dict__[self.condition]:
         check.is_blank_line_before(self, oFile, iLineNumber, self.sUnless)
コード例 #4
0
ファイル: rule_003.py プロジェクト: willkamp/vhdl-style-guide
 def _analyze(self, oFile, oLine, iLineNumber):
     if oLine.isEntityDeclaration:
         check.is_blank_line_before(self, oFile, iLineNumber, None)
コード例 #5
0
 def analyze(self, oFile):
     for iLineNumber, oLine in enumerate(oFile.lines):
         if oLine.isFirstIf:
             check.is_blank_line_before(self, oFile, iLineNumber, 'isComment')
コード例 #6
0
 def analyze(self, oFile):
     for iLineNumber, oLine in enumerate(oFile.lines):
         if oLine.isEntityDeclaration:
             check.is_blank_line_before(self, oFile, iLineNumber, None)