Issue#1385: Added case rule for in keyword in parameter specifications.
This commit is contained in:
parent
71705a6fb9
commit
9fcb0ee003
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from .rule_500 import rule_500
|
||||
from .rule_501 import rule_501
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from vsg import token
|
||||
from vsg.rules import token_case
|
||||
|
||||
lTokens = []
|
||||
lTokens.append(token.parameter_specification.in_keyword)
|
||||
|
||||
|
||||
class rule_501(token_case):
|
||||
"""
|
||||
This rule checks the **in** keyword has proper case.
|
||||
|
||||
|configuring_uppercase_and_lowercase_rules_link|
|
||||
|
||||
**Violation**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
for lv_thing IN t_thing loop
|
||||
|
||||
**Fix**
|
||||
|
||||
.. code-block:: vhdl
|
||||
|
||||
for lv_thing in t_thing loop
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__(lTokens)
|
||||
self.groups.append("case::keyword")
|
||||
Loading…
Reference in New Issue