コード例 #1
0
ファイル: rule_003.py プロジェクト: imd1/vhdl-style-guide
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'generic_map', '003', token.map_keyword, token.open_parenthesis)
     self.solution = 'Move the ( to the same line as the *generic map* keywords.'
コード例 #2
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'entity', '005', token.identifier, token.is_keyword)
     self.subphase = 1
     self.solution = 'Move *is* keyword next to identifier'
コード例 #3
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'architecture', '006',
                                               token.entity_name,
                                               token.is_keyword)
     self.solution = 'Ensure *is* keyword is on the same line as the entity name.'
コード例 #4
0
ファイル: rule_005.py プロジェクト: pkorpine/vhdl-style-guide
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'context', '005', token.context_keyword, token.identifier)
     self.subphase = 1
     self.solution = 'Move identifier next to context keyword'
コード例 #5
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'context', '010',
                                               token.end_context_keyword,
                                               token.context_simple_name)
     self.subphase = 2
     self.solution = 'Move context_simple_name next to context keyword'
コード例 #6
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'instantiation', '026',
                                               token.map_keyword,
                                               token.open_parenthesis)
     self.solution = 'Move the ( to the same line as the "generic map" keyword.'
コード例 #7
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'context', '006',
                                               token.identifier,
                                               token.is_keyword)
     self.subphase = 2
     self.solution = 'Move *is* keyword next to context identifier'
コード例 #8
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'port', '021', token.port_keyword, token.open_parenthesis)
     self.solution = 'Move the ( to the same line as the "port" keyword.'
コード例 #9
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'component', '005', token.identifier, token.is_keyword)
     self.solution = 'Ensure "is" keyword is on the same line as the entity name.'
コード例 #10
0
ファイル: rule_018.py プロジェクト: imd1/vhdl-style-guide
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'generic', '018',
                                               token.generic_keyword,
                                               token.open_parenthesis)
     self.solution = 'Move the ( to the same line as the *generic* keyword.'
コード例 #11
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'architecture', '005',
                                               token.identifier,
                                               token.of_keyword)
     self.solution = 'Ensure "of" keyword is on the same line as the architecture identifier.'
コード例 #12
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'context', '009',
                                               token.end_keyword,
                                               token.end_context_keyword)
     self.subphase = 1
     self.solution = 'Move identifier next to end keyword'
コード例 #13
0
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'package', '005',
                                               token.identifier,
                                               token.is_keyword)
     self.solution = 'Ensure *is* keyword is on the same line as the "package" keyword.'
コード例 #14
0
ファイル: rule_001.py プロジェクト: pkorpine/vhdl-style-guide
 def __init__(self):
     move_token_next_to_another_token.__init__(self, 'package_body', '001', token.package_simple_name, token.is_keyword)
     self.solution = 'Ensure *is* keyword is on the same line as the "package" keyword.'