diff --git a/vsg/rules/parameter_specification/__init__.py b/vsg/rules/parameter_specification/__init__.py index c5c1c6e6..3c6ea275 100644 --- a/vsg/rules/parameter_specification/__init__.py +++ b/vsg/rules/parameter_specification/__init__.py @@ -1,3 +1,4 @@ # -*- coding: utf-8 -*- from .rule_500 import rule_500 +from .rule_501 import rule_501 diff --git a/vsg/rules/parameter_specification/rule_501.py b/vsg/rules/parameter_specification/rule_501.py new file mode 100644 index 00000000..398f4ee4 --- /dev/null +++ b/vsg/rules/parameter_specification/rule_501.py @@ -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")