From 431cdb92c5ce611df3aa88fa1c8161b6ceff512e Mon Sep 17 00:00:00 2001 From: JHertz5 Date: Sun, 4 Feb 2024 21:23:23 +0000 Subject: [PATCH] Issue#1117 Modifed initialisation of the `Rule` class's `name` and `identifier` attributes to reduce duplication. (#1118) * Issue#1117 Modifed initialisation of the `Rule` class's `identifier` property to reduce duplication. * Issue#1117 Modifed initialisation of the `Rule` class's `unique_id` property to make the `identifier` input redundant. * Issue#1117: Updated Rule.name attribute to be initialised from the class's `__module__` variable. Modified `deprecated_rule` to not initialise `name` and `identifier` attributes. Modified rule_localized_001 to force the local rule's `name` since this can't be extracted from the module. Modified test_rule to force Rule's `name`, `identifier` and `unique_id` in some tests. * Issue#1117: Removed now-redundant name and identifier input arguments on rule `__init__` methods. Updated rule_localized_001 to force the rule's name. Update the local rules documentation. * Issue#1117: Removed unused exception in get_rule_name. * Issue#1117: Updates after merging master. * Converting match case to if statement to support python pre version 3.10Converting match case to if statement to support python pre version 3.10. --------- Co-authored-by: Jeremiah Leary --- docs/localizing.rst | 21 ++++++---- vsg/block_rule.py | 4 +- vsg/deprecated_rule.py | 4 +- vsg/proposed_rule.py | 4 +- vsg/rule.py | 41 +++++++++++++++++-- vsg/rule_group/alignment.py | 4 +- vsg/rule_group/blank_line.py | 4 +- vsg/rule_group/case.py | 4 +- vsg/rule_group/indent.py | 4 +- vsg/rule_group/length.py | 4 +- vsg/rule_group/naming.py | 4 +- vsg/rule_group/structure.py | 4 +- vsg/rule_group/whitespace.py | 4 +- vsg/rules/after/rule_001.py | 2 +- vsg/rules/after/rule_002.py | 2 +- vsg/rules/after/rule_003.py | 2 +- vsg/rules/alias_declaration/rule_001.py | 2 +- vsg/rules/alias_declaration/rule_100.py | 2 +- vsg/rules/alias_declaration/rule_101.py | 2 +- vsg/rules/alias_declaration/rule_102.py | 2 +- vsg/rules/alias_declaration/rule_103.py | 2 +- vsg/rules/alias_declaration/rule_300.py | 2 +- vsg/rules/alias_declaration/rule_500.py | 2 +- vsg/rules/alias_declaration/rule_501.py | 2 +- vsg/rules/alias_declaration/rule_502.py | 2 +- vsg/rules/alias_declaration/rule_503.py | 2 +- vsg/rules/alias_declaration/rule_600.py | 2 +- vsg/rules/alias_declaration/rule_601.py | 2 +- ...ting_with_token_and_stopping_with_token.py | 4 +- ..._comment_above_line_starting_with_token.py | 4 +- ...ight_token_if_right_token_starts_a_line.py | 4 +- .../align_tokens_in_region_between_tokens.py | 4 +- ...ens_skipping_lines_starting_with_tokens.py | 4 +- ...on_between_tokens_unless_between_tokens.py | 4 +- ...en_between_tokens_unless_between_tokens.py | 4 +- vsg/rules/architecture/rule_001.py | 2 +- vsg/rules/architecture/rule_002.py | 2 +- vsg/rules/architecture/rule_003.py | 2 +- vsg/rules/architecture/rule_004.py | 2 +- vsg/rules/architecture/rule_005.py | 2 +- vsg/rules/architecture/rule_006.py | 2 +- vsg/rules/architecture/rule_007.py | 2 +- vsg/rules/architecture/rule_008.py | 2 +- vsg/rules/architecture/rule_009.py | 2 +- vsg/rules/architecture/rule_010.py | 2 +- vsg/rules/architecture/rule_011.py | 2 +- vsg/rules/architecture/rule_012.py | 2 +- vsg/rules/architecture/rule_013.py | 2 +- vsg/rules/architecture/rule_014.py | 2 +- vsg/rules/architecture/rule_015.py | 2 +- vsg/rules/architecture/rule_016.py | 2 +- vsg/rules/architecture/rule_017.py | 2 +- vsg/rules/architecture/rule_018.py | 2 +- vsg/rules/architecture/rule_019.py | 2 +- vsg/rules/architecture/rule_020.py | 2 +- vsg/rules/architecture/rule_021.py | 2 +- vsg/rules/architecture/rule_022.py | 2 +- vsg/rules/architecture/rule_024.py | 2 +- vsg/rules/architecture/rule_025.py | 2 +- vsg/rules/architecture/rule_026.py | 2 +- vsg/rules/architecture/rule_027.py | 2 +- vsg/rules/architecture/rule_028.py | 2 +- vsg/rules/architecture/rule_029.py | 2 +- vsg/rules/architecture/rule_030.py | 2 +- vsg/rules/architecture/rule_031.py | 2 +- vsg/rules/architecture/rule_032.py | 2 +- vsg/rules/architecture/rule_033.py | 2 +- vsg/rules/architecture/rule_200.py | 2 +- vsg/rules/architecture/rule_400.py | 2 +- vsg/rules/architecture/rule_600.py | 2 +- vsg/rules/architecture/rule_601.py | 2 +- vsg/rules/assert_statement/rule_001.py | 2 +- vsg/rules/assert_statement/rule_002.py | 2 +- vsg/rules/assert_statement/rule_003.py | 2 +- vsg/rules/assert_statement/rule_004.py | 2 +- vsg/rules/assert_statement/rule_005.py | 2 +- vsg/rules/assert_statement/rule_100.py | 2 +- vsg/rules/assert_statement/rule_101.py | 2 +- vsg/rules/assert_statement/rule_102.py | 2 +- vsg/rules/assert_statement/rule_400.py | 2 +- vsg/rules/assert_statement/rule_500.py | 2 +- vsg/rules/assert_statement/rule_501.py | 2 +- vsg/rules/assert_statement/rule_502.py | 2 +- vsg/rules/attribute/rule_001.py | 2 +- vsg/rules/attribute/rule_002.py | 2 +- vsg/rules/attribute/rule_500.py | 2 +- vsg/rules/attribute_declaration/rule_100.py | 2 +- vsg/rules/attribute_declaration/rule_101.py | 2 +- vsg/rules/attribute_declaration/rule_300.py | 2 +- vsg/rules/attribute_declaration/rule_500.py | 2 +- vsg/rules/attribute_declaration/rule_501.py | 2 +- vsg/rules/attribute_declaration/rule_502.py | 2 +- vsg/rules/attribute_specification/rule_100.py | 2 +- vsg/rules/attribute_specification/rule_101.py | 2 +- vsg/rules/attribute_specification/rule_300.py | 2 +- vsg/rules/attribute_specification/rule_500.py | 2 +- vsg/rules/attribute_specification/rule_501.py | 2 +- vsg/rules/attribute_specification/rule_502.py | 2 +- vsg/rules/attribute_specification/rule_503.py | 2 +- ...ank_line_above_line_starting_with_token.py | 4 +- ...starting_with_token_when_between_tokens.py | 4 +- ...ine_ending_with_several_possible_tokens.py | 4 +- ...blank_line_below_line_ending_with_token.py | 4 +- vsg/rules/blank_lines_between_token_pairs.py | 4 +- vsg/rules/block/rule_001.py | 2 +- vsg/rules/block/rule_002.py | 2 +- vsg/rules/block/rule_003.py | 2 +- vsg/rules/block/rule_004.py | 2 +- vsg/rules/block/rule_005.py | 2 +- vsg/rules/block/rule_006.py | 2 +- vsg/rules/block/rule_007.py | 2 +- vsg/rules/block/rule_100.py | 2 +- vsg/rules/block/rule_101.py | 2 +- vsg/rules/block/rule_200.py | 2 +- vsg/rules/block/rule_201.py | 2 +- vsg/rules/block/rule_202.py | 2 +- vsg/rules/block/rule_203.py | 2 +- vsg/rules/block/rule_204.py | 2 +- vsg/rules/block/rule_205.py | 2 +- vsg/rules/block/rule_300.py | 2 +- vsg/rules/block/rule_301.py | 2 +- vsg/rules/block/rule_302.py | 2 +- vsg/rules/block/rule_400.py | 2 +- vsg/rules/block/rule_401.py | 2 +- vsg/rules/block/rule_402.py | 2 +- vsg/rules/block/rule_500.py | 2 +- vsg/rules/block/rule_501.py | 2 +- vsg/rules/block/rule_502.py | 2 +- vsg/rules/block/rule_503.py | 2 +- vsg/rules/block/rule_504.py | 2 +- vsg/rules/block/rule_505.py | 2 +- vsg/rules/block/rule_506.py | 2 +- vsg/rules/block/rule_600.py | 2 +- vsg/rules/block/rule_601.py | 2 +- vsg/rules/block_comment/' | 2 +- vsg/rules/block_comment/rule_001.py | 2 +- vsg/rules/block_comment/rule_002.py | 2 +- vsg/rules/block_comment/rule_003.py | 2 +- vsg/rules/case/rule_001.py | 2 +- vsg/rules/case/rule_002.py | 2 +- vsg/rules/case/rule_003.py | 2 +- vsg/rules/case/rule_004.py | 2 +- vsg/rules/case/rule_005.py | 2 +- vsg/rules/case/rule_006.py | 2 +- vsg/rules/case/rule_007.py | 2 +- vsg/rules/case/rule_008.py | 2 +- vsg/rules/case/rule_009.py | 2 +- vsg/rules/case/rule_010.py | 2 +- vsg/rules/case/rule_011.py | 2 +- vsg/rules/case/rule_012.py | 2 +- vsg/rules/case/rule_013.py | 2 +- vsg/rules/case/rule_014.py | 2 +- vsg/rules/case/rule_015.py | 2 +- vsg/rules/case/rule_016.py | 2 +- vsg/rules/case/rule_017.py | 2 +- vsg/rules/case/rule_018.py | 2 +- vsg/rules/case/rule_019.py | 2 +- vsg/rules/case/rule_020.py | 2 +- vsg/rules/case/rule_021.py | 2 +- vsg/rules/case/rule_200.py | 2 +- vsg/rules/case/rule_201.py | 2 +- .../case_generate_alternative/rule_300.py | 2 +- .../case_generate_alternative/rule_500.py | 2 +- .../case_generate_alternative/rule_501.py | 2 +- vsg/rules/case_generate_statement/rule_400.py | 2 +- vsg/rules/case_generate_statement/rule_500.py | 2 +- vsg/rules/case_generate_statement/rule_501.py | 2 +- vsg/rules/comment/rule_004.py | 2 +- vsg/rules/comment/rule_010.py | 2 +- vsg/rules/comment/rule_011.py | 2 +- vsg/rules/comment/rule_012.py | 2 +- vsg/rules/comment/rule_100.py | 2 +- vsg/rules/component/rule_001.py | 2 +- vsg/rules/component/rule_002.py | 2 +- vsg/rules/component/rule_003.py | 2 +- vsg/rules/component/rule_004.py | 2 +- vsg/rules/component/rule_005.py | 2 +- vsg/rules/component/rule_006.py | 2 +- vsg/rules/component/rule_007.py | 2 +- vsg/rules/component/rule_008.py | 2 +- vsg/rules/component/rule_009.py | 2 +- vsg/rules/component/rule_010.py | 2 +- vsg/rules/component/rule_011.py | 2 +- vsg/rules/component/rule_012.py | 2 +- vsg/rules/component/rule_013.py | 2 +- vsg/rules/component/rule_014.py | 2 +- vsg/rules/component/rule_015.py | 2 +- vsg/rules/component/rule_016.py | 2 +- vsg/rules/component/rule_017.py | 2 +- vsg/rules/component/rule_018.py | 2 +- vsg/rules/component/rule_019.py | 2 +- vsg/rules/component/rule_020.py | 2 +- vsg/rules/component/rule_021.py | 2 +- vsg/rules/concurrent/rule_001.py | 2 +- vsg/rules/concurrent/rule_002.py | 2 +- vsg/rules/concurrent/rule_003.py | 2 +- vsg/rules/concurrent/rule_004.py | 2 +- vsg/rules/concurrent/rule_005.py | 2 +- vsg/rules/concurrent/rule_006.py | 2 +- vsg/rules/concurrent/rule_007.py | 2 +- vsg/rules/concurrent/rule_008.py | 2 +- vsg/rules/concurrent/rule_009.py | 2 +- vsg/rules/concurrent/rule_010.py | 2 +- vsg/rules/concurrent/rule_011.py | 2 +- vsg/rules/concurrent/rule_012.py | 2 +- vsg/rules/concurrent/rule_400.py | 2 +- vsg/rules/concurrent/rule_401.py | 2 +- vsg/rules/conditional_expressions/rule_100.py | 2 +- vsg/rules/conditional_expressions/rule_101.py | 2 +- vsg/rules/conditional_expressions/rule_102.py | 2 +- vsg/rules/conditional_expressions/rule_103.py | 2 +- vsg/rules/conditional_expressions/rule_500.py | 2 +- vsg/rules/conditional_expressions/rule_501.py | 2 +- vsg/rules/conditional_waveforms/rule_001.py | 2 +- vsg/rules/conditional_waveforms/rule_100.py | 2 +- vsg/rules/conditional_waveforms/rule_101.py | 2 +- vsg/rules/conditional_waveforms/rule_102.py | 2 +- vsg/rules/conditional_waveforms/rule_103.py | 2 +- vsg/rules/conditional_waveforms/rule_500.py | 2 +- vsg/rules/conditional_waveforms/rule_501.py | 2 +- vsg/rules/consistent_token_case.py | 4 +- vsg/rules/constant/rule_001.py | 2 +- vsg/rules/constant/rule_002.py | 2 +- vsg/rules/constant/rule_003.py | 2 +- vsg/rules/constant/rule_004.py | 2 +- vsg/rules/constant/rule_005.py | 2 +- vsg/rules/constant/rule_006.py | 2 +- vsg/rules/constant/rule_007.py | 2 +- vsg/rules/constant/rule_010.py | 2 +- vsg/rules/constant/rule_011.py | 2 +- vsg/rules/constant/rule_012.py | 2 +- vsg/rules/constant/rule_013.py | 2 +- vsg/rules/constant/rule_014.py | 2 +- vsg/rules/constant/rule_015.py | 2 +- vsg/rules/constant/rule_016.py | 2 +- vsg/rules/constant/rule_017.py | 2 +- vsg/rules/constant/rule_100.py | 2 +- vsg/rules/constant/rule_101.py | 2 +- vsg/rules/constant/rule_200.py | 2 +- vsg/rules/constant/rule_400.py | 2 +- vsg/rules/constant/rule_600.py | 2 +- vsg/rules/context/rule_001.py | 2 +- vsg/rules/context/rule_002.py | 2 +- vsg/rules/context/rule_003.py | 2 +- vsg/rules/context/rule_004.py | 2 +- vsg/rules/context/rule_005.py | 2 +- vsg/rules/context/rule_006.py | 2 +- vsg/rules/context/rule_007.py | 2 +- vsg/rules/context/rule_008.py | 2 +- vsg/rules/context/rule_009.py | 2 +- vsg/rules/context/rule_010.py | 2 +- vsg/rules/context/rule_011.py | 2 +- vsg/rules/context/rule_012.py | 2 +- vsg/rules/context/rule_013.py | 2 +- vsg/rules/context/rule_014.py | 2 +- vsg/rules/context/rule_015.py | 2 +- vsg/rules/context/rule_016.py | 2 +- vsg/rules/context/rule_017.py | 2 +- vsg/rules/context/rule_018.py | 2 +- vsg/rules/context/rule_019.py | 2 +- vsg/rules/context/rule_020.py | 2 +- vsg/rules/context/rule_021.py | 2 +- vsg/rules/context/rule_022.py | 2 +- vsg/rules/context/rule_023.py | 2 +- vsg/rules/context/rule_024.py | 2 +- vsg/rules/context/rule_025.py | 2 +- vsg/rules/context/rule_026.py | 2 +- vsg/rules/context/rule_027.py | 2 +- vsg/rules/context/rule_028.py | 2 +- vsg/rules/context_ref/rule_001.py | 2 +- vsg/rules/context_ref/rule_002.py | 2 +- vsg/rules/context_ref/rule_003.py | 2 +- vsg/rules/context_ref/rule_004.py | 2 +- vsg/rules/context_ref/rule_005.py | 2 +- vsg/rules/context_ref/rule_006.py | 2 +- vsg/rules/context_ref/rule_007.py | 2 +- vsg/rules/context_ref/rule_008.py | 2 +- vsg/rules/context_ref/rule_009.py | 2 +- vsg/rules/context_ref/rule_500.py | 2 +- vsg/rules/context_ref/rule_501.py | 2 +- vsg/rules/declarative_part/rule_400.py | 2 +- vsg/rules/element_association/rule_100.py | 2 +- vsg/rules/element_association/rule_101.py | 2 +- vsg/rules/entity/rule_001.py | 2 +- vsg/rules/entity/rule_002.py | 2 +- vsg/rules/entity/rule_003.py | 2 +- vsg/rules/entity/rule_004.py | 2 +- vsg/rules/entity/rule_005.py | 2 +- vsg/rules/entity/rule_006.py | 2 +- vsg/rules/entity/rule_007.py | 2 +- vsg/rules/entity/rule_008.py | 2 +- vsg/rules/entity/rule_009.py | 2 +- vsg/rules/entity/rule_010.py | 2 +- vsg/rules/entity/rule_011.py | 2 +- vsg/rules/entity/rule_012.py | 2 +- vsg/rules/entity/rule_013.py | 2 +- vsg/rules/entity/rule_014.py | 2 +- vsg/rules/entity/rule_015.py | 2 +- vsg/rules/entity/rule_016.py | 2 +- vsg/rules/entity/rule_017.py | 2 +- vsg/rules/entity/rule_018.py | 2 +- vsg/rules/entity/rule_019.py | 2 +- vsg/rules/entity/rule_020.py | 2 +- vsg/rules/entity/rule_021.py | 2 +- vsg/rules/entity/rule_022.py | 2 +- vsg/rules/entity/rule_023.py | 2 +- vsg/rules/entity/rule_024.py | 2 +- vsg/rules/entity/rule_025.py | 2 +- vsg/rules/entity/rule_026.py | 2 +- vsg/rules/entity/rule_027.py | 2 +- vsg/rules/entity/rule_028.py | 2 +- vsg/rules/entity/rule_029.py | 2 +- vsg/rules/entity/rule_200.py | 2 +- vsg/rules/entity/rule_201.py | 2 +- vsg/rules/entity/rule_202.py | 2 +- vsg/rules/entity/rule_203.py | 2 +- vsg/rules/entity/rule_300.py | 2 +- vsg/rules/entity/rule_500.py | 2 +- vsg/rules/entity/rule_600.py | 2 +- vsg/rules/entity_specification/rule_100.py | 2 +- vsg/rules/entity_specification/rule_101.py | 2 +- vsg/rules/entity_specification/rule_500.py | 2 +- vsg/rules/entity_specification/rule_501.py | 2 +- vsg/rules/entity_specification/rule_502.py | 2 +- vsg/rules/entity_specification/rule_503.py | 2 +- ...stence_of_tokens_which_should_not_occur.py | 4 +- vsg/rules/exit_statement/rule_300.py | 2 +- vsg/rules/experiment.py | 4 +- vsg/rules/exponent/rule_500.py | 2 +- vsg/rules/file_length.py | 4 +- vsg/rules/file_statement/rule_001.py | 2 +- vsg/rules/file_statement/rule_002.py | 2 +- vsg/rules/file_statement/rule_003.py | 2 +- vsg/rules/file_statement/rule_100.py | 2 +- vsg/rules/for_generate_statement/rule_500.py | 2 +- vsg/rules/for_generate_statement/rule_501.py | 2 +- vsg/rules/for_loop/rule_001.py | 2 +- vsg/rules/for_loop/rule_002.py | 2 +- vsg/rules/for_loop/rule_003.py | 2 +- vsg/rules/for_loop/rule_004.py | 2 +- vsg/rules/for_loop/rule_005.py | 2 +- ...t_in_association_element_between_tokens.py | 4 +- vsg/rules/function/rule_001.py | 2 +- vsg/rules/function/rule_002.py | 2 +- vsg/rules/function/rule_003.py | 2 +- vsg/rules/function/rule_004.py | 2 +- vsg/rules/function/rule_005.py | 2 +- vsg/rules/function/rule_006.py | 2 +- vsg/rules/function/rule_007.py | 2 +- vsg/rules/function/rule_008.py | 2 +- vsg/rules/function/rule_009.py | 2 +- vsg/rules/function/rule_010.py | 2 +- vsg/rules/function/rule_012.py | 2 +- vsg/rules/function/rule_013.py | 2 +- vsg/rules/function/rule_014.py | 2 +- vsg/rules/function/rule_015.py | 2 +- vsg/rules/function/rule_016.py | 2 +- vsg/rules/function/rule_017.py | 2 +- vsg/rules/function/rule_018.py | 2 +- vsg/rules/function/rule_019.py | 2 +- vsg/rules/function/rule_100.py | 2 +- vsg/rules/function/rule_101.py | 2 +- vsg/rules/function/rule_201.py | 2 +- vsg/rules/function/rule_202.py | 2 +- vsg/rules/function/rule_203.py | 2 +- vsg/rules/function/rule_204.py | 2 +- vsg/rules/function/rule_300.py | 2 +- vsg/rules/function/rule_501.py | 2 +- vsg/rules/function/rule_502.py | 2 +- vsg/rules/function/rule_506.py | 2 +- vsg/rules/function/rule_600.py | 2 +- vsg/rules/function/rule_601.py | 2 +- vsg/rules/generate/rule_001.py | 2 +- vsg/rules/generate/rule_002.py | 2 +- vsg/rules/generate/rule_003.py | 2 +- vsg/rules/generate/rule_004.py | 2 +- vsg/rules/generate/rule_005.py | 2 +- vsg/rules/generate/rule_006.py | 2 +- vsg/rules/generate/rule_007.py | 2 +- vsg/rules/generate/rule_008.py | 2 +- vsg/rules/generate/rule_009.py | 2 +- vsg/rules/generate/rule_010.py | 2 +- vsg/rules/generate/rule_011.py | 2 +- vsg/rules/generate/rule_012.py | 2 +- vsg/rules/generate/rule_013.py | 2 +- vsg/rules/generate/rule_014.py | 2 +- vsg/rules/generate/rule_015.py | 2 +- vsg/rules/generate/rule_016.py | 2 +- vsg/rules/generate/rule_017.py | 2 +- vsg/rules/generate/rule_018.py | 2 +- vsg/rules/generate/rule_019.py | 2 +- vsg/rules/generate/rule_400.py | 2 +- vsg/rules/generate/rule_401.py | 2 +- vsg/rules/generate/rule_402.py | 2 +- vsg/rules/generate/rule_403.py | 2 +- vsg/rules/generate/rule_404.py | 2 +- vsg/rules/generate/rule_405.py | 2 +- vsg/rules/generate/rule_500.py | 2 +- vsg/rules/generate/rule_501.py | 2 +- vsg/rules/generate/rule_600.py | 2 +- vsg/rules/generate/rule_601.py | 2 +- vsg/rules/generate/rule_602.py | 2 +- vsg/rules/generic/rule_001.py | 2 +- vsg/rules/generic/rule_002.py | 2 +- vsg/rules/generic/rule_003.py | 2 +- vsg/rules/generic/rule_004.py | 2 +- vsg/rules/generic/rule_005.py | 2 +- vsg/rules/generic/rule_006.py | 2 +- vsg/rules/generic/rule_007.py | 2 +- vsg/rules/generic/rule_008.py | 2 +- vsg/rules/generic/rule_009.py | 2 +- vsg/rules/generic/rule_010.py | 2 +- vsg/rules/generic/rule_013.py | 2 +- vsg/rules/generic/rule_014.py | 2 +- vsg/rules/generic/rule_016.py | 2 +- vsg/rules/generic/rule_017.py | 2 +- vsg/rules/generic/rule_018.py | 2 +- vsg/rules/generic/rule_019.py | 2 +- vsg/rules/generic/rule_020.py | 2 +- vsg/rules/generic/rule_021.py | 2 +- vsg/rules/generic/rule_600.py | 2 +- vsg/rules/generic_map/rule_001.py | 2 +- vsg/rules/generic_map/rule_002.py | 2 +- vsg/rules/generic_map/rule_003.py | 2 +- vsg/rules/generic_map/rule_004.py | 2 +- vsg/rules/generic_map/rule_005.py | 2 +- vsg/rules/generic_map/rule_006.py | 2 +- vsg/rules/generic_map/rule_007.py | 2 +- vsg/rules/generic_map/rule_008.py | 2 +- vsg/rules/generic_map/rule_600.py | 2 +- vsg/rules/generic_map/rule_601.py | 2 +- vsg/rules/ieee/rule_500.py | 2 +- vsg/rules/if_generate_statement/rule_300.py | 2 +- vsg/rules/if_generate_statement/rule_301.py | 2 +- vsg/rules/if_generate_statement/rule_500.py | 2 +- vsg/rules/if_generate_statement/rule_501.py | 2 +- vsg/rules/if_generate_statement/rule_502.py | 2 +- vsg/rules/if_generate_statement/rule_503.py | 2 +- vsg/rules/if_statement/rule_001.py | 2 +- vsg/rules/if_statement/rule_002.py | 2 +- vsg/rules/if_statement/rule_003.py | 2 +- vsg/rules/if_statement/rule_004.py | 2 +- vsg/rules/if_statement/rule_005.py | 2 +- vsg/rules/if_statement/rule_006.py | 2 +- vsg/rules/if_statement/rule_007.py | 2 +- vsg/rules/if_statement/rule_008.py | 2 +- vsg/rules/if_statement/rule_009.py | 2 +- vsg/rules/if_statement/rule_010.py | 2 +- vsg/rules/if_statement/rule_011.py | 2 +- vsg/rules/if_statement/rule_012.py | 2 +- vsg/rules/if_statement/rule_013.py | 2 +- vsg/rules/if_statement/rule_014.py | 2 +- vsg/rules/if_statement/rule_015.py | 2 +- vsg/rules/if_statement/rule_020.py | 2 +- vsg/rules/if_statement/rule_021.py | 2 +- vsg/rules/if_statement/rule_022.py | 2 +- vsg/rules/if_statement/rule_023.py | 2 +- vsg/rules/if_statement/rule_024.py | 2 +- vsg/rules/if_statement/rule_025.py | 2 +- vsg/rules/if_statement/rule_026.py | 2 +- vsg/rules/if_statement/rule_027.py | 2 +- vsg/rules/if_statement/rule_028.py | 2 +- vsg/rules/if_statement/rule_029.py | 2 +- vsg/rules/if_statement/rule_030.py | 2 +- vsg/rules/if_statement/rule_031.py | 2 +- vsg/rules/if_statement/rule_032.py | 2 +- vsg/rules/if_statement/rule_033.py | 2 +- vsg/rules/if_statement/rule_034.py | 2 +- vsg/rules/if_statement/rule_035.py | 2 +- vsg/rules/if_statement/rule_036.py | 2 +- ...oken_if_it_is_not_followed_by_a_comment.py | 4 +- ...llowed_by_a_comment_when_between_tokens.py | 4 +- ...ken_if_it_does_not_exist_between_tokens.py | 4 +- ...t_between_tokens_using_value_from_token.py | 4 +- ...t_between_tokens_using_value_from_token.py | 4 +- ...okens_if_it_does_not_exist_before_token.py | 4 +- ...token_if_it_does_not_exist_before_token.py | 4 +- ...t_between_tokens_using_value_from_token.py | 4 +- ...token_if_it_does_not_exist_before_token.py | 4 +- vsg/rules/instantiation/rule_001.py | 2 +- vsg/rules/instantiation/rule_002.py | 2 +- vsg/rules/instantiation/rule_003.py | 2 +- vsg/rules/instantiation/rule_004.py | 2 +- vsg/rules/instantiation/rule_005.py | 2 +- vsg/rules/instantiation/rule_006.py | 2 +- vsg/rules/instantiation/rule_007.py | 2 +- vsg/rules/instantiation/rule_008.py | 2 +- vsg/rules/instantiation/rule_009.py | 2 +- vsg/rules/instantiation/rule_010.py | 2 +- vsg/rules/instantiation/rule_011.py | 2 +- vsg/rules/instantiation/rule_012.py | 2 +- vsg/rules/instantiation/rule_013.py | 2 +- vsg/rules/instantiation/rule_014.py | 2 +- vsg/rules/instantiation/rule_016.py | 2 +- vsg/rules/instantiation/rule_017.py | 2 +- vsg/rules/instantiation/rule_018.py | 2 +- vsg/rules/instantiation/rule_019.py | 2 +- vsg/rules/instantiation/rule_020.py | 2 +- vsg/rules/instantiation/rule_021.py | 2 +- vsg/rules/instantiation/rule_022.py | 2 +- vsg/rules/instantiation/rule_023.py | 2 +- vsg/rules/instantiation/rule_024.py | 2 +- vsg/rules/instantiation/rule_025.py | 2 +- vsg/rules/instantiation/rule_026.py | 2 +- vsg/rules/instantiation/rule_027.py | 2 +- vsg/rules/instantiation/rule_028.py | 2 +- vsg/rules/instantiation/rule_029.py | 2 +- vsg/rules/instantiation/rule_030.py | 2 +- vsg/rules/instantiation/rule_031.py | 2 +- vsg/rules/instantiation/rule_032.py | 2 +- vsg/rules/instantiation/rule_033.py | 2 +- vsg/rules/instantiation/rule_034.py | 2 +- vsg/rules/instantiation/rule_035.py | 2 +- vsg/rules/instantiation/rule_600.py | 2 +- vsg/rules/instantiation/rule_601.py | 2 +- vsg/rules/is_token_value_one_of.py | 4 +- vsg/rules/iteration_scheme/rule_100.py | 2 +- vsg/rules/iteration_scheme/rule_101.py | 2 +- vsg/rules/iteration_scheme/rule_300.py | 2 +- vsg/rules/iteration_scheme/rule_301.py | 2 +- vsg/rules/iteration_scheme/rule_500.py | 2 +- vsg/rules/iteration_scheme/rule_501.py | 2 +- vsg/rules/length/rule_001.py | 2 +- vsg/rules/length/rule_002.py | 2 +- vsg/rules/length/rule_003.py | 2 +- vsg/rules/library/rule_001.py | 2 +- vsg/rules/library/rule_002.py | 2 +- vsg/rules/library/rule_003.py | 2 +- vsg/rules/library/rule_004.py | 2 +- vsg/rules/library/rule_005.py | 2 +- vsg/rules/library/rule_006.py | 2 +- vsg/rules/library/rule_007.py | 2 +- vsg/rules/library/rule_008.py | 2 +- vsg/rules/library/rule_009.py | 2 +- vsg/rules/library/rule_010.py | 2 +- vsg/rules/library/rule_011.py | 2 +- vsg/rules/library/rule_500.py | 2 +- vsg/rules/library/rule_600.py | 4 +- vsg/rules/line_length.py | 4 +- vsg/rules/logical_operator/rule_500.py | 2 +- vsg/rules/loop_statement/rule_001.py | 2 +- vsg/rules/loop_statement/rule_002.py | 2 +- vsg/rules/loop_statement/rule_003.py | 2 +- vsg/rules/loop_statement/rule_004.py | 2 +- vsg/rules/loop_statement/rule_005.py | 2 +- vsg/rules/loop_statement/rule_006.py | 2 +- vsg/rules/loop_statement/rule_007.py | 2 +- vsg/rules/loop_statement/rule_100.py | 2 +- vsg/rules/loop_statement/rule_101.py | 2 +- vsg/rules/loop_statement/rule_102.py | 2 +- vsg/rules/loop_statement/rule_103.py | 2 +- vsg/rules/loop_statement/rule_104.py | 2 +- vsg/rules/loop_statement/rule_200.py | 2 +- vsg/rules/loop_statement/rule_201.py | 2 +- vsg/rules/loop_statement/rule_202.py | 2 +- vsg/rules/loop_statement/rule_203.py | 2 +- vsg/rules/loop_statement/rule_300.py | 2 +- vsg/rules/loop_statement/rule_301.py | 2 +- vsg/rules/loop_statement/rule_302.py | 2 +- vsg/rules/loop_statement/rule_500.py | 2 +- vsg/rules/loop_statement/rule_501.py | 2 +- vsg/rules/loop_statement/rule_502.py | 2 +- vsg/rules/loop_statement/rule_503.py | 2 +- vsg/rules/loop_statement/rule_504.py | 2 +- vsg/rules/loop_statement/rule_600.py | 2 +- vsg/rules/loop_statement/rule_601.py | 2 +- vsg/rules/loop_statement/rule_602.py | 2 +- vsg/rules/loop_statement/rule_603.py | 2 +- vsg/rules/move_token.py | 4 +- ...token_left_to_next_non_whitespace_token.py | 4 +- vsg/rules/move_token_next_to_another_token.py | 4 +- ...other_token_if_it_exists_between_tokens.py | 4 +- ...oken_right_to_next_non_whitespace_token.py | 4 +- .../move_token_sequences_left_of_token.py | 4 +- ...ible_tokens_if_it_exists_between_tokens.py | 4 +- .../multiline_alignment_between_tokens.py | 6 +-- vsg/rules/multiline_array_alignment.py | 4 +- vsg/rules/multiline_conditional_alignment.py | 4 +- vsg/rules/multiline_constraint_structure.py | 4 +- .../multiline_procedure_call_structure.py | 4 +- vsg/rules/multiline_simple_structure.py | 4 +- vsg/rules/multiline_structure.py | 4 +- ...line_subprogram_specification_structure.py | 4 +- vsg/rules/n_spaces_before_and_after_tokens.py | 4 +- vsg/rules/number_of_lines_between_tokens.py | 4 +- vsg/rules/package/rule_001.py | 2 +- vsg/rules/package/rule_002.py | 2 +- vsg/rules/package/rule_003.py | 2 +- vsg/rules/package/rule_004.py | 2 +- vsg/rules/package/rule_005.py | 2 +- vsg/rules/package/rule_006.py | 2 +- vsg/rules/package/rule_007.py | 2 +- vsg/rules/package/rule_008.py | 2 +- vsg/rules/package/rule_009.py | 2 +- vsg/rules/package/rule_010.py | 2 +- vsg/rules/package/rule_011.py | 2 +- vsg/rules/package/rule_012.py | 2 +- vsg/rules/package/rule_013.py | 2 +- vsg/rules/package/rule_014.py | 2 +- vsg/rules/package/rule_015.py | 2 +- vsg/rules/package/rule_016.py | 2 +- vsg/rules/package/rule_017.py | 2 +- vsg/rules/package/rule_018.py | 2 +- vsg/rules/package/rule_019.py | 2 +- vsg/rules/package/rule_400.py | 2 +- vsg/rules/package/rule_401.py | 2 +- vsg/rules/package/rule_402.py | 2 +- vsg/rules/package_body/rule_001.py | 2 +- vsg/rules/package_body/rule_002.py | 2 +- vsg/rules/package_body/rule_003.py | 2 +- vsg/rules/package_body/rule_100.py | 2 +- vsg/rules/package_body/rule_101.py | 2 +- vsg/rules/package_body/rule_200.py | 2 +- vsg/rules/package_body/rule_201.py | 2 +- vsg/rules/package_body/rule_202.py | 2 +- vsg/rules/package_body/rule_203.py | 2 +- vsg/rules/package_body/rule_300.py | 2 +- vsg/rules/package_body/rule_301.py | 2 +- vsg/rules/package_body/rule_400.py | 2 +- vsg/rules/package_body/rule_401.py | 2 +- vsg/rules/package_body/rule_402.py | 2 +- vsg/rules/package_body/rule_500.py | 2 +- vsg/rules/package_body/rule_501.py | 2 +- vsg/rules/package_body/rule_502.py | 2 +- vsg/rules/package_body/rule_503.py | 2 +- vsg/rules/package_body/rule_504.py | 2 +- vsg/rules/package_body/rule_505.py | 2 +- vsg/rules/package_body/rule_506.py | 2 +- vsg/rules/package_body/rule_507.py | 2 +- vsg/rules/package_body/rule_600.py | 2 +- vsg/rules/package_body/rule_601.py | 2 +- vsg/rules/port/rule_001.py | 2 +- vsg/rules/port/rule_002.py | 2 +- vsg/rules/port/rule_003.py | 2 +- vsg/rules/port/rule_004.py | 2 +- vsg/rules/port/rule_005.py | 2 +- vsg/rules/port/rule_006.py | 2 +- vsg/rules/port/rule_007.py | 2 +- vsg/rules/port/rule_008.py | 2 +- vsg/rules/port/rule_009.py | 2 +- vsg/rules/port/rule_010.py | 2 +- vsg/rules/port/rule_011.py | 2 +- vsg/rules/port/rule_012.py | 2 +- vsg/rules/port/rule_013.py | 2 +- vsg/rules/port/rule_014.py | 2 +- vsg/rules/port/rule_015.py | 2 +- vsg/rules/port/rule_016.py | 2 +- vsg/rules/port/rule_017.py | 2 +- vsg/rules/port/rule_018.py | 2 +- vsg/rules/port/rule_019.py | 2 +- vsg/rules/port/rule_020.py | 2 +- vsg/rules/port/rule_021.py | 2 +- vsg/rules/port/rule_022.py | 2 +- vsg/rules/port/rule_023.py | 2 +- vsg/rules/port/rule_024.py | 2 +- vsg/rules/port/rule_025.py | 2 +- vsg/rules/port/rule_026.py | 2 +- vsg/rules/port/rule_027.py | 2 +- vsg/rules/port/rule_600.py | 2 +- vsg/rules/port/rule_601.py | 2 +- vsg/rules/port/rule_602.py | 2 +- vsg/rules/port/rule_603.py | 2 +- vsg/rules/port/rule_604.py | 2 +- vsg/rules/port/rule_605.py | 2 +- vsg/rules/port/rule_606.py | 2 +- vsg/rules/port/rule_607.py | 2 +- vsg/rules/port/rule_608.py | 2 +- vsg/rules/port/rule_609.py | 2 +- vsg/rules/port_map/rule_001.py | 2 +- vsg/rules/port_map/rule_002.py | 2 +- vsg/rules/port_map/rule_003.py | 2 +- vsg/rules/port_map/rule_004.py | 2 +- vsg/rules/port_map/rule_005.py | 2 +- vsg/rules/port_map/rule_007.py | 2 +- vsg/rules/port_map/rule_008.py | 2 +- vsg/rules/port_map/rule_009.py | 2 +- vsg/rules/port_map/rule_010.py | 2 +- vsg/rules/port_map/rule_200.py | 2 +- vsg/rules/pragma/rule_300.py | 2 +- vsg/rules/pragma/rule_400.py | 2 +- vsg/rules/pragma/rule_401.py | 2 +- vsg/rules/pragma/rule_402.py | 2 +- vsg/rules/pragma/rule_403.py | 2 +- vsg/rules/previous_line.py | 4 +- vsg/rules/procedure/rule_001.py | 2 +- vsg/rules/procedure/rule_002.py | 2 +- vsg/rules/procedure/rule_003.py | 2 +- vsg/rules/procedure/rule_004.py | 2 +- vsg/rules/procedure/rule_005.py | 2 +- vsg/rules/procedure/rule_006.py | 2 +- vsg/rules/procedure/rule_007.py | 2 +- vsg/rules/procedure/rule_008.py | 2 +- vsg/rules/procedure/rule_009.py | 2 +- vsg/rules/procedure/rule_010.py | 2 +- vsg/rules/procedure/rule_011.py | 2 +- vsg/rules/procedure/rule_012.py | 2 +- vsg/rules/procedure/rule_013.py | 2 +- vsg/rules/procedure/rule_100.py | 2 +- vsg/rules/procedure/rule_101.py | 2 +- vsg/rules/procedure/rule_200.py | 2 +- vsg/rules/procedure/rule_201.py | 2 +- vsg/rules/procedure/rule_202.py | 2 +- vsg/rules/procedure/rule_203.py | 2 +- vsg/rules/procedure/rule_204.py | 2 +- vsg/rules/procedure/rule_205.py | 2 +- vsg/rules/procedure/rule_401.py | 2 +- vsg/rules/procedure/rule_410.py | 4 +- vsg/rules/procedure/rule_411.py | 4 +- vsg/rules/procedure/rule_412.py | 2 +- vsg/rules/procedure/rule_500.py | 2 +- vsg/rules/procedure/rule_501.py | 2 +- vsg/rules/procedure/rule_502.py | 2 +- vsg/rules/procedure/rule_503.py | 2 +- vsg/rules/procedure/rule_504.py | 2 +- vsg/rules/procedure/rule_505.py | 2 +- vsg/rules/procedure/rule_506.py | 2 +- vsg/rules/procedure/rule_507.py | 2 +- vsg/rules/procedure_call/rule_001.py | 2 +- vsg/rules/procedure_call/rule_002.py | 2 +- vsg/rules/procedure_call/rule_003.py | 2 +- vsg/rules/procedure_call/rule_100.py | 2 +- vsg/rules/procedure_call/rule_101.py | 2 +- vsg/rules/procedure_call/rule_300.py | 2 +- vsg/rules/procedure_call/rule_301.py | 2 +- vsg/rules/procedure_call/rule_302.py | 2 +- vsg/rules/procedure_call/rule_400.py | 2 +- vsg/rules/procedure_call/rule_401.py | 2 +- vsg/rules/procedure_call/rule_500.py | 2 +- vsg/rules/procedure_call/rule_501.py | 2 +- vsg/rules/process/rule_001.py | 2 +- vsg/rules/process/rule_002.py | 2 +- vsg/rules/process/rule_003.py | 2 +- vsg/rules/process/rule_004.py | 2 +- vsg/rules/process/rule_005.py | 2 +- vsg/rules/process/rule_006.py | 2 +- vsg/rules/process/rule_007.py | 2 +- vsg/rules/process/rule_008.py | 2 +- vsg/rules/process/rule_009.py | 2 +- vsg/rules/process/rule_010.py | 2 +- vsg/rules/process/rule_011.py | 2 +- vsg/rules/process/rule_012.py | 2 +- vsg/rules/process/rule_013.py | 2 +- vsg/rules/process/rule_014.py | 2 +- vsg/rules/process/rule_015.py | 2 +- vsg/rules/process/rule_016.py | 2 +- vsg/rules/process/rule_017.py | 2 +- vsg/rules/process/rule_018.py | 2 +- vsg/rules/process/rule_019.py | 2 +- vsg/rules/process/rule_020.py | 2 +- vsg/rules/process/rule_021.py | 2 +- vsg/rules/process/rule_022.py | 2 +- vsg/rules/process/rule_023.py | 2 +- vsg/rules/process/rule_024.py | 2 +- vsg/rules/process/rule_025.py | 2 +- vsg/rules/process/rule_026.py | 2 +- vsg/rules/process/rule_027.py | 2 +- vsg/rules/process/rule_028.py | 2 +- vsg/rules/process/rule_029.py | 2 +- vsg/rules/process/rule_030.py | 2 +- vsg/rules/process/rule_031.py | 2 +- vsg/rules/process/rule_032.py | 2 +- vsg/rules/process/rule_033.py | 2 +- vsg/rules/process/rule_034.py | 2 +- vsg/rules/process/rule_035.py | 2 +- vsg/rules/process/rule_036.py | 2 +- vsg/rules/process/rule_037.py | 2 +- vsg/rules/process/rule_038.py | 2 +- vsg/rules/process/rule_039.py | 2 +- vsg/rules/process/rule_400.py | 2 +- vsg/rules/process/rule_401.py | 2 +- vsg/rules/process/rule_600.py | 2 +- vsg/rules/ranges/rule_001.py | 2 +- vsg/rules/ranges/rule_002.py | 2 +- vsg/rules/record_type_definition/rule_001.py | 2 +- vsg/rules/record_type_definition/rule_002.py | 2 +- vsg/rules/record_type_definition/rule_003.py | 2 +- vsg/rules/record_type_definition/rule_004.py | 2 +- vsg/rules/record_type_definition/rule_005.py | 2 +- vsg/rules/record_type_definition/rule_006.py | 2 +- vsg/rules/record_type_definition/rule_007.py | 2 +- vsg/rules/record_type_definition/rule_100.py | 2 +- vsg/rules/record_type_definition/rule_101.py | 2 +- vsg/rules/record_type_definition/rule_200.py | 2 +- vsg/rules/record_type_definition/rule_201.py | 2 +- vsg/rules/record_type_definition/rule_300.py | 2 +- vsg/rules/record_type_definition/rule_301.py | 2 +- vsg/rules/record_type_definition/rule_500.py | 2 +- vsg/rules/record_type_definition/rule_501.py | 2 +- vsg/rules/record_type_definition/rule_502.py | 2 +- ...nk_lines_above_line_starting_with_token.py | 4 +- .../remove_carriage_return_after_token.py | 4 +- ...ve_carriage_returns_between_token_pairs.py | 4 +- ...nts_from_end_of_lines_bounded_by_tokens.py | 4 +- ...nk_lines_above_line_starting_with_token.py | 4 +- ...lank_lines_below_line_ending_with_token.py | 4 +- ...starting_with_token_between_token_pairs.py | 4 +- vsg/rules/remove_spaces_before_token_rule.py | 4 +- vsg/rules/remove_tokens.py | 4 +- ...y_tokens_and_remove_trailing_whitespace.py | 4 +- vsg/rules/report_statement/rule_001.py | 2 +- vsg/rules/report_statement/rule_002.py | 2 +- vsg/rules/report_statement/rule_100.py | 2 +- vsg/rules/report_statement/rule_101.py | 2 +- vsg/rules/report_statement/rule_300.py | 2 +- vsg/rules/report_statement/rule_400.py | 2 +- vsg/rules/report_statement/rule_500.py | 2 +- vsg/rules/report_statement/rule_501.py | 2 +- vsg/rules/reserved/rule_001.py | 4 +- vsg/rules/return_statement/rule_300.py | 2 +- vsg/rules/return_statement/rule_500.py | 2 +- vsg/rules/selected_assignment/rule_001.py | 2 +- vsg/rules/selected_assignment/rule_002.py | 2 +- vsg/rules/selected_assignment/rule_003.py | 2 +- vsg/rules/selected_assignment/rule_004.py | 2 +- vsg/rules/selected_assignment/rule_005.py | 2 +- vsg/rules/selected_assignment/rule_006.py | 2 +- vsg/rules/selected_assignment/rule_007.py | 2 +- vsg/rules/selected_assignment/rule_008.py | 2 +- vsg/rules/selected_assignment/rule_009.py | 2 +- vsg/rules/selected_assignment/rule_010.py | 2 +- vsg/rules/selected_assignment/rule_011.py | 2 +- vsg/rules/selected_assignment/rule_012.py | 2 +- vsg/rules/selected_assignment/rule_100.py | 2 +- vsg/rules/selected_assignment/rule_101.py | 2 +- vsg/rules/selected_assignment/rule_102.py | 2 +- vsg/rules/selected_assignment/rule_103.py | 2 +- vsg/rules/selected_assignment/rule_104.py | 2 +- vsg/rules/selected_assignment/rule_105.py | 2 +- vsg/rules/selected_assignment/rule_106.py | 2 +- vsg/rules/selected_assignment/rule_107.py | 2 +- vsg/rules/selected_assignment/rule_300.py | 2 +- vsg/rules/selected_assignment/rule_400.py | 2 +- vsg/rules/selected_assignment/rule_500.py | 2 +- vsg/rules/selected_assignment/rule_501.py | 2 +- vsg/rules/selected_assignment/rule_502.py | 2 +- vsg/rules/selected_assignment/rule_503.py | 2 +- vsg/rules/selected_assignment/rule_999.py | 2 +- ..._identifiers_into_individual_statements.py | 4 +- vsg/rules/sequential/rule_001.py | 2 +- vsg/rules/sequential/rule_002.py | 2 +- vsg/rules/sequential/rule_003.py | 2 +- vsg/rules/sequential/rule_004.py | 2 +- vsg/rules/sequential/rule_005.py | 2 +- vsg/rules/sequential/rule_006.py | 2 +- vsg/rules/sequential/rule_007.py | 2 +- vsg/rules/sequential/rule_008.py | 2 +- vsg/rules/sequential/rule_009.py | 2 +- vsg/rules/sequential/rule_400.py | 2 +- vsg/rules/sequential/rule_401.py | 2 +- vsg/rules/sequential/rule_402.py | 2 +- vsg/rules/signal/rule_001.py | 2 +- vsg/rules/signal/rule_002.py | 2 +- vsg/rules/signal/rule_003.py | 2 +- vsg/rules/signal/rule_004.py | 2 +- vsg/rules/signal/rule_005.py | 2 +- vsg/rules/signal/rule_006.py | 2 +- vsg/rules/signal/rule_007.py | 2 +- vsg/rules/signal/rule_008.py | 2 +- vsg/rules/signal/rule_010.py | 2 +- vsg/rules/signal/rule_011.py | 2 +- vsg/rules/signal/rule_012.py | 2 +- vsg/rules/signal/rule_014.py | 2 +- vsg/rules/signal/rule_015.py | 2 +- vsg/rules/signal/rule_016.py | 2 +- vsg/rules/signal/rule_017.py | 2 +- vsg/rules/signal/rule_100.py | 2 +- vsg/rules/signal/rule_101.py | 2 +- vsg/rules/signal/rule_102.py | 2 +- vsg/rules/signal/rule_200.py | 2 +- vsg/rules/signal/rule_400.py | 2 +- vsg/rules/signal/rule_600.py | 2 +- vsg/rules/source_file/rule_001.py | 2 +- ...and_after_tokens_when_bounded_by_tokens.py | 4 +- vsg/rules/split_line_at_token.py | 4 +- ..._if_token_pair_are_not_on_the_same_line.py | 4 +- ...split_line_at_token_when_between_tokens.py | 4 +- ...en_between_tokens_unless_token_is_found.py | 4 +- vsg/rules/subprogram_body/rule_201.py | 2 +- vsg/rules/subprogram_body/rule_202.py | 2 +- vsg/rules/subprogram_body/rule_203.py | 2 +- vsg/rules/subprogram_body/rule_204.py | 2 +- vsg/rules/subprogram_body/rule_205.py | 2 +- vsg/rules/subprogram_body/rule_400.py | 2 +- vsg/rules/subprogram_body/rule_401.py | 2 +- vsg/rules/subtype/rule_001.py | 2 +- vsg/rules/subtype/rule_002.py | 2 +- vsg/rules/subtype/rule_003.py | 2 +- vsg/rules/subtype/rule_004.py | 2 +- vsg/rules/subtype/rule_100.py | 2 +- vsg/rules/subtype/rule_500.py | 2 +- vsg/rules/subtype/rule_501.py | 2 +- vsg/rules/subtype/rule_502.py | 2 +- vsg/rules/subtype/rule_600.py | 2 +- vsg/rules/token_case.py | 4 +- ...sociation_element_in_map_between_tokens.py | 4 +- .../token_case_in_range_bounded_by_tokens.py | 4 +- ...ge_bounded_by_tokens_with_prefix_suffix.py | 4 +- ...ase_n_token_after_tokens_between_tokens.py | 4 +- vsg/rules/token_case_subtype_indication.py | 4 +- vsg/rules/token_case_with_prefix_suffix.py | 4 +- .../token_does_not_exist_before_token.py | 4 +- vsg/rules/token_indent.py | 4 +- vsg/rules/token_indent_between_tokens.py | 4 +- .../token_indent_unless_between_tokens.py | 4 +- vsg/rules/token_prefix.py | 4 +- vsg/rules/token_prefix_between_tokens.py | 4 +- vsg/rules/token_suffix.py | 4 +- vsg/rules/token_suffix_between_tokens.py | 4 +- vsg/rules/type_definition/rule_001.py | 2 +- vsg/rules/type_definition/rule_002.py | 2 +- vsg/rules/type_definition/rule_003.py | 2 +- vsg/rules/type_definition/rule_004.py | 2 +- vsg/rules/type_definition/rule_005.py | 2 +- vsg/rules/type_definition/rule_006.py | 2 +- vsg/rules/type_definition/rule_007.py | 2 +- vsg/rules/type_definition/rule_008.py | 2 +- vsg/rules/type_definition/rule_009.py | 2 +- vsg/rules/type_definition/rule_010.py | 2 +- vsg/rules/type_definition/rule_011.py | 2 +- vsg/rules/type_definition/rule_012.py | 2 +- vsg/rules/type_definition/rule_013.py | 2 +- vsg/rules/type_definition/rule_014.py | 2 +- vsg/rules/type_definition/rule_015.py | 2 +- vsg/rules/type_definition/rule_016.py | 2 +- vsg/rules/type_definition/rule_017.py | 2 +- vsg/rules/type_definition/rule_018.py | 2 +- vsg/rules/type_definition/rule_100.py | 2 +- vsg/rules/type_definition/rule_200.py | 2 +- vsg/rules/type_definition/rule_400.py | 2 +- vsg/rules/type_definition/rule_500.py | 2 +- vsg/rules/type_definition/rule_501.py | 2 +- vsg/rules/type_definition/rule_600.py | 2 +- vsg/rules/use_clause/rule_500.py | 2 +- vsg/rules/use_clause/rule_501.py | 2 +- vsg/rules/use_clause/rule_502.py | 2 +- vsg/rules/use_clause/rule_503.py | 2 +- vsg/rules/variable/rule_001.py | 2 +- vsg/rules/variable/rule_002.py | 2 +- vsg/rules/variable/rule_003.py | 2 +- vsg/rules/variable/rule_004.py | 2 +- vsg/rules/variable/rule_005.py | 2 +- vsg/rules/variable/rule_006.py | 2 +- vsg/rules/variable/rule_007.py | 2 +- vsg/rules/variable/rule_010.py | 2 +- vsg/rules/variable/rule_011.py | 2 +- vsg/rules/variable/rule_012.py | 2 +- vsg/rules/variable/rule_017.py | 2 +- vsg/rules/variable/rule_100.py | 2 +- vsg/rules/variable/rule_400.py | 2 +- vsg/rules/variable/rule_600.py | 2 +- vsg/rules/variable_assignment/rule_001.py | 2 +- vsg/rules/variable_assignment/rule_002.py | 2 +- vsg/rules/variable_assignment/rule_003.py | 2 +- vsg/rules/variable_assignment/rule_004.py | 2 +- vsg/rules/variable_assignment/rule_005.py | 2 +- vsg/rules/variable_assignment/rule_006.py | 2 +- vsg/rules/variable_assignment/rule_007.py | 2 +- vsg/rules/variable_assignment/rule_008.py | 2 +- vsg/rules/variable_assignment/rule_400.py | 2 +- vsg/rules/variable_assignment/rule_401.py | 2 +- vsg/rules/wait/rule_001.py | 2 +- vsg/rules/when/rule_001.py | 2 +- vsg/rules/while_loop/rule_001.py | 2 +- vsg/rules/while_loop/rule_002.py | 2 +- vsg/rules/whitespace/rule_001.py | 2 +- vsg/rules/whitespace/rule_002.py | 2 +- vsg/rules/whitespace/rule_003.py | 2 +- vsg/rules/whitespace/rule_004.py | 2 +- vsg/rules/whitespace/rule_005.py | 2 +- vsg/rules/whitespace/rule_006.py | 2 +- vsg/rules/whitespace/rule_007.py | 2 +- vsg/rules/whitespace/rule_008.py | 2 +- vsg/rules/whitespace/rule_010.py | 2 +- vsg/rules/whitespace/rule_011.py | 2 +- vsg/rules/whitespace/rule_012.py | 2 +- vsg/rules/whitespace/rule_013.py | 2 +- vsg/rules/whitespace/rule_200.py | 2 +- vsg/rules/whitespace_after_token.py | 4 +- ...itespace_after_tokens_in_between_tokens.py | 4 +- vsg/rules/whitespace_before_token.py | 4 +- ...e_before_token_if_on_same_line_as_token.py | 4 +- ...tespace_before_tokens_in_between_tokens.py | 4 +- vsg/rules/whitespace_between_token_pairs.py | 4 +- ...e_between_token_pairs_bounded_by_tokens.py | 4 +- vsg/rules/whitespace_between_tokens.py | 4 +- vsg/rules/with_statement/rule_001.py | 4 +- vsg/tests/rule/test_rule.py | 7 +++- .../local_rules/rule_localized_001.py | 3 +- .../vsg/local_rules/rule_localized_001.py | 3 +- 989 files changed, 1146 insertions(+), 1101 deletions(-) diff --git a/docs/localizing.rst b/docs/localizing.rst index 87de674b..7cd0ceb0 100644 --- a/docs/localizing.rst +++ b/docs/localizing.rst @@ -47,7 +47,8 @@ Since this is the first rule, we will number it **001**. class rule_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' Referencing the :doc:`phases`, we decide it should be in phase 1: structural. @@ -59,7 +60,8 @@ Referencing the :doc:`phases`, we decide it should be in phase 1: structural. class rule_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' self.phase = 1 Now we need to add the **analyze** method to perform the check. @@ -72,7 +74,8 @@ Now we need to add the **analyze** method to perform the check. class rule_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' self.phase = 1 def analyze(self, oFile): @@ -89,7 +92,8 @@ We are ready to write the body of the **analyze** method: class rule_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' self.phase = 1 def analyze(self, oFile): @@ -115,7 +119,8 @@ We will tell VSG the rule is not fixable. class rule_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' self.phase = 1 self.fixable = False # User must split the file @@ -133,7 +138,8 @@ We also need to provide a solution to the user so they will know how to fix the class rule_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' self.phase = 1 @@ -154,7 +160,8 @@ Finally, we need to add a code tag check so the rule can be disabled via comment class rule_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' self.phase = 1 self.fixable = False # User must split the file self.solution = 'Split entity and architecture into seperate files.' diff --git a/vsg/block_rule.py b/vsg/block_rule.py index 81f38e90..ff383b3e 100644 --- a/vsg/block_rule.py +++ b/vsg/block_rule.py @@ -11,8 +11,8 @@ from vsg.rules import utils as rules_utils class Rule(structure.Rule): - def __init__(self, name, identifier): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + structure.Rule.__init__(self) self.fixable = False self.disable = True diff --git a/vsg/deprecated_rule.py b/vsg/deprecated_rule.py index dd81b2d5..19e5c2dc 100644 --- a/vsg/deprecated_rule.py +++ b/vsg/deprecated_rule.py @@ -4,8 +4,8 @@ from vsg import rule class Rule(rule.Rule): - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.fixable = False self.disable = True self.phase = 0 diff --git a/vsg/proposed_rule.py b/vsg/proposed_rule.py index 1da3b5c7..5b7bce2b 100644 --- a/vsg/proposed_rule.py +++ b/vsg/proposed_rule.py @@ -4,8 +4,8 @@ from vsg import rule class Rule(rule.Rule): - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.fixable = False self.disable = True self.phase = 0 diff --git a/vsg/rule.py b/vsg/rule.py index e1ceaebe..94a0ebdf 100644 --- a/vsg/rule.py +++ b/vsg/rule.py @@ -6,10 +6,10 @@ from vsg import utils class Rule(): - def __init__(self, name=None, identifier=None): - self.name = name - self.identifier = identifier - self.unique_id = str(name) + '_' + str(identifier) + def __init__(self): + self.name = get_rule_name(self) + self.identifier = get_rule_identifier(self) + self.unique_id = str(self.name) + '_' + str(self.identifier) self.solution = None self.violations = [] self.indentStyle = 'spaces' @@ -264,3 +264,36 @@ def configure_rule_attributes(self, oConfig): oOption.value = oConfig.dConfig['rule'][self.get_unique_id()][sAttributeName] except KeyError: pass + +def get_rule_identifier(self): + ''' + Extracts the rule's identifier from the name of the class. + ''' + sReturn = None + if self.__class__.__name__.startswith('rule_'): + sReturn = self.__class__.__name__[-3:] + return sReturn + +def get_rule_name(self): + ''' + Extracts the rule's name from the name of the module. + ''' + sReturn = None + if self.__module__.startswith('vsg.rules.'): + rule_group_name = self.__module__.split('.')[2] + # Cater for exceptions where the name of the rule doesn't match the name of the module. + if rule_group_name == 'assert_statement': + sReturn = 'assert' + elif rule_group_name == 'file_statement': + sReturn = 'file' + elif rule_group_name == 'if_statement': + sReturn = 'if' + elif rule_group_name == 'ranges': + sReturn = 'range' + elif rule_group_name == 'type_definition': + sReturn = 'type' + elif rule_group_name == 'with_statement': + sReturn = 'with' + else: + sReturn = rule_group_name + return sReturn diff --git a/vsg/rule_group/alignment.py b/vsg/rule_group/alignment.py index 23838d6e..2b6e830b 100644 --- a/vsg/rule_group/alignment.py +++ b/vsg/rule_group/alignment.py @@ -16,8 +16,8 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 5 self.groups.append('alignment') self.configuration_documentation_link = 'configuring_keyword_alignment_rules_link' diff --git a/vsg/rule_group/blank_line.py b/vsg/rule_group/blank_line.py index 1aefe51e..ab3b5a1f 100644 --- a/vsg/rule_group/blank_line.py +++ b/vsg/rule_group/blank_line.py @@ -16,8 +16,8 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 3 self.groups.append('blank_line') self.configuration_documentation_link = 'configuring_blank_lines_link' diff --git a/vsg/rule_group/case.py b/vsg/rule_group/case.py index 68009dcc..94bf3485 100644 --- a/vsg/rule_group/case.py +++ b/vsg/rule_group/case.py @@ -16,8 +16,8 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 6 self.groups.append('case') self.configuration_documentation_link = 'configuring_uppercase_and_lowercase_rules_link' diff --git a/vsg/rule_group/indent.py b/vsg/rule_group/indent.py index 34efa2df..23a95a69 100644 --- a/vsg/rule_group/indent.py +++ b/vsg/rule_group/indent.py @@ -16,7 +16,7 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 4 self.groups.append('indent') diff --git a/vsg/rule_group/length.py b/vsg/rule_group/length.py index 533c057a..445729bc 100644 --- a/vsg/rule_group/length.py +++ b/vsg/rule_group/length.py @@ -17,8 +17,8 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 7 self.fixable = False self.groups.append('length') diff --git a/vsg/rule_group/naming.py b/vsg/rule_group/naming.py index e3f36e30..fdb43244 100644 --- a/vsg/rule_group/naming.py +++ b/vsg/rule_group/naming.py @@ -16,8 +16,8 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 7 self.groups.append('naming') self.configuration_documentation_link = 'configuring_prefix_and_suffix_rules_link' diff --git a/vsg/rule_group/structure.py b/vsg/rule_group/structure.py index 70f16126..6932a9e2 100644 --- a/vsg/rule_group/structure.py +++ b/vsg/rule_group/structure.py @@ -16,8 +16,8 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 1 self.groups.append('structure') self.configuration_documentation_link = 'configuring_simple_multiline_structure_rules_link' diff --git a/vsg/rule_group/whitespace.py b/vsg/rule_group/whitespace.py index b8d5d6f7..4ee2524c 100644 --- a/vsg/rule_group/whitespace.py +++ b/vsg/rule_group/whitespace.py @@ -16,8 +16,8 @@ class Rule(rule.Rule): unique identifier. Usually in the form of 00N. ''' - def __init__(self, name, identifier): - rule.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + rule.Rule.__init__(self) self.phase = 2 self.groups.append('whitespace') self.configuration_documentation_link = 'configuring_whitespace_rules_link' diff --git a/vsg/rules/after/rule_001.py b/vsg/rules/after/rule_001.py index a1058f2e..36ffaddd 100644 --- a/vsg/rules/after/rule_001.py +++ b/vsg/rules/after/rule_001.py @@ -70,7 +70,7 @@ class rule_001(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'after', '001') + structure.Rule.__init__(self) self.disable = True self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/after/rule_002.py b/vsg/rules/after/rule_002.py index 931820ff..56ff1c04 100644 --- a/vsg/rules/after/rule_002.py +++ b/vsg/rules/after/rule_002.py @@ -60,7 +60,7 @@ class rule_002(alignment.Rule): ''' def __init__(self): - alignment.Rule.__init__(self, 'after', '002') + alignment.Rule.__init__(self) self.solution = 'Align **after** keyword.' self.disable = True self.subphase = 2 diff --git a/vsg/rules/after/rule_003.py b/vsg/rules/after/rule_003.py index 637bd4b8..c5b22345 100644 --- a/vsg/rules/after/rule_003.py +++ b/vsg/rules/after/rule_003.py @@ -61,7 +61,7 @@ class rule_003(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'after', '003') + structure.Rule.__init__(self) self.disable = True self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/alias_declaration/rule_001.py b/vsg/rules/alias_declaration/rule_001.py index acfec938..90d6c8ca 100644 --- a/vsg/rules/alias_declaration/rule_001.py +++ b/vsg/rules/alias_declaration/rule_001.py @@ -26,5 +26,5 @@ class rule_001(Rule): ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '001', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move *alias* keyword and code after end to the next line' diff --git a/vsg/rules/alias_declaration/rule_100.py b/vsg/rules/alias_declaration/rule_100.py index 825ff1f5..4168df3c 100644 --- a/vsg/rules/alias_declaration/rule_100.py +++ b/vsg/rules/alias_declaration/rule_100.py @@ -25,4 +25,4 @@ class rule_100(Rule): alias alias_designator : subtype_indication is name; ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '100', [token.colon]) + Rule.__init__(self, [token.colon]) diff --git a/vsg/rules/alias_declaration/rule_101.py b/vsg/rules/alias_declaration/rule_101.py index 86c134ab..b8789a5e 100644 --- a/vsg/rules/alias_declaration/rule_101.py +++ b/vsg/rules/alias_declaration/rule_101.py @@ -25,6 +25,6 @@ class rule_101(Rule): alias alias_designator is name; ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '101') + Rule.__init__(self) self.oFirstToken = token.is_keyword self.oExceptToken = token.colon diff --git a/vsg/rules/alias_declaration/rule_102.py b/vsg/rules/alias_declaration/rule_102.py index 7f9f6237..401ce9f6 100644 --- a/vsg/rules/alias_declaration/rule_102.py +++ b/vsg/rules/alias_declaration/rule_102.py @@ -26,4 +26,4 @@ class rule_102(Rule): alias alias_designator is name; ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '102', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/alias_declaration/rule_103.py b/vsg/rules/alias_declaration/rule_103.py index 4cbaa54c..07350370 100644 --- a/vsg/rules/alias_declaration/rule_103.py +++ b/vsg/rules/alias_declaration/rule_103.py @@ -23,7 +23,7 @@ class rule_103(Rule): alias alias_designator is name; ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '103') + Rule.__init__(self) self.disable = True self.left_token = token.alias_keyword self.right_token = token.alias_designator diff --git a/vsg/rules/alias_declaration/rule_300.py b/vsg/rules/alias_declaration/rule_300.py index 9e7584c5..874a31d6 100644 --- a/vsg/rules/alias_declaration/rule_300.py +++ b/vsg/rules/alias_declaration/rule_300.py @@ -29,4 +29,4 @@ class rule_300(Rule): ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '300', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/alias_declaration/rule_500.py b/vsg/rules/alias_declaration/rule_500.py index 8e40722d..154bf756 100644 --- a/vsg/rules/alias_declaration/rule_500.py +++ b/vsg/rules/alias_declaration/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'alias_declaration', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/alias_declaration/rule_501.py b/vsg/rules/alias_declaration/rule_501.py index c4392125..9bd4fac4 100644 --- a/vsg/rules/alias_declaration/rule_501.py +++ b/vsg/rules/alias_declaration/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'alias_declaration', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/alias_declaration/rule_502.py b/vsg/rules/alias_declaration/rule_502.py index 237040b7..be6f57a7 100644 --- a/vsg/rules/alias_declaration/rule_502.py +++ b/vsg/rules/alias_declaration/rule_502.py @@ -27,5 +27,5 @@ class rule_502(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'alias_declaration', '502', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/alias_declaration/rule_503.py b/vsg/rules/alias_declaration/rule_503.py index a54e57b3..a1f8133a 100644 --- a/vsg/rules/alias_declaration/rule_503.py +++ b/vsg/rules/alias_declaration/rule_503.py @@ -73,5 +73,5 @@ class rule_503(Rule): ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '503', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) self.bIncludeDeclarativePartNames = True diff --git a/vsg/rules/alias_declaration/rule_600.py b/vsg/rules/alias_declaration/rule_600.py index c4e2cf63..db2c4ba6 100644 --- a/vsg/rules/alias_declaration/rule_600.py +++ b/vsg/rules/alias_declaration/rule_600.py @@ -31,6 +31,6 @@ class rule_600(Rule): ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '600', lTokens) + Rule.__init__(self, lTokens) self.prefixes = ['a_'] self.solution = 'Alias designators' diff --git a/vsg/rules/alias_declaration/rule_601.py b/vsg/rules/alias_declaration/rule_601.py index af85410a..6354711d 100644 --- a/vsg/rules/alias_declaration/rule_601.py +++ b/vsg/rules/alias_declaration/rule_601.py @@ -31,6 +31,6 @@ class rule_601(Rule): ''' def __init__(self): - Rule.__init__(self, 'alias_declaration', '601', lTokens) + Rule.__init__(self, lTokens) self.suffixes = ['_a'] self.solution = 'Alias designators' diff --git a/vsg/rules/align_consecutive_lines_after_line_starting_with_token_and_stopping_with_token.py b/vsg/rules/align_consecutive_lines_after_line_starting_with_token_and_stopping_with_token.py index a5223f98..9daa514d 100644 --- a/vsg/rules/align_consecutive_lines_after_line_starting_with_token_and_stopping_with_token.py +++ b/vsg/rules/align_consecutive_lines_after_line_starting_with_token_and_stopping_with_token.py @@ -11,8 +11,8 @@ class align_consecutive_lines_after_line_starting_with_token_and_stopping_with_t ''' ''' - def __init__(self, name, identifier): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + alignment.Rule.__init__(self) self.alignment = 'report' self.configuration.append('alignment') self.phase = 4 diff --git a/vsg/rules/align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token.py b/vsg/rules/align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token.py index 7959fb8c..3a2ea0cc 100644 --- a/vsg/rules/align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token.py +++ b/vsg/rules/align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token.py @@ -25,8 +25,8 @@ class align_consecutive_lines_starting_with_a_comment_above_line_starting_with_t reference token to align comments with ''' - def __init__(self, name, identifier, token, bIncrement=False): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, token, bIncrement=False): + alignment.Rule.__init__(self) self.phase = 4 self.subphase = 2 self.token = token diff --git a/vsg/rules/align_left_token_with_right_token_if_right_token_starts_a_line.py b/vsg/rules/align_left_token_with_right_token_if_right_token_starts_a_line.py index a7c1e3f7..9c5f776c 100644 --- a/vsg/rules/align_left_token_with_right_token_if_right_token_starts_a_line.py +++ b/vsg/rules/align_left_token_with_right_token_if_right_token_starts_a_line.py @@ -30,8 +30,8 @@ class align_left_token_with_right_token_if_right_token_starts_a_line(alignment.R The second token that defines the region ''' - def __init__(self, name, identifier, left_token, right_token): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, left_token, right_token): + alignment.Rule.__init__(self) self.left_token = left_token self.right_token = right_token self.configuration.append('align_to') diff --git a/vsg/rules/align_tokens_in_region_between_tokens.py b/vsg/rules/align_tokens_in_region_between_tokens.py index 8c7a0a5c..da6fc365 100644 --- a/vsg/rules/align_tokens_in_region_between_tokens.py +++ b/vsg/rules/align_tokens_in_region_between_tokens.py @@ -32,8 +32,8 @@ class align_tokens_in_region_between_tokens(alignment.Rule): The second token that defines the region ''' - def __init__(self, name, identifier, lTokens, left_token, right_token): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, left_token, right_token): + alignment.Rule.__init__(self) self.lTokens = lTokens self.left_token = left_token self.right_token = right_token diff --git a/vsg/rules/align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.py b/vsg/rules/align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.py index 9a503ab8..3de03981 100644 --- a/vsg/rules/align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.py +++ b/vsg/rules/align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.py @@ -36,8 +36,8 @@ class align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens( List of tokens to skip if they start a line. ''' - def __init__(self, name, identifier, lTokens, left_token, right_token, lSkip): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, left_token, right_token, lSkip): + alignment.Rule.__init__(self) self.lTokens = lTokens self.left_token = left_token self.right_token = right_token diff --git a/vsg/rules/align_tokens_in_region_between_tokens_unless_between_tokens.py b/vsg/rules/align_tokens_in_region_between_tokens_unless_between_tokens.py index 14add00f..10977760 100644 --- a/vsg/rules/align_tokens_in_region_between_tokens_unless_between_tokens.py +++ b/vsg/rules/align_tokens_in_region_between_tokens_unless_between_tokens.py @@ -28,8 +28,8 @@ class align_tokens_in_region_between_tokens_unless_between_tokens(Rule): A list of pairs of tokens in which to exclude alignment ''' - def __init__(self, name, identifier, lTokens, left_token, right_token, lUnless): - Rule.__init__(self, name=name, identifier=identifier, lTokens=lTokens, left_token=left_token, right_token=right_token) + def __init__(self, lTokens, left_token, right_token, lUnless): + Rule.__init__(self, lTokens=lTokens, left_token=left_token, right_token=right_token) self.lUnless = lUnless def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.py b/vsg/rules/align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.py index a22720af..05aeca9f 100644 --- a/vsg/rules/align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.py +++ b/vsg/rules/align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.py @@ -28,8 +28,8 @@ class align_tokens_in_region_between_tokens_when_between_tokens_unless_between_t A list of pairs of tokens in which to exclude alignment ''' - def __init__(self, name, identifier, lTokens, left_token, right_token, lBetween, lUnless): - Rule.__init__(self, name=name, identifier=identifier, lTokens=lTokens, left_token=left_token, right_token=right_token) + def __init__(self, lTokens, left_token, right_token, lBetween, lUnless): + Rule.__init__(self, lTokens=lTokens, left_token=left_token, right_token=right_token) self.lBetween = lBetween[0] self.lUnless = lUnless diff --git a/vsg/rules/architecture/rule_001.py b/vsg/rules/architecture/rule_001.py index cf101504..e5d8484a 100644 --- a/vsg/rules/architecture/rule_001.py +++ b/vsg/rules/architecture/rule_001.py @@ -24,4 +24,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'architecture', '001', [token.architecture_keyword]) + token_indent.__init__(self, [token.architecture_keyword]) diff --git a/vsg/rules/architecture/rule_002.py b/vsg/rules/architecture/rule_002.py index 1cb7791a..2f2d4538 100644 --- a/vsg/rules/architecture/rule_002.py +++ b/vsg/rules/architecture/rule_002.py @@ -13,7 +13,7 @@ class rule_002(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'architecture', '002') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been split into the following rules:') self.message.append(' architecture_030') self.message.append(' architecture_031') diff --git a/vsg/rules/architecture/rule_003.py b/vsg/rules/architecture/rule_003.py index d09c85ba..0369f344 100644 --- a/vsg/rules/architecture/rule_003.py +++ b/vsg/rules/architecture/rule_003.py @@ -27,5 +27,5 @@ class rule_003(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'architecture', '003', [token.architecture_keyword]) + previous_line.__init__(self, [token.architecture_keyword]) self.style = 'require_blank_line' diff --git a/vsg/rules/architecture/rule_004.py b/vsg/rules/architecture/rule_004.py index e07172c3..1d6cd13f 100644 --- a/vsg/rules/architecture/rule_004.py +++ b/vsg/rules/architecture/rule_004.py @@ -22,5 +22,5 @@ class rule_004(token_case): ''' def __init__(self): - token_case.__init__(self, 'architecture', '004', [token.architecture_keyword]) + token_case.__init__(self, [token.architecture_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/architecture/rule_005.py b/vsg/rules/architecture/rule_005.py index 84772dcc..02e6eb31 100644 --- a/vsg/rules/architecture/rule_005.py +++ b/vsg/rules/architecture/rule_005.py @@ -25,5 +25,5 @@ class rule_005(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'architecture', '005', token.identifier, token.of_keyword) + move_token_next_to_another_token.__init__(self, token.identifier, token.of_keyword) self.solution = 'Ensure *of* keyword is on the same line as the architecture identifier.' diff --git a/vsg/rules/architecture/rule_006.py b/vsg/rules/architecture/rule_006.py index 104c3b10..4c2c233b 100644 --- a/vsg/rules/architecture/rule_006.py +++ b/vsg/rules/architecture/rule_006.py @@ -27,5 +27,5 @@ class rule_006(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'architecture', '006', token.entity_name, token.is_keyword) + move_token_next_to_another_token.__init__(self, token.entity_name, token.is_keyword) self.solution = 'Ensure *is* keyword is on the same line as the entity name.' diff --git a/vsg/rules/architecture/rule_007.py b/vsg/rules/architecture/rule_007.py index 5c0b3740..8117a6d0 100644 --- a/vsg/rules/architecture/rule_007.py +++ b/vsg/rules/architecture/rule_007.py @@ -24,4 +24,4 @@ class rule_007(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'architecture', '007', [token.begin_keyword]) + token_indent.__init__(self, [token.begin_keyword]) diff --git a/vsg/rules/architecture/rule_008.py b/vsg/rules/architecture/rule_008.py index bea47117..f920a00d 100644 --- a/vsg/rules/architecture/rule_008.py +++ b/vsg/rules/architecture/rule_008.py @@ -26,4 +26,4 @@ class rule_008(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'architecture', '008', [token.end_keyword]) + token_indent.__init__(self, [token.end_keyword]) diff --git a/vsg/rules/architecture/rule_009.py b/vsg/rules/architecture/rule_009.py index 83635d01..91d62916 100644 --- a/vsg/rules/architecture/rule_009.py +++ b/vsg/rules/architecture/rule_009.py @@ -28,5 +28,5 @@ class rule_009(token_case): ''' def __init__(self): - token_case.__init__(self, 'architecture', '009', [token.end_keyword]) + token_case.__init__(self, [token.end_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/architecture/rule_010.py b/vsg/rules/architecture/rule_010.py index 2cbe3884..5013be80 100644 --- a/vsg/rules/architecture/rule_010.py +++ b/vsg/rules/architecture/rule_010.py @@ -24,6 +24,6 @@ class rule_010(insert_token_right_of_token_if_it_does_not_exist_before_token): end architecture architecture_name; ''' def __init__(self): - insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, 'architecture', '010', token.end_architecture_keyword('architecture'), token.end_keyword, token.semicolon) + insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, token.end_architecture_keyword('architecture'), token.end_keyword, token.semicolon) self.solution = 'architecture keyword.' self.groups.append('structure::optional') diff --git a/vsg/rules/architecture/rule_011.py b/vsg/rules/architecture/rule_011.py index 48058078..5948be45 100644 --- a/vsg/rules/architecture/rule_011.py +++ b/vsg/rules/architecture/rule_011.py @@ -28,5 +28,5 @@ class rule_011(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'architecture', '011', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/architecture/rule_012.py b/vsg/rules/architecture/rule_012.py index 45ec53ce..190d72e8 100644 --- a/vsg/rules/architecture/rule_012.py +++ b/vsg/rules/architecture/rule_012.py @@ -23,6 +23,6 @@ class rule_012(Rule): end architecture architecture_name; ''' def __init__(self): - Rule.__init__(self, 'architecture', '012') + Rule.__init__(self) self.left_token = token.end_keyword self.right_token = token.end_architecture_keyword diff --git a/vsg/rules/architecture/rule_013.py b/vsg/rules/architecture/rule_013.py index 55907dc5..d19a05e2 100644 --- a/vsg/rules/architecture/rule_013.py +++ b/vsg/rules/architecture/rule_013.py @@ -27,5 +27,5 @@ class rule_013(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'architecture', '013', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/architecture/rule_014.py b/vsg/rules/architecture/rule_014.py index 2fa411aa..8b902ddc 100644 --- a/vsg/rules/architecture/rule_014.py +++ b/vsg/rules/architecture/rule_014.py @@ -27,5 +27,5 @@ class rule_014(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'architecture', '014', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/architecture/rule_015.py b/vsg/rules/architecture/rule_015.py index c9a40b59..4d838491 100644 --- a/vsg/rules/architecture/rule_015.py +++ b/vsg/rules/architecture/rule_015.py @@ -29,4 +29,4 @@ class rule_015(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'architecture', '015', [token.is_keyword]) + blank_line_below_line_ending_with_token.__init__(self, [token.is_keyword]) diff --git a/vsg/rules/architecture/rule_016.py b/vsg/rules/architecture/rule_016.py index ce648929..c66038a3 100644 --- a/vsg/rules/architecture/rule_016.py +++ b/vsg/rules/architecture/rule_016.py @@ -31,4 +31,4 @@ class rule_016(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'architecture', '016', [token.begin_keyword]) + blank_line_above_line_starting_with_token.__init__(self, [token.begin_keyword]) diff --git a/vsg/rules/architecture/rule_017.py b/vsg/rules/architecture/rule_017.py index b175ccc7..063faf76 100644 --- a/vsg/rules/architecture/rule_017.py +++ b/vsg/rules/architecture/rule_017.py @@ -27,4 +27,4 @@ class rule_017(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'architecture', '017', [token.begin_keyword]) + blank_line_below_line_ending_with_token.__init__(self, [token.begin_keyword]) diff --git a/vsg/rules/architecture/rule_018.py b/vsg/rules/architecture/rule_018.py index 018a777f..055f17eb 100644 --- a/vsg/rules/architecture/rule_018.py +++ b/vsg/rules/architecture/rule_018.py @@ -27,4 +27,4 @@ class rule_018(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'architecture', '018', [token.end_keyword]) + blank_line_above_line_starting_with_token.__init__(self, [token.end_keyword]) diff --git a/vsg/rules/architecture/rule_019.py b/vsg/rules/architecture/rule_019.py index b2002d15..fc727691 100644 --- a/vsg/rules/architecture/rule_019.py +++ b/vsg/rules/architecture/rule_019.py @@ -24,5 +24,5 @@ class rule_019(token_case): ''' def __init__(self): - token_case.__init__(self, 'architecture', '019', [token.of_keyword]) + token_case.__init__(self, [token.of_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/architecture/rule_020.py b/vsg/rules/architecture/rule_020.py index 88592df5..b274787b 100644 --- a/vsg/rules/architecture/rule_020.py +++ b/vsg/rules/architecture/rule_020.py @@ -24,5 +24,5 @@ class rule_020(token_case): ''' def __init__(self): - token_case.__init__(self, 'architecture', '020', [token.is_keyword]) + token_case.__init__(self, [token.is_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/architecture/rule_021.py b/vsg/rules/architecture/rule_021.py index d6f8b7bd..7d1ee829 100644 --- a/vsg/rules/architecture/rule_021.py +++ b/vsg/rules/architecture/rule_021.py @@ -26,5 +26,5 @@ class rule_021(token_case): ''' def __init__(self): - token_case.__init__(self, 'architecture', '021', [token.begin_keyword]) + token_case.__init__(self, [token.begin_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/architecture/rule_022.py b/vsg/rules/architecture/rule_022.py index 41f49dbf..c0164b6e 100644 --- a/vsg/rules/architecture/rule_022.py +++ b/vsg/rules/architecture/rule_022.py @@ -23,6 +23,6 @@ class rule_022(Rule): end architecture fifo; ''' def __init__(self): - Rule.__init__(self, 'architecture', '022') + Rule.__init__(self) self.left_token = token.end_architecture_keyword self.right_token = token.architecture_simple_name diff --git a/vsg/rules/architecture/rule_024.py b/vsg/rules/architecture/rule_024.py index 688b121b..4a5069d1 100644 --- a/vsg/rules/architecture/rule_024.py +++ b/vsg/rules/architecture/rule_024.py @@ -25,6 +25,6 @@ class rule_024(insert_token_left_of_token_if_it_does_not_exist_between_tokens_us ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, 'architecture', '024', token.architecture_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) + insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, token.architecture_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) self.solution = 'architecture simple name' self.groups.append('structure::optional') diff --git a/vsg/rules/architecture/rule_025.py b/vsg/rules/architecture/rule_025.py index 8800b36c..ec6b4622 100644 --- a/vsg/rules/architecture/rule_025.py +++ b/vsg/rules/architecture/rule_025.py @@ -37,7 +37,7 @@ class rule_025(is_token_value_one_of): ''' def __init__(self): - is_token_value_one_of.__init__(self, 'architecture', '025', token.identifier) + is_token_value_one_of.__init__(self, token.identifier) def _get_solution(self, iLineNumber): return 'Architecture identifier must be from this list: ' + ', '.join(self.names) diff --git a/vsg/rules/architecture/rule_026.py b/vsg/rules/architecture/rule_026.py index 5a2866ff..03a70ce3 100644 --- a/vsg/rules/architecture/rule_026.py +++ b/vsg/rules/architecture/rule_026.py @@ -47,7 +47,7 @@ class rule_026(Rule): ''' def __init__(self): - Rule.__init__(self, 'architecture', '026', lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) + Rule.__init__(self, lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) self.solution = 'Align identifer.' self.subphase = 3 self.configuration.append('include_type_is_keyword') diff --git a/vsg/rules/architecture/rule_027.py b/vsg/rules/architecture/rule_027.py index 857c8bbc..6ca651a8 100644 --- a/vsg/rules/architecture/rule_027.py +++ b/vsg/rules/architecture/rule_027.py @@ -43,6 +43,6 @@ class rule_027(align_tokens_in_region_between_tokens_skipping_lines_starting_wit ''' def __init__(self): - align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, 'architecture', '027', lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lSkip) + align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lSkip) self.solution = 'Align comments.' self.subphase = 5 diff --git a/vsg/rules/architecture/rule_028.py b/vsg/rules/architecture/rule_028.py index 827eaba1..a846f4c1 100644 --- a/vsg/rules/architecture/rule_028.py +++ b/vsg/rules/architecture/rule_028.py @@ -28,5 +28,5 @@ class rule_028(token_case): ''' def __init__(self): - token_case.__init__(self, 'architecture', '028', [token.end_architecture_keyword]) + token_case.__init__(self, [token.end_architecture_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/architecture/rule_029.py b/vsg/rules/architecture/rule_029.py index dace4ec0..bbe12433 100644 --- a/vsg/rules/architecture/rule_029.py +++ b/vsg/rules/architecture/rule_029.py @@ -43,7 +43,7 @@ class rule_029(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'architecture', '029', lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/architecture/rule_030.py b/vsg/rules/architecture/rule_030.py index 50867a34..9db83f94 100644 --- a/vsg/rules/architecture/rule_030.py +++ b/vsg/rules/architecture/rule_030.py @@ -23,6 +23,6 @@ class rule_030(Rule): architecture rtl of fifo is ''' def __init__(self): - Rule.__init__(self, 'architecture', '030') + Rule.__init__(self) self.left_token = token.architecture_keyword self.right_token = token.identifier diff --git a/vsg/rules/architecture/rule_031.py b/vsg/rules/architecture/rule_031.py index 5cf5b991..3f722ffc 100644 --- a/vsg/rules/architecture/rule_031.py +++ b/vsg/rules/architecture/rule_031.py @@ -23,6 +23,6 @@ class rule_031(Rule): architecture rtl of fifo is ''' def __init__(self): - Rule.__init__(self, 'architecture', '031') + Rule.__init__(self) self.left_token = token.identifier self.right_token = token.of_keyword diff --git a/vsg/rules/architecture/rule_032.py b/vsg/rules/architecture/rule_032.py index e3f24907..5075770d 100644 --- a/vsg/rules/architecture/rule_032.py +++ b/vsg/rules/architecture/rule_032.py @@ -23,6 +23,6 @@ class rule_032(Rule): architecture rtl of fifo is ''' def __init__(self): - Rule.__init__(self, 'architecture', '032') + Rule.__init__(self) self.left_token = token.of_keyword self.right_token = token.entity_name diff --git a/vsg/rules/architecture/rule_033.py b/vsg/rules/architecture/rule_033.py index 169849fb..79affa9e 100644 --- a/vsg/rules/architecture/rule_033.py +++ b/vsg/rules/architecture/rule_033.py @@ -23,6 +23,6 @@ class rule_033(Rule): architecture rtl of fifo is ''' def __init__(self): - Rule.__init__(self, 'architecture', '033') + Rule.__init__(self) self.left_token = token.entity_name self.right_token = token.is_keyword diff --git a/vsg/rules/architecture/rule_200.py b/vsg/rules/architecture/rule_200.py index 68ca0350..96d5a859 100644 --- a/vsg/rules/architecture/rule_200.py +++ b/vsg/rules/architecture/rule_200.py @@ -30,4 +30,4 @@ class rule_200(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'architecture', '200', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/architecture/rule_400.py b/vsg/rules/architecture/rule_400.py index 2d7155d0..f88987e6 100644 --- a/vsg/rules/architecture/rule_400.py +++ b/vsg/rules/architecture/rule_400.py @@ -34,6 +34,6 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'architecture', '400', lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) + Rule.__init__(self, lAlign, token.architecture_body.is_keyword, token.architecture_body.begin_keyword, lUnless) self.solution = 'Align colon.' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/architecture/rule_600.py b/vsg/rules/architecture/rule_600.py index ea0ab782..cb1fae49 100644 --- a/vsg/rules/architecture/rule_600.py +++ b/vsg/rules/architecture/rule_600.py @@ -63,7 +63,7 @@ class rule_600(Rule): ''' def __init__(self): - Rule.__init__(self, 'architecture', '600', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/architecture/rule_601.py b/vsg/rules/architecture/rule_601.py index a2ec0333..29e4a9c3 100644 --- a/vsg/rules/architecture/rule_601.py +++ b/vsg/rules/architecture/rule_601.py @@ -65,7 +65,7 @@ class rule_601(case.Rule): ''' def __init__(self): - case.Rule.__init__(self, name="architecture", identifier="601") + case.Rule.__init__(self) self.subphase = 2 self.configuration_documentation_link = None diff --git a/vsg/rules/assert_statement/rule_001.py b/vsg/rules/assert_statement/rule_001.py index d1cde071..7d2a0da3 100644 --- a/vsg/rules/assert_statement/rule_001.py +++ b/vsg/rules/assert_statement/rule_001.py @@ -33,4 +33,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'assert', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/assert_statement/rule_002.py b/vsg/rules/assert_statement/rule_002.py index ae212642..a476570e 100644 --- a/vsg/rules/assert_statement/rule_002.py +++ b/vsg/rules/assert_statement/rule_002.py @@ -42,5 +42,5 @@ class rule_002(split_line_at_token_when_between_tokens_unless_token_is_found): ''' def __init__(self): - split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, 'assert', '002', lTokens, oStart, oEnd, oStop) + split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, lTokens, oStart, oEnd, oStop) self.solution = "Place **report** keyword on its own line." diff --git a/vsg/rules/assert_statement/rule_003.py b/vsg/rules/assert_statement/rule_003.py index 7583ff4b..0ce65f5c 100644 --- a/vsg/rules/assert_statement/rule_003.py +++ b/vsg/rules/assert_statement/rule_003.py @@ -52,5 +52,5 @@ class rule_003(split_line_at_token_when_between_tokens_unless_token_is_found): ''' def __init__(self): - split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, 'assert', '003', lTokens, oStart, oEnd, oStop) + split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, lTokens, oStart, oEnd, oStop) self.solution = "Place **report** keyword on its own line." diff --git a/vsg/rules/assert_statement/rule_004.py b/vsg/rules/assert_statement/rule_004.py index 2b3cb194..15e4e875 100644 --- a/vsg/rules/assert_statement/rule_004.py +++ b/vsg/rules/assert_statement/rule_004.py @@ -42,5 +42,5 @@ class rule_004(split_line_at_token_when_between_tokens_unless_token_is_found): ''' def __init__(self): - split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, 'assert', '004', lTokens, oStart, oEnd, oStop) + split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, lTokens, oStart, oEnd, oStop) self.solution = "Place **severity** keyword on its own line." diff --git a/vsg/rules/assert_statement/rule_005.py b/vsg/rules/assert_statement/rule_005.py index 9b2b09dd..45824ce0 100644 --- a/vsg/rules/assert_statement/rule_005.py +++ b/vsg/rules/assert_statement/rule_005.py @@ -48,5 +48,5 @@ class rule_005(split_line_at_token_when_between_tokens_unless_token_is_found): ''' def __init__(self): - split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, 'assert', '005', lTokens, oStart, oEnd, oStop) + split_line_at_token_when_between_tokens_unless_token_is_found.__init__(self, lTokens, oStart, oEnd, oStop) self.solution = "Place **severity** keyword on its own line." diff --git a/vsg/rules/assert_statement/rule_100.py b/vsg/rules/assert_statement/rule_100.py index 4aabee4e..fdfac000 100644 --- a/vsg/rules/assert_statement/rule_100.py +++ b/vsg/rules/assert_statement/rule_100.py @@ -30,4 +30,4 @@ class rule_100(Rule): severity FAILURE; ''' def __init__(self): - Rule.__init__(self, 'assert', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/assert_statement/rule_101.py b/vsg/rules/assert_statement/rule_101.py index 9da69d21..ad7bbeaa 100644 --- a/vsg/rules/assert_statement/rule_101.py +++ b/vsg/rules/assert_statement/rule_101.py @@ -30,4 +30,4 @@ class rule_101(Rule): severity FAILURE; ''' def __init__(self): - Rule.__init__(self, 'assert', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/assert_statement/rule_102.py b/vsg/rules/assert_statement/rule_102.py index 062aad48..b681183d 100644 --- a/vsg/rules/assert_statement/rule_102.py +++ b/vsg/rules/assert_statement/rule_102.py @@ -30,4 +30,4 @@ class rule_102(Rule): severity FAILURE; ''' def __init__(self): - Rule.__init__(self, 'assert', '102', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/assert_statement/rule_400.py b/vsg/rules/assert_statement/rule_400.py index 2d1ca24c..34ef2b7f 100644 --- a/vsg/rules/assert_statement/rule_400.py +++ b/vsg/rules/assert_statement/rule_400.py @@ -32,7 +32,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, name="assert", identifier="400") + Rule.__init__(self) self.lStartTokens = [assertion.report_keyword] self.lEndTokens = [assertion.severity_keyword, assertion_statement.semicolon, concurrent_assertion_statement.semicolon] self.configuration_documentation_link = None diff --git a/vsg/rules/assert_statement/rule_500.py b/vsg/rules/assert_statement/rule_500.py index ebeb06d9..8b97c437 100644 --- a/vsg/rules/assert_statement/rule_500.py +++ b/vsg/rules/assert_statement/rule_500.py @@ -29,5 +29,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'assert', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/assert_statement/rule_501.py b/vsg/rules/assert_statement/rule_501.py index 15b332f8..bfeea4a7 100644 --- a/vsg/rules/assert_statement/rule_501.py +++ b/vsg/rules/assert_statement/rule_501.py @@ -29,5 +29,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'assert', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/assert_statement/rule_502.py b/vsg/rules/assert_statement/rule_502.py index 3944ef69..696b81b8 100644 --- a/vsg/rules/assert_statement/rule_502.py +++ b/vsg/rules/assert_statement/rule_502.py @@ -29,5 +29,5 @@ class rule_502(token_case): ''' def __init__(self): - token_case.__init__(self, 'assert', '502', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/attribute/rule_001.py b/vsg/rules/attribute/rule_001.py index a976ed29..7b53f88f 100644 --- a/vsg/rules/attribute/rule_001.py +++ b/vsg/rules/attribute/rule_001.py @@ -11,5 +11,5 @@ class rule_001(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'attribute', '001') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been superceeded by attribute_declaration_300 and attribute_specification_300.') diff --git a/vsg/rules/attribute/rule_002.py b/vsg/rules/attribute/rule_002.py index 2ce3d709..c217e12e 100644 --- a/vsg/rules/attribute/rule_002.py +++ b/vsg/rules/attribute/rule_002.py @@ -11,5 +11,5 @@ class rule_002(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'attribute', '002') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been superceeded by attribute_declaration_500 and attribute_specification_500.') diff --git a/vsg/rules/attribute/rule_500.py b/vsg/rules/attribute/rule_500.py index 0769e584..e9ef6917 100644 --- a/vsg/rules/attribute/rule_500.py +++ b/vsg/rules/attribute/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'attribute', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/attribute_declaration/rule_100.py b/vsg/rules/attribute_declaration/rule_100.py index 6eca2619..61046131 100644 --- a/vsg/rules/attribute_declaration/rule_100.py +++ b/vsg/rules/attribute_declaration/rule_100.py @@ -27,4 +27,4 @@ class rule_100(Rule): attribute max_delay : time; ''' def __init__(self): - Rule.__init__(self, 'attribute_declaration', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/attribute_declaration/rule_101.py b/vsg/rules/attribute_declaration/rule_101.py index d2f9690c..b2b46441 100644 --- a/vsg/rules/attribute_declaration/rule_101.py +++ b/vsg/rules/attribute_declaration/rule_101.py @@ -26,5 +26,5 @@ class rule_101(Rule): attribute max_delay : time; ''' def __init__(self): - Rule.__init__(self, 'attribute_declaration', '101', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/attribute_declaration/rule_300.py b/vsg/rules/attribute_declaration/rule_300.py index 97524024..82dbb147 100644 --- a/vsg/rules/attribute_declaration/rule_300.py +++ b/vsg/rules/attribute_declaration/rule_300.py @@ -27,4 +27,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'attribute_declaration', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/attribute_declaration/rule_500.py b/vsg/rules/attribute_declaration/rule_500.py index 075447ab..47b3a2c6 100644 --- a/vsg/rules/attribute_declaration/rule_500.py +++ b/vsg/rules/attribute_declaration/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'attribute_declaration', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/attribute_declaration/rule_501.py b/vsg/rules/attribute_declaration/rule_501.py index 3499a1a1..31eff910 100644 --- a/vsg/rules/attribute_declaration/rule_501.py +++ b/vsg/rules/attribute_declaration/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'attribute_declaration', '501', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/attribute_declaration/rule_502.py b/vsg/rules/attribute_declaration/rule_502.py index 770705aa..db4fbec6 100644 --- a/vsg/rules/attribute_declaration/rule_502.py +++ b/vsg/rules/attribute_declaration/rule_502.py @@ -31,6 +31,6 @@ class rule_502(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'attribute_declaration', '502', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/attribute_specification/rule_100.py b/vsg/rules/attribute_specification/rule_100.py index dd5e6a3a..3a1f4058 100644 --- a/vsg/rules/attribute_specification/rule_100.py +++ b/vsg/rules/attribute_specification/rule_100.py @@ -33,4 +33,4 @@ class rule_100(Rule): attribute coordinate of comp_1:component is (0.0, 17.5); ''' def __init__(self): - Rule.__init__(self, 'attribute_specification', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/attribute_specification/rule_101.py b/vsg/rules/attribute_specification/rule_101.py index 4fe7da19..97e2ae87 100644 --- a/vsg/rules/attribute_specification/rule_101.py +++ b/vsg/rules/attribute_specification/rule_101.py @@ -28,4 +28,4 @@ class rule_101(Rule): attribute coordinate of comp_1 : component is (0.0, 17.5); ''' def __init__(self): - Rule.__init__(self, 'attribute_specification', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/attribute_specification/rule_300.py b/vsg/rules/attribute_specification/rule_300.py index 1ccf09b2..8dba22dc 100644 --- a/vsg/rules/attribute_specification/rule_300.py +++ b/vsg/rules/attribute_specification/rule_300.py @@ -27,4 +27,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'attribute_specification', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/attribute_specification/rule_500.py b/vsg/rules/attribute_specification/rule_500.py index bae007bb..a2a5c7e8 100644 --- a/vsg/rules/attribute_specification/rule_500.py +++ b/vsg/rules/attribute_specification/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'attribute_specification', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/attribute_specification/rule_501.py b/vsg/rules/attribute_specification/rule_501.py index b862b21d..d0c18e2a 100644 --- a/vsg/rules/attribute_specification/rule_501.py +++ b/vsg/rules/attribute_specification/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'attribute_specification', '501', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/attribute_specification/rule_502.py b/vsg/rules/attribute_specification/rule_502.py index decbd00d..c357bee8 100644 --- a/vsg/rules/attribute_specification/rule_502.py +++ b/vsg/rules/attribute_specification/rule_502.py @@ -27,5 +27,5 @@ class rule_502(token_case): ''' def __init__(self): - token_case.__init__(self, 'attribute_specification', '502', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/attribute_specification/rule_503.py b/vsg/rules/attribute_specification/rule_503.py index 0b76c641..798b2c4f 100644 --- a/vsg/rules/attribute_specification/rule_503.py +++ b/vsg/rules/attribute_specification/rule_503.py @@ -27,5 +27,5 @@ class rule_503(token_case): ''' def __init__(self): - token_case.__init__(self, 'attribute_specification', '503', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/blank_line_above_line_starting_with_token.py b/vsg/rules/blank_line_above_line_starting_with_token.py index 94ee360e..3646e470 100644 --- a/vsg/rules/blank_line_above_line_starting_with_token.py +++ b/vsg/rules/blank_line_above_line_starting_with_token.py @@ -21,8 +21,8 @@ class blank_line_above_line_starting_with_token(blank_line.Rule): token object that a blank line above should appear ''' - def __init__(self, name, identifier, lTokens, lAllowTokens=None): - blank_line.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, lAllowTokens=None): + blank_line.Rule.__init__(self) self.lTokens = lTokens if lAllowTokens is None: self.lAllowTokens = [] diff --git a/vsg/rules/blank_line_above_line_starting_with_token_when_between_tokens.py b/vsg/rules/blank_line_above_line_starting_with_token_when_between_tokens.py index 3ae7f4c3..0591088d 100644 --- a/vsg/rules/blank_line_above_line_starting_with_token_when_between_tokens.py +++ b/vsg/rules/blank_line_above_line_starting_with_token_when_between_tokens.py @@ -19,8 +19,8 @@ class Rule(rule): token object that a blank line above should appear ''' - def __init__(self, name, identifier, lTokens, lAllowTokens=None): - rule.__init__(self, name=name, identifier=identifier, lTokens=lTokens, lAllowTokens=lAllowTokens) + def __init__(self, lTokens, lAllowTokens=None): + rule.__init__(self, lTokens=lTokens, lAllowTokens=lAllowTokens) self.lBetweenTokenPairs = None def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/blank_line_below_line_ending_with_several_possible_tokens.py b/vsg/rules/blank_line_below_line_ending_with_several_possible_tokens.py index e408c11c..aad4b3df 100644 --- a/vsg/rules/blank_line_below_line_ending_with_several_possible_tokens.py +++ b/vsg/rules/blank_line_below_line_ending_with_several_possible_tokens.py @@ -23,8 +23,8 @@ class blank_line_below_line_ending_with_several_possible_tokens(Rule): token object that a blank line below should appear ''' - def __init__(self, name, identifier, lTokens, lAllowTokens=None): - Rule.__init__(self, name, identifier, lTokens, lAllowTokens) + def __init__(self, lTokens, lAllowTokens=None): + Rule.__init__(self, lTokens, lAllowTokens) def _get_tokens_of_interest(self, oFile): if self.style.startswith('require_blank_line'): diff --git a/vsg/rules/blank_line_below_line_ending_with_token.py b/vsg/rules/blank_line_below_line_ending_with_token.py index be3df15b..9ea084ef 100644 --- a/vsg/rules/blank_line_below_line_ending_with_token.py +++ b/vsg/rules/blank_line_below_line_ending_with_token.py @@ -24,8 +24,8 @@ class blank_line_below_line_ending_with_token(blank_line.Rule): token object that a blank line below should appear ''' - def __init__(self, name, identifier, lTokens, lAllowTokens=None): - blank_line.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, lAllowTokens=None): + blank_line.Rule.__init__(self) self.lTokens = lTokens self.lHierarchyLimits = None if lAllowTokens is None: diff --git a/vsg/rules/blank_lines_between_token_pairs.py b/vsg/rules/blank_lines_between_token_pairs.py index cbc51511..510691c4 100644 --- a/vsg/rules/blank_lines_between_token_pairs.py +++ b/vsg/rules/blank_lines_between_token_pairs.py @@ -24,8 +24,8 @@ class blank_lines_between_token_pairs(blank_line.Rule): The tokens to check for a single space between ''' - def __init__(self, name, identifier, lTokenPairs): - blank_line.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokenPairs): + blank_line.Rule.__init__(self) self.solution = 'Remove blank line' self.lTokenPairs = lTokenPairs diff --git a/vsg/rules/block/rule_001.py b/vsg/rules/block/rule_001.py index 423a8f21..6b65ad5f 100644 --- a/vsg/rules/block/rule_001.py +++ b/vsg/rules/block/rule_001.py @@ -33,5 +33,5 @@ class rule_001(move_token_sequences_left_of_token): ''' def __init__(self): - move_token_sequences_left_of_token.__init__(self, 'block', '001', lSequences, oLeftToken) + move_token_sequences_left_of_token.__init__(self, lSequences, oLeftToken) self.solution = 'Ensure block label is on the same line as *block* keyword.' diff --git a/vsg/rules/block/rule_002.py b/vsg/rules/block/rule_002.py index ce9d140e..46025e0f 100644 --- a/vsg/rules/block/rule_002.py +++ b/vsg/rules/block/rule_002.py @@ -34,6 +34,6 @@ class rule_002(insert_token_right_of_possible_tokens_if_it_does_not_exist_before ''' def __init__(self): - insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.__init__(self, 'block', '002', oInsertToken, lRightTokens, oBeforeToken) + insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.__init__(self, oInsertToken, lRightTokens, oBeforeToken) self.solution = '*is* keyword' self.groups.append('structure::optional') diff --git a/vsg/rules/block/rule_003.py b/vsg/rules/block/rule_003.py index ec145bdd..411bd295 100644 --- a/vsg/rules/block/rule_003.py +++ b/vsg/rules/block/rule_003.py @@ -32,5 +32,5 @@ class rule_003(move_token_to_the_right_of_several_possible_tokens_if_it_exists_b ''' def __init__(self): - move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.__init__(self, 'block', '003', oToken, lAnchorTokens, oStartToken, oEndToken, bInsertWhitespace=True) + move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.__init__(self, oToken, lAnchorTokens, oStartToken, oEndToken, bInsertWhitespace=True) self.solution = 'Move block_simple_name next to *block* keyword' diff --git a/vsg/rules/block/rule_004.py b/vsg/rules/block/rule_004.py index d6ab45eb..0d6f5873 100644 --- a/vsg/rules/block/rule_004.py +++ b/vsg/rules/block/rule_004.py @@ -26,5 +26,5 @@ class rule_004(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'block', '004', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *begin* keyword and code after it to the next line' diff --git a/vsg/rules/block/rule_005.py b/vsg/rules/block/rule_005.py index ca566086..c988b0a8 100644 --- a/vsg/rules/block/rule_005.py +++ b/vsg/rules/block/rule_005.py @@ -26,5 +26,5 @@ class rule_005(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'block', '005', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move code after the begin to the next line.' diff --git a/vsg/rules/block/rule_006.py b/vsg/rules/block/rule_006.py index 1c60c210..8972bf6e 100644 --- a/vsg/rules/block/rule_006.py +++ b/vsg/rules/block/rule_006.py @@ -26,5 +26,5 @@ class rule_006(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'block', '006', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *end* keyword and code after it to the next line' diff --git a/vsg/rules/block/rule_007.py b/vsg/rules/block/rule_007.py index f1a943fd..42777589 100644 --- a/vsg/rules/block/rule_007.py +++ b/vsg/rules/block/rule_007.py @@ -33,6 +33,6 @@ class rule_007(insert_token_left_of_token_if_it_does_not_exist_between_tokens_us ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, 'block', '007', oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) + insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) self.solution = 'label' self.groups.append('structure::optional') diff --git a/vsg/rules/block/rule_100.py b/vsg/rules/block/rule_100.py index 1ab795c8..aa494828 100644 --- a/vsg/rules/block/rule_100.py +++ b/vsg/rules/block/rule_100.py @@ -32,4 +32,4 @@ class rule_100(Rule): block_label : block is ''' def __init__(self): - Rule.__init__(self, 'block', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_101.py b/vsg/rules/block/rule_101.py index c632a77e..d7318360 100644 --- a/vsg/rules/block/rule_101.py +++ b/vsg/rules/block/rule_101.py @@ -27,4 +27,4 @@ class rule_101(Rule): end block block_label; ''' def __init__(self): - Rule.__init__(self, 'block', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_200.py b/vsg/rules/block/rule_200.py index 72f93220..3b8f4c67 100644 --- a/vsg/rules/block/rule_200.py +++ b/vsg/rules/block/rule_200.py @@ -30,4 +30,4 @@ class rule_200(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'block', '200', lTokens) + previous_line.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_201.py b/vsg/rules/block/rule_201.py index dbad0f2c..65f4344d 100644 --- a/vsg/rules/block/rule_201.py +++ b/vsg/rules/block/rule_201.py @@ -35,4 +35,4 @@ class rule_201(blank_line_below_line_ending_with_several_possible_tokens): ''' def __init__(self): - blank_line_below_line_ending_with_several_possible_tokens.__init__(self, 'block', '201', lTokens, lAllowTokens) + blank_line_below_line_ending_with_several_possible_tokens.__init__(self, lTokens, lAllowTokens) diff --git a/vsg/rules/block/rule_202.py b/vsg/rules/block/rule_202.py index ba56cbf5..d9bdb09f 100644 --- a/vsg/rules/block/rule_202.py +++ b/vsg/rules/block/rule_202.py @@ -38,4 +38,4 @@ class rule_202(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'block', '202', lTokens, lAllowTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens, lAllowTokens) diff --git a/vsg/rules/block/rule_203.py b/vsg/rules/block/rule_203.py index ea10efe9..390d58f4 100644 --- a/vsg/rules/block/rule_203.py +++ b/vsg/rules/block/rule_203.py @@ -30,4 +30,4 @@ class rule_203(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'block', '203', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_204.py b/vsg/rules/block/rule_204.py index 2a431e39..d3179698 100644 --- a/vsg/rules/block/rule_204.py +++ b/vsg/rules/block/rule_204.py @@ -34,4 +34,4 @@ class rule_204(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'block', '204', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_205.py b/vsg/rules/block/rule_205.py index f5862ab8..14d38ff2 100644 --- a/vsg/rules/block/rule_205.py +++ b/vsg/rules/block/rule_205.py @@ -30,4 +30,4 @@ class rule_205(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'block', '205', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_300.py b/vsg/rules/block/rule_300.py index 75611f48..f121e035 100644 --- a/vsg/rules/block/rule_300.py +++ b/vsg/rules/block/rule_300.py @@ -29,4 +29,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'block', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_301.py b/vsg/rules/block/rule_301.py index 8e56f2d4..1f8aa45e 100644 --- a/vsg/rules/block/rule_301.py +++ b/vsg/rules/block/rule_301.py @@ -29,4 +29,4 @@ class rule_301(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'block', '301', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_302.py b/vsg/rules/block/rule_302.py index dc17b1ac..a63fd17d 100644 --- a/vsg/rules/block/rule_302.py +++ b/vsg/rules/block/rule_302.py @@ -33,4 +33,4 @@ class rule_302(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'block', '302', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/block/rule_400.py b/vsg/rules/block/rule_400.py index 4c2661f9..0b2f6b3b 100644 --- a/vsg/rules/block/rule_400.py +++ b/vsg/rules/block/rule_400.py @@ -39,7 +39,7 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'block', '400', lAlign, token.block_statement.block_keyword, token.block_statement.begin_keyword, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, token.block_statement.block_keyword, token.block_statement.begin_keyword, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/block/rule_401.py b/vsg/rules/block/rule_401.py index 5a9f2a18..11c31839 100644 --- a/vsg/rules/block/rule_401.py +++ b/vsg/rules/block/rule_401.py @@ -41,7 +41,7 @@ class rule_401(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'block', '401', lAlign, token.block_statement.block_keyword, token.block_statement.begin_keyword, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, token.block_statement.block_keyword, token.block_statement.begin_keyword, lUnless) self.solution = 'Align colon.' self.subphase = 2 self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/block/rule_402.py b/vsg/rules/block/rule_402.py index b379b208..fa9971bd 100644 --- a/vsg/rules/block/rule_402.py +++ b/vsg/rules/block/rule_402.py @@ -34,6 +34,6 @@ class rule_402(Rule): ''' def __init__(self): - Rule.__init__(self, 'block', '402', lAlign, token.block_statement.block_keyword, token.block_statement.begin_keyword, lUnless) + Rule.__init__(self, lAlign, token.block_statement.block_keyword, token.block_statement.begin_keyword, lUnless) self.solution = 'Align colon.' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/block/rule_500.py b/vsg/rules/block/rule_500.py index 0d15914d..dce207b7 100644 --- a/vsg/rules/block/rule_500.py +++ b/vsg/rules/block/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'block', '500', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/block/rule_501.py b/vsg/rules/block/rule_501.py index 15a9145a..a14dfa23 100644 --- a/vsg/rules/block/rule_501.py +++ b/vsg/rules/block/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'block', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/block/rule_502.py b/vsg/rules/block/rule_502.py index b973fde9..abc84599 100644 --- a/vsg/rules/block/rule_502.py +++ b/vsg/rules/block/rule_502.py @@ -27,5 +27,5 @@ class rule_502(token_case): ''' def __init__(self): - token_case.__init__(self, 'block', '502', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/block/rule_503.py b/vsg/rules/block/rule_503.py index 3f8577cd..0aada312 100644 --- a/vsg/rules/block/rule_503.py +++ b/vsg/rules/block/rule_503.py @@ -29,5 +29,5 @@ class rule_503(token_case): ''' def __init__(self): - token_case.__init__(self, 'block', '503', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/block/rule_504.py b/vsg/rules/block/rule_504.py index f767d180..787535dd 100644 --- a/vsg/rules/block/rule_504.py +++ b/vsg/rules/block/rule_504.py @@ -27,5 +27,5 @@ class rule_504(token_case): ''' def __init__(self): - token_case.__init__(self, 'block', '504', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/block/rule_505.py b/vsg/rules/block/rule_505.py index f04315bb..347b40f5 100644 --- a/vsg/rules/block/rule_505.py +++ b/vsg/rules/block/rule_505.py @@ -27,5 +27,5 @@ class rule_505(token_case): ''' def __init__(self): - token_case.__init__(self, 'block', '505', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/block/rule_506.py b/vsg/rules/block/rule_506.py index 6e3932f1..6b2c16de 100644 --- a/vsg/rules/block/rule_506.py +++ b/vsg/rules/block/rule_506.py @@ -27,5 +27,5 @@ class rule_506(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'block', '506', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/block/rule_600.py b/vsg/rules/block/rule_600.py index 8f193551..abacb6f1 100644 --- a/vsg/rules/block/rule_600.py +++ b/vsg/rules/block/rule_600.py @@ -29,5 +29,5 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'block', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_blk'] diff --git a/vsg/rules/block/rule_601.py b/vsg/rules/block/rule_601.py index 075f7dd4..def7721b 100644 --- a/vsg/rules/block/rule_601.py +++ b/vsg/rules/block/rule_601.py @@ -29,6 +29,6 @@ class rule_601(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'block', '601', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['blk_'] self.solution = 'block label' diff --git a/vsg/rules/block_comment/' b/vsg/rules/block_comment/' index 65d4a867..2a76ee95 100644 --- a/vsg/rules/block_comment/' +++ b/vsg/rules/block_comment/' @@ -32,7 +32,7 @@ class rule_002(block_rule.Rule): ''' def __init__(self): - block_rule.Rule.__init__(self, 'block_comment', '002') + block_rule.Rule.__init__(self) self.comment_left = None self.configuration.append('comment_left') diff --git a/vsg/rules/block_comment/rule_001.py b/vsg/rules/block_comment/rule_001.py index f1bbd2f6..32cbf1d4 100644 --- a/vsg/rules/block_comment/rule_001.py +++ b/vsg/rules/block_comment/rule_001.py @@ -34,7 +34,7 @@ class rule_001(block_rule.Rule): ''' def __init__(self): - block_rule.Rule.__init__(self, 'block_comment', '001') + block_rule.Rule.__init__(self) self.header_left = None self.header_left_repeat = '-' self.header_string = None diff --git a/vsg/rules/block_comment/rule_002.py b/vsg/rules/block_comment/rule_002.py index 33c55a0a..5d8aa2c3 100644 --- a/vsg/rules/block_comment/rule_002.py +++ b/vsg/rules/block_comment/rule_002.py @@ -32,7 +32,7 @@ class rule_002(block_rule.Rule): ''' def __init__(self): - block_rule.Rule.__init__(self, 'block_comment', '002') + block_rule.Rule.__init__(self) self.comment_left = None self.configuration.append('comment_left') diff --git a/vsg/rules/block_comment/rule_003.py b/vsg/rules/block_comment/rule_003.py index a408496c..8f33ed75 100644 --- a/vsg/rules/block_comment/rule_003.py +++ b/vsg/rules/block_comment/rule_003.py @@ -33,7 +33,7 @@ class rule_003(block_rule.Rule): ''' def __init__(self): - block_rule.Rule.__init__(self, 'block_comment', '003') + block_rule.Rule.__init__(self) self.footer_left = None self.footer_left_repeat = '-' self.footer_string = None diff --git a/vsg/rules/case/rule_001.py b/vsg/rules/case/rule_001.py index 85c06869..26a5e9ec 100644 --- a/vsg/rules/case/rule_001.py +++ b/vsg/rules/case/rule_001.py @@ -40,4 +40,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'case', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/case/rule_002.py b/vsg/rules/case/rule_002.py index c6ab5c3b..d0a0119c 100644 --- a/vsg/rules/case/rule_002.py +++ b/vsg/rules/case/rule_002.py @@ -26,6 +26,6 @@ class rule_002(Rule): case data is ''' def __init__(self): - Rule.__init__(self, 'case', '002') + Rule.__init__(self) self.left_token = token.case_keyword self.right_token = parser.todo diff --git a/vsg/rules/case/rule_003.py b/vsg/rules/case/rule_003.py index 5e280576..7d55aa13 100644 --- a/vsg/rules/case/rule_003.py +++ b/vsg/rules/case/rule_003.py @@ -25,6 +25,6 @@ class rule_003(Rule): case data is ''' def __init__(self): - Rule.__init__(self, 'case', '003') + Rule.__init__(self) self.left_token = parser.todo self.right_token = token.is_keyword diff --git a/vsg/rules/case/rule_004.py b/vsg/rules/case/rule_004.py index 65c43aaa..3058a141 100644 --- a/vsg/rules/case/rule_004.py +++ b/vsg/rules/case/rule_004.py @@ -29,6 +29,6 @@ class rule_004(Rule): when 3 => ''' def __init__(self): - Rule.__init__(self, 'case', '004') + Rule.__init__(self) self.left_token = token.when_keyword self.right_token = parser.todo diff --git a/vsg/rules/case/rule_005.py b/vsg/rules/case/rule_005.py index 1c59fe06..a28850e8 100644 --- a/vsg/rules/case/rule_005.py +++ b/vsg/rules/case/rule_005.py @@ -27,4 +27,4 @@ class rule_005(Rule): when 3 => ''' def __init__(self): - Rule.__init__(self, 'case', '005', [token.assignment]) + Rule.__init__(self, [token.assignment]) diff --git a/vsg/rules/case/rule_006.py b/vsg/rules/case/rule_006.py index 51fc4a0d..cbc288f9 100644 --- a/vsg/rules/case/rule_006.py +++ b/vsg/rules/case/rule_006.py @@ -27,6 +27,6 @@ class rule_006(Rule): end case; ''' def __init__(self): - Rule.__init__(self, 'case', '006') + Rule.__init__(self) self.left_token = token.end_keyword self.right_token = token.end_case_keyword diff --git a/vsg/rules/case/rule_007.py b/vsg/rules/case/rule_007.py index 97a8cd3e..442cfcef 100644 --- a/vsg/rules/case/rule_007.py +++ b/vsg/rules/case/rule_007.py @@ -37,5 +37,5 @@ class rule_007(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'case', '007', [token.case_keyword]) + previous_line.__init__(self, [token.case_keyword]) self.style = 'no_code' diff --git a/vsg/rules/case/rule_008.py b/vsg/rules/case/rule_008.py index b06bdf4d..8b8ef741 100644 --- a/vsg/rules/case/rule_008.py +++ b/vsg/rules/case/rule_008.py @@ -7,5 +7,5 @@ class rule_008(deprecated_rule.Rule): The function of this rule has been included in rule case_201. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'case', '008') + deprecated_rule.Rule.__init__(self) self.message.append('The function of rule ' + self.unique_id + ' has been included in rule case_201:') diff --git a/vsg/rules/case/rule_009.py b/vsg/rules/case/rule_009.py index b6bc08f5..07ee5839 100644 --- a/vsg/rules/case/rule_009.py +++ b/vsg/rules/case/rule_009.py @@ -29,4 +29,4 @@ class rule_009(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'case', '009', [token.end_keyword]) + blank_line_above_line_starting_with_token.__init__(self, [token.end_keyword]) diff --git a/vsg/rules/case/rule_010.py b/vsg/rules/case/rule_010.py index 41e9f889..e561cedb 100644 --- a/vsg/rules/case/rule_010.py +++ b/vsg/rules/case/rule_010.py @@ -27,4 +27,4 @@ class rule_010(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'case', '010', [token.semicolon]) + blank_line_below_line_ending_with_token.__init__(self, [token.semicolon]) diff --git a/vsg/rules/case/rule_011.py b/vsg/rules/case/rule_011.py index 31a1bc70..603905ce 100644 --- a/vsg/rules/case/rule_011.py +++ b/vsg/rules/case/rule_011.py @@ -28,7 +28,7 @@ class rule_011(Rule): ''' def __init__(self): - Rule.__init__(self, 'case', '011') + Rule.__init__(self) self.lStartTokens = [token.when_keyword] self.lEndTokens = [token.assignment] self.solution = 'Align one space after *when* keyword' diff --git a/vsg/rules/case/rule_012.py b/vsg/rules/case/rule_012.py index 863ac8f0..005a0122 100644 --- a/vsg/rules/case/rule_012.py +++ b/vsg/rules/case/rule_012.py @@ -26,5 +26,5 @@ class rule_012(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'case', '012', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move code after the => to the next line.' diff --git a/vsg/rules/case/rule_013.py b/vsg/rules/case/rule_013.py index 5faa1966..548c56c5 100644 --- a/vsg/rules/case/rule_013.py +++ b/vsg/rules/case/rule_013.py @@ -34,4 +34,4 @@ class rule_013(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'case', '013', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/case/rule_014.py b/vsg/rules/case/rule_014.py index 44f272e9..930e8e00 100644 --- a/vsg/rules/case/rule_014.py +++ b/vsg/rules/case/rule_014.py @@ -35,5 +35,5 @@ class rule_014(token_case): ''' def __init__(self): - token_case.__init__(self, 'case', '014', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/case/rule_015.py b/vsg/rules/case/rule_015.py index 9d20f152..133b9d4e 100644 --- a/vsg/rules/case/rule_015.py +++ b/vsg/rules/case/rule_015.py @@ -35,5 +35,5 @@ class rule_015(token_case): ''' def __init__(self): - token_case.__init__(self, 'case', '015', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/case/rule_016.py b/vsg/rules/case/rule_016.py index 9ffd28a6..ca4f6b4a 100644 --- a/vsg/rules/case/rule_016.py +++ b/vsg/rules/case/rule_016.py @@ -31,5 +31,5 @@ class rule_016(token_case): ''' def __init__(self): - token_case.__init__(self, 'case', '016', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/case/rule_017.py b/vsg/rules/case/rule_017.py index b545219a..9cd75969 100644 --- a/vsg/rules/case/rule_017.py +++ b/vsg/rules/case/rule_017.py @@ -31,5 +31,5 @@ class rule_017(token_case): ''' def __init__(self): - token_case.__init__(self, 'case', '017', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/case/rule_018.py b/vsg/rules/case/rule_018.py index f3612732..226cd26c 100644 --- a/vsg/rules/case/rule_018.py +++ b/vsg/rules/case/rule_018.py @@ -31,5 +31,5 @@ class rule_018(token_case): ''' def __init__(self): - token_case.__init__(self, 'case', '018', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/case/rule_019.py b/vsg/rules/case/rule_019.py index da476c24..f00de01f 100644 --- a/vsg/rules/case/rule_019.py +++ b/vsg/rules/case/rule_019.py @@ -28,5 +28,5 @@ class rule_019(remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace): ''' def __init__(self): - remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, 'case', '019', token.case_label, token.label_colon) + remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, token.case_label, token.label_colon) self.solution = 'Remove Label' diff --git a/vsg/rules/case/rule_020.py b/vsg/rules/case/rule_020.py index ace6207e..beab7800 100644 --- a/vsg/rules/case/rule_020.py +++ b/vsg/rules/case/rule_020.py @@ -29,5 +29,5 @@ class rule_020(remove_tokens): ''' def __init__(self): - remove_tokens.__init__(self, 'case', '020', lTokens) + remove_tokens.__init__(self, lTokens) self.solution = 'Remove Label' diff --git a/vsg/rules/case/rule_021.py b/vsg/rules/case/rule_021.py index a114699b..037df975 100644 --- a/vsg/rules/case/rule_021.py +++ b/vsg/rules/case/rule_021.py @@ -7,5 +7,5 @@ class rule_021(deprecated_rule.Rule): The function of this rule has been superseded with comment indent updates and is handled by rule comment_010. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'case', '021') + deprecated_rule.Rule.__init__(self) self.message.append('The function of rule ' + self.unique_id + ' is covered by rule comment_010.') diff --git a/vsg/rules/case/rule_200.py b/vsg/rules/case/rule_200.py index 2408a83d..e62e29c5 100644 --- a/vsg/rules/case/rule_200.py +++ b/vsg/rules/case/rule_200.py @@ -30,4 +30,4 @@ class rule_200(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'case', '200', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/case/rule_201.py b/vsg/rules/case/rule_201.py index b96ad124..4d3d01e9 100644 --- a/vsg/rules/case/rule_201.py +++ b/vsg/rules/case/rule_201.py @@ -34,5 +34,5 @@ class rule_201(Rule): ''' def __init__(self): - Rule.__init__(self, 'case', '201', [token.when_keyword]) + Rule.__init__(self, [token.when_keyword]) self.style = 'allow_comment' diff --git a/vsg/rules/case_generate_alternative/rule_300.py b/vsg/rules/case_generate_alternative/rule_300.py index 4ab90a91..31694e83 100644 --- a/vsg/rules/case_generate_alternative/rule_300.py +++ b/vsg/rules/case_generate_alternative/rule_300.py @@ -7,5 +7,5 @@ class rule_300(deprecated_rule.Rule): The function of this rule has been superseded with comment indent updates and is handled by rule comment_010. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'case_generate_alternative', '300') + deprecated_rule.Rule.__init__(self) self.message.append('The function of rule ' + self.unique_id + ' is covered by rule comment_010.') diff --git a/vsg/rules/case_generate_alternative/rule_500.py b/vsg/rules/case_generate_alternative/rule_500.py index 157739b5..e218a31b 100644 --- a/vsg/rules/case_generate_alternative/rule_500.py +++ b/vsg/rules/case_generate_alternative/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'case_generate_alternative', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/case_generate_alternative/rule_501.py b/vsg/rules/case_generate_alternative/rule_501.py index ce5e28c3..986f5eb7 100644 --- a/vsg/rules/case_generate_alternative/rule_501.py +++ b/vsg/rules/case_generate_alternative/rule_501.py @@ -31,5 +31,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'case_generate_alternative', '501', lTokens, oStartToken, oEndToken) + Rule.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/case_generate_statement/rule_400.py b/vsg/rules/case_generate_statement/rule_400.py index 000136f8..6315ddb2 100644 --- a/vsg/rules/case_generate_statement/rule_400.py +++ b/vsg/rules/case_generate_statement/rule_400.py @@ -40,7 +40,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'case_generate_statement', '400', lAlign, oStart, oEnd) + Rule.__init__(self, lAlign, oStart, oEnd) self.solution = 'Inconsistent alignment of "=>".' self.disable = True self.compact_alignment = 'yes' diff --git a/vsg/rules/case_generate_statement/rule_500.py b/vsg/rules/case_generate_statement/rule_500.py index 4a2b8b6c..40d42430 100644 --- a/vsg/rules/case_generate_statement/rule_500.py +++ b/vsg/rules/case_generate_statement/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'case_generate_statement', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/case_generate_statement/rule_501.py b/vsg/rules/case_generate_statement/rule_501.py index d073c704..b5b14972 100644 --- a/vsg/rules/case_generate_statement/rule_501.py +++ b/vsg/rules/case_generate_statement/rule_501.py @@ -27,5 +27,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'case_generate_statement', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/comment/rule_004.py b/vsg/rules/comment/rule_004.py index ba147f64..04107858 100644 --- a/vsg/rules/comment/rule_004.py +++ b/vsg/rules/comment/rule_004.py @@ -29,5 +29,5 @@ class rule_004(Rule): ''' def __init__(self): - Rule.__init__(self, 'comment', '004', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/comment/rule_010.py b/vsg/rules/comment/rule_010.py index eec97552..86398ab4 100644 --- a/vsg/rules/comment/rule_010.py +++ b/vsg/rules/comment/rule_010.py @@ -50,6 +50,6 @@ class rule_010(token_indent_unless_between_tokens): ''' def __init__(self): - token_indent_unless_between_tokens.__init__(self, 'comment', '010', lTokens, lUnless) + token_indent_unless_between_tokens.__init__(self, lTokens, lUnless) self.phase = 4 self.subphase = 3 diff --git a/vsg/rules/comment/rule_011.py b/vsg/rules/comment/rule_011.py index 059ea6e3..0c0ed2a8 100644 --- a/vsg/rules/comment/rule_011.py +++ b/vsg/rules/comment/rule_011.py @@ -28,7 +28,7 @@ class rule_011(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, name='comment', identifier='011') + structure.Rule.__init__(self) self.solution = 'Move inline comment to previous line.' self.disable = True self.lTokens = [parser.comment] diff --git a/vsg/rules/comment/rule_012.py b/vsg/rules/comment/rule_012.py index acdf8e96..0b2f34d8 100644 --- a/vsg/rules/comment/rule_012.py +++ b/vsg/rules/comment/rule_012.py @@ -27,7 +27,7 @@ class rule_012(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, name='comment', identifier='012') + structure.Rule.__init__(self) self.solution = 'Move inline comment to previous line.' self.disable = True self.fixable = False diff --git a/vsg/rules/comment/rule_100.py b/vsg/rules/comment/rule_100.py index e5920e98..a6c61844 100644 --- a/vsg/rules/comment/rule_100.py +++ b/vsg/rules/comment/rule_100.py @@ -32,7 +32,7 @@ class rule_100(whitespace.Rule): ''' def __init__(self): - whitespace.Rule.__init__(self, name='comment', identifier='100') + whitespace.Rule.__init__(self) self.solution = 'Undefined' self.phase = 2 self.disable = False diff --git a/vsg/rules/component/rule_001.py b/vsg/rules/component/rule_001.py index 66d5ce8e..5869d7ca 100644 --- a/vsg/rules/component/rule_001.py +++ b/vsg/rules/component/rule_001.py @@ -35,4 +35,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'component', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/component/rule_002.py b/vsg/rules/component/rule_002.py index 9e933f6f..8b2fda6c 100644 --- a/vsg/rules/component/rule_002.py +++ b/vsg/rules/component/rule_002.py @@ -23,6 +23,6 @@ class rule_002(Rule): component fifo is ''' def __init__(self): - Rule.__init__(self, 'component', '002') + Rule.__init__(self) self.left_token = token.component_keyword self.right_token = token.identifier diff --git a/vsg/rules/component/rule_003.py b/vsg/rules/component/rule_003.py index 26da41ad..a4cc780f 100644 --- a/vsg/rules/component/rule_003.py +++ b/vsg/rules/component/rule_003.py @@ -29,5 +29,5 @@ class rule_003(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'component', '003', [token.component_keyword]) + previous_line.__init__(self, [token.component_keyword]) self.style = 'no_code' diff --git a/vsg/rules/component/rule_004.py b/vsg/rules/component/rule_004.py index 9b7ad092..c304cccd 100644 --- a/vsg/rules/component/rule_004.py +++ b/vsg/rules/component/rule_004.py @@ -31,5 +31,5 @@ class rule_004(token_case): ''' def __init__(self): - token_case.__init__(self, 'component', '004', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/component/rule_005.py b/vsg/rules/component/rule_005.py index a43f48ae..5b4382b8 100644 --- a/vsg/rules/component/rule_005.py +++ b/vsg/rules/component/rule_005.py @@ -27,5 +27,5 @@ class rule_005(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'component', '005', token.identifier, token.is_keyword) + move_token_next_to_another_token.__init__(self, token.identifier, token.is_keyword) self.solution = 'Ensure *is* keyword is on the same line as the entity name.' diff --git a/vsg/rules/component/rule_006.py b/vsg/rules/component/rule_006.py index 4e9a50f9..58601899 100644 --- a/vsg/rules/component/rule_006.py +++ b/vsg/rules/component/rule_006.py @@ -31,5 +31,5 @@ class rule_006(token_case): ''' def __init__(self): - token_case.__init__(self, 'component', '006', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/component/rule_007.py b/vsg/rules/component/rule_007.py index b190842e..88e2ba3e 100644 --- a/vsg/rules/component/rule_007.py +++ b/vsg/rules/component/rule_007.py @@ -23,6 +23,6 @@ class rule_007(Rule): component fifo is ''' def __init__(self): - Rule.__init__(self, 'component', '007') + Rule.__init__(self) self.left_token = token.identifier self.right_token = token.is_keyword diff --git a/vsg/rules/component/rule_008.py b/vsg/rules/component/rule_008.py index 3b5a0bf0..d31df1b0 100644 --- a/vsg/rules/component/rule_008.py +++ b/vsg/rules/component/rule_008.py @@ -27,5 +27,5 @@ class rule_008(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'component', '008', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/component/rule_009.py b/vsg/rules/component/rule_009.py index a8422a42..bc77f7b8 100644 --- a/vsg/rules/component/rule_009.py +++ b/vsg/rules/component/rule_009.py @@ -29,4 +29,4 @@ class rule_009(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'component', '009', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/component/rule_010.py b/vsg/rules/component/rule_010.py index 5cb15b3d..085b9fb5 100644 --- a/vsg/rules/component/rule_010.py +++ b/vsg/rules/component/rule_010.py @@ -27,5 +27,5 @@ class rule_010(token_case): ''' def __init__(self): - token_case.__init__(self, 'component', '010', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/component/rule_011.py b/vsg/rules/component/rule_011.py index 12dafb59..6129a8b5 100644 --- a/vsg/rules/component/rule_011.py +++ b/vsg/rules/component/rule_011.py @@ -23,6 +23,6 @@ class rule_011(Rule): end component fifo; ''' def __init__(self): - Rule.__init__(self, 'component', '011') + Rule.__init__(self) self.left_token = token.end_keyword self.right_token = token.end_component_keyword diff --git a/vsg/rules/component/rule_012.py b/vsg/rules/component/rule_012.py index 034034b9..8170d293 100644 --- a/vsg/rules/component/rule_012.py +++ b/vsg/rules/component/rule_012.py @@ -27,5 +27,5 @@ class rule_012(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'component', '012', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/component/rule_013.py b/vsg/rules/component/rule_013.py index 8487a2dc..8fadfede 100644 --- a/vsg/rules/component/rule_013.py +++ b/vsg/rules/component/rule_013.py @@ -23,6 +23,6 @@ class rule_013(Rule): end component fifo; ''' def __init__(self): - Rule.__init__(self, 'component', '013') + Rule.__init__(self) self.left_token = token.end_component_keyword self.right_token = token.component_simple_name diff --git a/vsg/rules/component/rule_014.py b/vsg/rules/component/rule_014.py index 532b0169..f5c7fc95 100644 --- a/vsg/rules/component/rule_014.py +++ b/vsg/rules/component/rule_014.py @@ -27,5 +27,5 @@ class rule_014(token_case): ''' def __init__(self): - token_case.__init__(self, 'component', '014', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/component/rule_015.py b/vsg/rules/component/rule_015.py index aafbee31..2b7d149e 100644 --- a/vsg/rules/component/rule_015.py +++ b/vsg/rules/component/rule_015.py @@ -9,5 +9,5 @@ class rule_015(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'component', '015') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' is required per the LRM.') diff --git a/vsg/rules/component/rule_016.py b/vsg/rules/component/rule_016.py index 9c40e208..ecd94bfc 100644 --- a/vsg/rules/component/rule_016.py +++ b/vsg/rules/component/rule_016.py @@ -34,5 +34,5 @@ class rule_016(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'component', '016', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) self.style = 'no_blank_line' diff --git a/vsg/rules/component/rule_017.py b/vsg/rules/component/rule_017.py index 38ffdc68..b28ad442 100644 --- a/vsg/rules/component/rule_017.py +++ b/vsg/rules/component/rule_017.py @@ -51,7 +51,7 @@ class rule_017(align_tokens_in_region_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens.__init__(self, 'component', '017', lAlign, token.component_declaration.component_keyword, token.component_declaration.end_keyword) + align_tokens_in_region_between_tokens.__init__(self, lAlign, token.component_declaration.component_keyword, token.component_declaration.end_keyword) self.solution = 'Align :.' self.configuration.remove('case_control_statements_ends_group') self.configuration.remove('if_control_statements_ends_group') diff --git a/vsg/rules/component/rule_018.py b/vsg/rules/component/rule_018.py index f54f089d..aa3d8dce 100644 --- a/vsg/rules/component/rule_018.py +++ b/vsg/rules/component/rule_018.py @@ -28,4 +28,4 @@ class rule_018(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'component', '018', [token.semicolon]) + blank_line_below_line_ending_with_token.__init__(self, [token.semicolon]) diff --git a/vsg/rules/component/rule_019.py b/vsg/rules/component/rule_019.py index c31f90f1..6311d87f 100644 --- a/vsg/rules/component/rule_019.py +++ b/vsg/rules/component/rule_019.py @@ -31,5 +31,5 @@ class rule_019(remove_comments_from_end_of_lines_bounded_by_tokens): ''' def __init__(self): - remove_comments_from_end_of_lines_bounded_by_tokens.__init__(self, 'component', '019', oStart, oEnd) + remove_comments_from_end_of_lines_bounded_by_tokens.__init__(self, oStart, oEnd) self.solution = 'Remove comment.' diff --git a/vsg/rules/component/rule_020.py b/vsg/rules/component/rule_020.py index b31c6278..59b310a1 100644 --- a/vsg/rules/component/rule_020.py +++ b/vsg/rules/component/rule_020.py @@ -55,6 +55,6 @@ class rule_020(align_tokens_in_region_between_tokens_skipping_lines_starting_wit ''' def __init__(self): - align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, 'component', '020', lAlign, token.component_declaration.component_keyword, token.component_declaration.end_keyword, lSkip) + align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, lAlign, token.component_declaration.component_keyword, token.component_declaration.end_keyword, lSkip) self.solution = 'Align identifer.' self.subphase = 2 diff --git a/vsg/rules/component/rule_021.py b/vsg/rules/component/rule_021.py index 0ff4cf6a..dcc9c804 100644 --- a/vsg/rules/component/rule_021.py +++ b/vsg/rules/component/rule_021.py @@ -27,6 +27,6 @@ class rule_021(insert_token_right_of_token_if_it_does_not_exist_before_token): end my_component; ''' def __init__(self): - insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, 'component', '021', token.is_keyword('is'), token.identifier, token.semicolon) + insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, token.is_keyword('is'), token.identifier, token.semicolon) self.solution = '*is* keyword.' self.groups.append('structure::optional') diff --git a/vsg/rules/concurrent/rule_001.py b/vsg/rules/concurrent/rule_001.py index 02b12338..2cf4d226 100644 --- a/vsg/rules/concurrent/rule_001.py +++ b/vsg/rules/concurrent/rule_001.py @@ -37,4 +37,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'concurrent', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/concurrent/rule_002.py b/vsg/rules/concurrent/rule_002.py index 240efb30..07c34726 100644 --- a/vsg/rules/concurrent/rule_002.py +++ b/vsg/rules/concurrent/rule_002.py @@ -31,4 +31,4 @@ class rule_002(Rule): ''' def __init__(self): - Rule.__init__(self, 'concurrent', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/concurrent/rule_003.py b/vsg/rules/concurrent/rule_003.py index 3f2c05c3..a4b92f44 100644 --- a/vsg/rules/concurrent/rule_003.py +++ b/vsg/rules/concurrent/rule_003.py @@ -39,6 +39,6 @@ class rule_003(multiline_alignment_between_tokens): ''' def __init__(self): - multiline_alignment_between_tokens.__init__(self, 'concurrent', '003', lTokenPairs) + multiline_alignment_between_tokens.__init__(self, lTokenPairs) self.phase = 5 self.subphase = 2 diff --git a/vsg/rules/concurrent/rule_004.py b/vsg/rules/concurrent/rule_004.py index 9ace8577..fcca885b 100644 --- a/vsg/rules/concurrent/rule_004.py +++ b/vsg/rules/concurrent/rule_004.py @@ -28,5 +28,5 @@ class rule_004(Rule): wr_en <= '0'; ''' def __init__(self): - Rule.__init__(self, 'concurrent', '004', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/concurrent/rule_005.py b/vsg/rules/concurrent/rule_005.py index d20abf4d..cd7685b7 100644 --- a/vsg/rules/concurrent/rule_005.py +++ b/vsg/rules/concurrent/rule_005.py @@ -25,5 +25,5 @@ class rule_005(remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace): ''' def __init__(self): - remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, 'concurrent', '005', token.label_name, token.label_colon) + remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, token.label_name, token.label_colon) self.solution = 'Remove Label' diff --git a/vsg/rules/concurrent/rule_006.py b/vsg/rules/concurrent/rule_006.py index 8247592f..c53283d3 100644 --- a/vsg/rules/concurrent/rule_006.py +++ b/vsg/rules/concurrent/rule_006.py @@ -31,7 +31,7 @@ class rule_006(align_tokens_in_region_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens.__init__(self, 'concurrent', '006', lAlign, token.architecture_body.begin_keyword, token.architecture_body.end_keyword) + align_tokens_in_region_between_tokens.__init__(self, lAlign, token.architecture_body.begin_keyword, token.architecture_body.end_keyword) self.solution = 'Inconsistent alignment of "<=" in group of lines.' self.generate_statement_ends_group = 'yes' self.configuration.append('generate_statement_ends_group') diff --git a/vsg/rules/concurrent/rule_007.py b/vsg/rules/concurrent/rule_007.py index f4998b2d..e0fc32f8 100644 --- a/vsg/rules/concurrent/rule_007.py +++ b/vsg/rules/concurrent/rule_007.py @@ -8,5 +8,5 @@ class rule_007(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'concurrent', '007') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to conditional_waveforms_001.') diff --git a/vsg/rules/concurrent/rule_008.py b/vsg/rules/concurrent/rule_008.py index c3a8887d..4089493b 100644 --- a/vsg/rules/concurrent/rule_008.py +++ b/vsg/rules/concurrent/rule_008.py @@ -52,7 +52,7 @@ class rule_008(alignment.Rule): ''' def __init__(self): - alignment.Rule.__init__(self, 'concurrent', '008') + alignment.Rule.__init__(self) self.subphase = 3 self.lTokens = lTokens self.left_token = oLeftToken diff --git a/vsg/rules/concurrent/rule_009.py b/vsg/rules/concurrent/rule_009.py index 2afdee00..2da19d5a 100644 --- a/vsg/rules/concurrent/rule_009.py +++ b/vsg/rules/concurrent/rule_009.py @@ -37,4 +37,4 @@ class rule_009(Rule): ''' def __init__(self): - Rule.__init__(self, 'concurrent', '009', lTokenPairs) + Rule.__init__(self, lTokenPairs) diff --git a/vsg/rules/concurrent/rule_010.py b/vsg/rules/concurrent/rule_010.py index 78cf1c74..bf8e54b0 100644 --- a/vsg/rules/concurrent/rule_010.py +++ b/vsg/rules/concurrent/rule_010.py @@ -40,5 +40,5 @@ class rule_010(blank_lines_between_token_pairs): ''' def __init__(self): - blank_lines_between_token_pairs.__init__(self, 'concurrent', '010', lTokenPairs) + blank_lines_between_token_pairs.__init__(self, lTokenPairs) self.configuration_documentation_link = None diff --git a/vsg/rules/concurrent/rule_011.py b/vsg/rules/concurrent/rule_011.py index 36465aa9..b7b1ccb4 100644 --- a/vsg/rules/concurrent/rule_011.py +++ b/vsg/rules/concurrent/rule_011.py @@ -40,4 +40,4 @@ class rule_011(Rule): ''' def __init__(self): - Rule.__init__(self, 'concurrent', '011', lTokenPairs) + Rule.__init__(self, lTokenPairs) diff --git a/vsg/rules/concurrent/rule_012.py b/vsg/rules/concurrent/rule_012.py index 8207085a..d1cf2cc9 100644 --- a/vsg/rules/concurrent/rule_012.py +++ b/vsg/rules/concurrent/rule_012.py @@ -32,6 +32,6 @@ class rule_012(Rule): ''' def __init__(self): - Rule.__init__(self, 'concurrent', '012', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.concurrent_simple_signal_assignment.assignment self.semicolon = token.concurrent_simple_signal_assignment.semicolon diff --git a/vsg/rules/concurrent/rule_400.py b/vsg/rules/concurrent/rule_400.py index 6819eb70..516e4ffc 100644 --- a/vsg/rules/concurrent/rule_400.py +++ b/vsg/rules/concurrent/rule_400.py @@ -38,7 +38,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'concurrent', '400', lAlign, oStart, oEnd) + Rule.__init__(self, lAlign, oStart, oEnd) self.phase = 5 self.subphase = 3 self.solution = 'Align =>' diff --git a/vsg/rules/concurrent/rule_401.py b/vsg/rules/concurrent/rule_401.py index b762cbca..88dd5f66 100644 --- a/vsg/rules/concurrent/rule_401.py +++ b/vsg/rules/concurrent/rule_401.py @@ -38,5 +38,5 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'concurrent', '401', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.concurrent_simple_signal_assignment.assignment diff --git a/vsg/rules/conditional_expressions/rule_100.py b/vsg/rules/conditional_expressions/rule_100.py index 5fe63cb6..ff148c31 100644 --- a/vsg/rules/conditional_expressions/rule_100.py +++ b/vsg/rules/conditional_expressions/rule_100.py @@ -24,4 +24,4 @@ class rule_100(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_expressions', '100', [token.when_keyword]) + Rule.__init__(self, [token.when_keyword]) diff --git a/vsg/rules/conditional_expressions/rule_101.py b/vsg/rules/conditional_expressions/rule_101.py index f1cce62f..b765c972 100644 --- a/vsg/rules/conditional_expressions/rule_101.py +++ b/vsg/rules/conditional_expressions/rule_101.py @@ -24,4 +24,4 @@ class rule_101(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_expressions', '101', [token.when_keyword]) + Rule.__init__(self, [token.when_keyword]) diff --git a/vsg/rules/conditional_expressions/rule_102.py b/vsg/rules/conditional_expressions/rule_102.py index 934118bc..50af29ea 100644 --- a/vsg/rules/conditional_expressions/rule_102.py +++ b/vsg/rules/conditional_expressions/rule_102.py @@ -24,4 +24,4 @@ class rule_102(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_expressions', '102', [token.else_keyword]) + Rule.__init__(self, [token.else_keyword]) diff --git a/vsg/rules/conditional_expressions/rule_103.py b/vsg/rules/conditional_expressions/rule_103.py index d3cd9901..892f9fb2 100644 --- a/vsg/rules/conditional_expressions/rule_103.py +++ b/vsg/rules/conditional_expressions/rule_103.py @@ -24,4 +24,4 @@ class rule_103(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_expressions', '103', [token.else_keyword]) + Rule.__init__(self, [token.else_keyword]) diff --git a/vsg/rules/conditional_expressions/rule_500.py b/vsg/rules/conditional_expressions/rule_500.py index e0ccd7a2..6a54b324 100644 --- a/vsg/rules/conditional_expressions/rule_500.py +++ b/vsg/rules/conditional_expressions/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_expressions', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/conditional_expressions/rule_501.py b/vsg/rules/conditional_expressions/rule_501.py index 3024c421..8dbfe31b 100644 --- a/vsg/rules/conditional_expressions/rule_501.py +++ b/vsg/rules/conditional_expressions/rule_501.py @@ -27,5 +27,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_expressions', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/conditional_waveforms/rule_001.py b/vsg/rules/conditional_waveforms/rule_001.py index 178716b9..feb2283a 100644 --- a/vsg/rules/conditional_waveforms/rule_001.py +++ b/vsg/rules/conditional_waveforms/rule_001.py @@ -60,7 +60,7 @@ class rule_001(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'conditional_waveforms', '001') + structure.Rule.__init__(self) self.solution = 'move code after else to next line.' self.subphase = 2 self.lSplitTokens = lSplitTokens diff --git a/vsg/rules/conditional_waveforms/rule_100.py b/vsg/rules/conditional_waveforms/rule_100.py index 85c7ad6a..5288ad66 100644 --- a/vsg/rules/conditional_waveforms/rule_100.py +++ b/vsg/rules/conditional_waveforms/rule_100.py @@ -24,4 +24,4 @@ class rule_100(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_waveforms', '100', [token.when_keyword]) + Rule.__init__(self, [token.when_keyword]) diff --git a/vsg/rules/conditional_waveforms/rule_101.py b/vsg/rules/conditional_waveforms/rule_101.py index a26f4010..84158da6 100644 --- a/vsg/rules/conditional_waveforms/rule_101.py +++ b/vsg/rules/conditional_waveforms/rule_101.py @@ -24,4 +24,4 @@ class rule_101(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_waveforms', '101', [token.when_keyword]) + Rule.__init__(self, [token.when_keyword]) diff --git a/vsg/rules/conditional_waveforms/rule_102.py b/vsg/rules/conditional_waveforms/rule_102.py index 65e06f64..37cd5a16 100644 --- a/vsg/rules/conditional_waveforms/rule_102.py +++ b/vsg/rules/conditional_waveforms/rule_102.py @@ -24,4 +24,4 @@ class rule_102(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_waveforms', '102', [token.else_keyword]) + Rule.__init__(self, [token.else_keyword]) diff --git a/vsg/rules/conditional_waveforms/rule_103.py b/vsg/rules/conditional_waveforms/rule_103.py index 2e16947e..3bae64e9 100644 --- a/vsg/rules/conditional_waveforms/rule_103.py +++ b/vsg/rules/conditional_waveforms/rule_103.py @@ -24,4 +24,4 @@ class rule_103(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_waveforms', '103', [token.else_keyword]) + Rule.__init__(self, [token.else_keyword]) diff --git a/vsg/rules/conditional_waveforms/rule_500.py b/vsg/rules/conditional_waveforms/rule_500.py index 1088b7b2..11949675 100644 --- a/vsg/rules/conditional_waveforms/rule_500.py +++ b/vsg/rules/conditional_waveforms/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_waveforms', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/conditional_waveforms/rule_501.py b/vsg/rules/conditional_waveforms/rule_501.py index 43c72da7..9ab52230 100644 --- a/vsg/rules/conditional_waveforms/rule_501.py +++ b/vsg/rules/conditional_waveforms/rule_501.py @@ -27,5 +27,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'conditional_waveforms', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/consistent_token_case.py b/vsg/rules/consistent_token_case.py index dd7e9edc..89f73806 100644 --- a/vsg/rules/consistent_token_case.py +++ b/vsg/rules/consistent_token_case.py @@ -28,8 +28,8 @@ class consistent_token_case(case.Rule): token type to apply the case check against ''' - def __init__(self, name, identifier, lTokens, lNames, lIgnore=None): - case.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, lNames, lIgnore=None): + case.Rule.__init__(self) self.subphase = 2 self.lTokens = lTokens self.lNames = lNames diff --git a/vsg/rules/constant/rule_001.py b/vsg/rules/constant/rule_001.py index 87d27223..908dd1fb 100644 --- a/vsg/rules/constant/rule_001.py +++ b/vsg/rules/constant/rule_001.py @@ -31,4 +31,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'constant', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/constant/rule_002.py b/vsg/rules/constant/rule_002.py index 4bce7f7e..10a7c1aa 100644 --- a/vsg/rules/constant/rule_002.py +++ b/vsg/rules/constant/rule_002.py @@ -27,5 +27,5 @@ class rule_002(token_case): ''' def __init__(self): - token_case.__init__(self, 'constant', '002', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/constant/rule_003.py b/vsg/rules/constant/rule_003.py index f0f6a794..549bf663 100644 --- a/vsg/rules/constant/rule_003.py +++ b/vsg/rules/constant/rule_003.py @@ -8,6 +8,6 @@ class rule_003(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'constant', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with the following rules:') self.message.append(' function_015, package_019, procedure_010, architecture_029 and process_037.') diff --git a/vsg/rules/constant/rule_004.py b/vsg/rules/constant/rule_004.py index 8a5da73a..d19322d5 100644 --- a/vsg/rules/constant/rule_004.py +++ b/vsg/rules/constant/rule_004.py @@ -27,5 +27,5 @@ class rule_004(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'constant', '004', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/constant/rule_005.py b/vsg/rules/constant/rule_005.py index f5ef174e..7ce9ef5c 100644 --- a/vsg/rules/constant/rule_005.py +++ b/vsg/rules/constant/rule_005.py @@ -29,4 +29,4 @@ class rule_005(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '005', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/constant/rule_006.py b/vsg/rules/constant/rule_006.py index c1f03e3b..c3c84c19 100644 --- a/vsg/rules/constant/rule_006.py +++ b/vsg/rules/constant/rule_006.py @@ -28,5 +28,5 @@ class rule_006(Rule): constant width : integer := 32; ''' def __init__(self): - Rule.__init__(self, 'constant', '006', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/constant/rule_007.py b/vsg/rules/constant/rule_007.py index 000c0eba..8270a6e3 100644 --- a/vsg/rules/constant/rule_007.py +++ b/vsg/rules/constant/rule_007.py @@ -31,5 +31,5 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '007', lTokens) + Rule.__init__(self, lTokens) self.bRemoveTrailingWhitespace = False diff --git a/vsg/rules/constant/rule_010.py b/vsg/rules/constant/rule_010.py index f4d75d42..96aa4d0e 100644 --- a/vsg/rules/constant/rule_010.py +++ b/vsg/rules/constant/rule_010.py @@ -29,5 +29,5 @@ class rule_010(Rule): constant width : integer := 10; ''' def __init__(self): - Rule.__init__(self, 'constant', '010', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/constant/rule_011.py b/vsg/rules/constant/rule_011.py index 9bd40f1e..57aa5ccd 100644 --- a/vsg/rules/constant/rule_011.py +++ b/vsg/rules/constant/rule_011.py @@ -11,7 +11,7 @@ class rule_011(deprecated_rule.Rule): * type_014 ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'constant', '011') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been superceeded by the following rules:') self.message.append(' ieee_500') self.message.append(' subtype_002') diff --git a/vsg/rules/constant/rule_012.py b/vsg/rules/constant/rule_012.py index 29281708..29bfe583 100644 --- a/vsg/rules/constant/rule_012.py +++ b/vsg/rules/constant/rule_012.py @@ -40,5 +40,5 @@ class rule_012(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '012', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.constant_declaration.assignment_operator diff --git a/vsg/rules/constant/rule_013.py b/vsg/rules/constant/rule_013.py index 805e060c..9f204ae0 100644 --- a/vsg/rules/constant/rule_013.py +++ b/vsg/rules/constant/rule_013.py @@ -75,5 +75,5 @@ class rule_013(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '013', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) self.bIncludeDeclarativePartNames = True diff --git a/vsg/rules/constant/rule_014.py b/vsg/rules/constant/rule_014.py index 9a2eb6d4..80c4a792 100644 --- a/vsg/rules/constant/rule_014.py +++ b/vsg/rules/constant/rule_014.py @@ -33,7 +33,7 @@ class rule_014(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '014', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.subphase = 3 self.phase = 5 self.iIndentAfterParen = 0 diff --git a/vsg/rules/constant/rule_015.py b/vsg/rules/constant/rule_015.py index a2555e7b..77a5a74d 100644 --- a/vsg/rules/constant/rule_015.py +++ b/vsg/rules/constant/rule_015.py @@ -28,5 +28,5 @@ class rule_015(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'constant', '015', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['c_'] diff --git a/vsg/rules/constant/rule_016.py b/vsg/rules/constant/rule_016.py index dcff3a2e..54ffc61c 100644 --- a/vsg/rules/constant/rule_016.py +++ b/vsg/rules/constant/rule_016.py @@ -34,7 +34,7 @@ class rule_016(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '016', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.constant_declaration.assignment_operator self.semicolon = token.constant_declaration.semicolon self.phase = 5 diff --git a/vsg/rules/constant/rule_017.py b/vsg/rules/constant/rule_017.py index c22ff603..ea5b3d1f 100644 --- a/vsg/rules/constant/rule_017.py +++ b/vsg/rules/constant/rule_017.py @@ -30,5 +30,5 @@ class rule_017(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '017') + Rule.__init__(self) self.lTokenPairs = lTokenPairs diff --git a/vsg/rules/constant/rule_100.py b/vsg/rules/constant/rule_100.py index de16721e..ca70cc3d 100644 --- a/vsg/rules/constant/rule_100.py +++ b/vsg/rules/constant/rule_100.py @@ -30,4 +30,4 @@ class rule_100(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/constant/rule_101.py b/vsg/rules/constant/rule_101.py index ab1d1538..6de1aac8 100644 --- a/vsg/rules/constant/rule_101.py +++ b/vsg/rules/constant/rule_101.py @@ -25,7 +25,7 @@ class rule_101(Rule): constant width : integer := 32; ''' def __init__(self): - Rule.__init__(self, 'constant', '101') + Rule.__init__(self) self.disable = True self.left_token = token.constant_keyword self.right_token = token.identifier diff --git a/vsg/rules/constant/rule_200.py b/vsg/rules/constant/rule_200.py index 367551b6..3b889af2 100644 --- a/vsg/rules/constant/rule_200.py +++ b/vsg/rules/constant/rule_200.py @@ -38,6 +38,6 @@ class rule_200(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '200', lTokens, lAllowTokens) + Rule.__init__(self, lTokens, lAllowTokens) self.disable = True self.configuration.remove('style') diff --git a/vsg/rules/constant/rule_400.py b/vsg/rules/constant/rule_400.py index 47d98110..99d2b727 100644 --- a/vsg/rules/constant/rule_400.py +++ b/vsg/rules/constant/rule_400.py @@ -40,7 +40,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'constant', '400', lAlign, oStartToken, oEndToken, lUnless) + Rule.__init__(self, lAlign, oStartToken, oEndToken, lUnless) self.solution = 'Align => .' self.configuration.remove('if_control_statements_ends_group') self.configuration.remove('case_control_statements_ends_group') diff --git a/vsg/rules/constant/rule_600.py b/vsg/rules/constant/rule_600.py index ae98ab43..409254b2 100644 --- a/vsg/rules/constant/rule_600.py +++ b/vsg/rules/constant/rule_600.py @@ -28,5 +28,5 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'constant', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_c'] diff --git a/vsg/rules/context/rule_001.py b/vsg/rules/context/rule_001.py index d294dd74..6b541920 100644 --- a/vsg/rules/context/rule_001.py +++ b/vsg/rules/context/rule_001.py @@ -29,4 +29,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'context', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/context/rule_002.py b/vsg/rules/context/rule_002.py index c3dc8252..517b98ea 100644 --- a/vsg/rules/context/rule_002.py +++ b/vsg/rules/context/rule_002.py @@ -23,6 +23,6 @@ class rule_002(Rule): context c1 is ''' def __init__(self): - Rule.__init__(self, 'context', '002') + Rule.__init__(self) self.left_token = token.context_keyword self.right_token = token.identifier diff --git a/vsg/rules/context/rule_003.py b/vsg/rules/context/rule_003.py index 36025b46..438fda92 100644 --- a/vsg/rules/context/rule_003.py +++ b/vsg/rules/context/rule_003.py @@ -35,5 +35,5 @@ class rule_003(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'context', '003', [token.context_keyword]) + previous_line.__init__(self, [token.context_keyword]) self.style = 'no_code' diff --git a/vsg/rules/context/rule_004.py b/vsg/rules/context/rule_004.py index a05b492e..43933a45 100644 --- a/vsg/rules/context/rule_004.py +++ b/vsg/rules/context/rule_004.py @@ -27,5 +27,5 @@ class rule_004(token_case): ''' def __init__(self): - token_case.__init__(self, 'context', '004', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/context/rule_005.py b/vsg/rules/context/rule_005.py index 2a64c96b..764de40d 100644 --- a/vsg/rules/context/rule_005.py +++ b/vsg/rules/context/rule_005.py @@ -25,6 +25,6 @@ class rule_005(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'context', '005', token.context_keyword, token.identifier) + move_token_next_to_another_token.__init__(self, token.context_keyword, token.identifier) self.subphase = 1 self.solution = 'Move identifier next to *context* keyword' diff --git a/vsg/rules/context/rule_006.py b/vsg/rules/context/rule_006.py index 4f413a8c..9a413fa1 100644 --- a/vsg/rules/context/rule_006.py +++ b/vsg/rules/context/rule_006.py @@ -23,6 +23,6 @@ class rule_006(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'context', '006', token.identifier, token.is_keyword) + move_token_next_to_another_token.__init__(self, token.identifier, token.is_keyword) self.subphase = 2 self.solution = 'Move *is* keyword next to context identifier' diff --git a/vsg/rules/context/rule_007.py b/vsg/rules/context/rule_007.py index 0c59c4d0..b856fcfa 100644 --- a/vsg/rules/context/rule_007.py +++ b/vsg/rules/context/rule_007.py @@ -30,5 +30,5 @@ class rule_007(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'context', '007', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move library and code after library to the next line' diff --git a/vsg/rules/context/rule_008.py b/vsg/rules/context/rule_008.py index ba898cc6..1ea5146a 100644 --- a/vsg/rules/context/rule_008.py +++ b/vsg/rules/context/rule_008.py @@ -31,5 +31,5 @@ class rule_008(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'context', '008', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *end* keyword and code after end to the next line' diff --git a/vsg/rules/context/rule_009.py b/vsg/rules/context/rule_009.py index 019f8172..1b8185ea 100644 --- a/vsg/rules/context/rule_009.py +++ b/vsg/rules/context/rule_009.py @@ -26,6 +26,6 @@ class rule_009(move_token_next_to_another_token_if_it_exists_between_tokens): ''' def __init__(self): - move_token_next_to_another_token_if_it_exists_between_tokens.__init__(self, 'context', '009', token.end_keyword, token.end_context_keyword, lBetweenTokens) + move_token_next_to_another_token_if_it_exists_between_tokens.__init__(self, token.end_keyword, token.end_context_keyword, lBetweenTokens) self.subphase = 1 self.solution = 'Move identifier next to *end* keyword' diff --git a/vsg/rules/context/rule_010.py b/vsg/rules/context/rule_010.py index 2642025a..4d47fc9e 100644 --- a/vsg/rules/context/rule_010.py +++ b/vsg/rules/context/rule_010.py @@ -32,6 +32,6 @@ class rule_010(move_token_to_the_right_of_several_possible_tokens_if_it_exists_b ''' def __init__(self): - move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.__init__(self, 'context', '010', oToken, lAnchorTokens, oStartToken, oEndToken, bInsertWhitespace=True) + move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.__init__(self, oToken, lAnchorTokens, oStartToken, oEndToken, bInsertWhitespace=True) self.subphase = 2 self.solution = 'Move context_simple_name next to *context* keyword' diff --git a/vsg/rules/context/rule_011.py b/vsg/rules/context/rule_011.py index f6fd7ef0..6d0786d2 100644 --- a/vsg/rules/context/rule_011.py +++ b/vsg/rules/context/rule_011.py @@ -44,5 +44,5 @@ class rule_011(move_token_to_the_right_of_several_possible_tokens_if_it_exists_b ''' def __init__(self): - move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.__init__(self, 'context', '011', oToken, lAnchorTokens, oStartToken, oEndToken) + move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.__init__(self, oToken, lAnchorTokens, oStartToken, oEndToken) self.subphase = 3 diff --git a/vsg/rules/context/rule_012.py b/vsg/rules/context/rule_012.py index 7fc9322b..1fde2669 100644 --- a/vsg/rules/context/rule_012.py +++ b/vsg/rules/context/rule_012.py @@ -27,5 +27,5 @@ class rule_012(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'context', '012', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/context/rule_013.py b/vsg/rules/context/rule_013.py index f6d227ec..49b0176e 100644 --- a/vsg/rules/context/rule_013.py +++ b/vsg/rules/context/rule_013.py @@ -27,5 +27,5 @@ class rule_013(token_case): ''' def __init__(self): - token_case.__init__(self, 'context', '013', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/context/rule_014.py b/vsg/rules/context/rule_014.py index 28bc0cde..16a8a09c 100644 --- a/vsg/rules/context/rule_014.py +++ b/vsg/rules/context/rule_014.py @@ -31,5 +31,5 @@ class rule_014(token_case): ''' def __init__(self): - token_case.__init__(self, 'context', '014', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/context/rule_015.py b/vsg/rules/context/rule_015.py index a4b75d61..885d2204 100644 --- a/vsg/rules/context/rule_015.py +++ b/vsg/rules/context/rule_015.py @@ -27,5 +27,5 @@ class rule_015(token_case): ''' def __init__(self): - token_case.__init__(self, 'context', '015', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/context/rule_016.py b/vsg/rules/context/rule_016.py index d17d5042..87ff445c 100644 --- a/vsg/rules/context/rule_016.py +++ b/vsg/rules/context/rule_016.py @@ -27,5 +27,5 @@ class rule_016(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'context', '016', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/context/rule_017.py b/vsg/rules/context/rule_017.py index 26a6614b..7e0b039f 100644 --- a/vsg/rules/context/rule_017.py +++ b/vsg/rules/context/rule_017.py @@ -23,6 +23,6 @@ class rule_017(Rule): context c1 is ''' def __init__(self): - Rule.__init__(self, 'context', '017') + Rule.__init__(self) self.left_token = token.identifier self.right_token = token.is_keyword diff --git a/vsg/rules/context/rule_018.py b/vsg/rules/context/rule_018.py index 07afce07..0b19121d 100644 --- a/vsg/rules/context/rule_018.py +++ b/vsg/rules/context/rule_018.py @@ -27,6 +27,6 @@ class rule_018(Rule): end context; ''' def __init__(self): - Rule.__init__(self, 'context', '018') + Rule.__init__(self) self.left_token = token.end_keyword self.right_token = token.end_context_keyword diff --git a/vsg/rules/context/rule_019.py b/vsg/rules/context/rule_019.py index 174b5b45..4c616e99 100644 --- a/vsg/rules/context/rule_019.py +++ b/vsg/rules/context/rule_019.py @@ -27,6 +27,6 @@ class rule_019(Rule): end context c1; ''' def __init__(self): - Rule.__init__(self, 'context', '019') + Rule.__init__(self) self.left_token = token.end_context_keyword self.right_token = token.context_simple_name diff --git a/vsg/rules/context/rule_020.py b/vsg/rules/context/rule_020.py index 76f40e64..6e0f5314 100644 --- a/vsg/rules/context/rule_020.py +++ b/vsg/rules/context/rule_020.py @@ -27,4 +27,4 @@ class rule_020(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'context', '020', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/context/rule_021.py b/vsg/rules/context/rule_021.py index c7d14aaf..d79e112a 100644 --- a/vsg/rules/context/rule_021.py +++ b/vsg/rules/context/rule_021.py @@ -28,6 +28,6 @@ class rule_021(insert_token_right_of_token_if_it_does_not_exist_before_token): ''' def __init__(self): - insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, 'context', '021', token.end_context_keyword('context'), token.end_keyword, token.semicolon) + insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, token.end_context_keyword('context'), token.end_keyword, token.semicolon) self.solution = '*context* keyword' self.groups.append('structure::optional') diff --git a/vsg/rules/context/rule_022.py b/vsg/rules/context/rule_022.py index 14637409..74baa8a1 100644 --- a/vsg/rules/context/rule_022.py +++ b/vsg/rules/context/rule_022.py @@ -24,6 +24,6 @@ class rule_022(insert_token_left_of_token_if_it_does_not_exist_between_tokens_us ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, 'context', '022', token.context_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) + insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, token.context_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) self.solution = 'context simple same' self.groups.append('structure::optional') diff --git a/vsg/rules/context/rule_023.py b/vsg/rules/context/rule_023.py index b3159297..4ce091bb 100644 --- a/vsg/rules/context/rule_023.py +++ b/vsg/rules/context/rule_023.py @@ -27,4 +27,4 @@ class rule_023(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'context', '023', [token.is_keyword]) + blank_line_below_line_ending_with_token.__init__(self, [token.is_keyword]) diff --git a/vsg/rules/context/rule_024.py b/vsg/rules/context/rule_024.py index 08081e66..7320a940 100644 --- a/vsg/rules/context/rule_024.py +++ b/vsg/rules/context/rule_024.py @@ -29,4 +29,4 @@ class rule_024(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'context', '024', [token.end_keyword]) + blank_line_above_line_starting_with_token.__init__(self, [token.end_keyword]) diff --git a/vsg/rules/context/rule_025.py b/vsg/rules/context/rule_025.py index c12909ac..11d2f274 100644 --- a/vsg/rules/context/rule_025.py +++ b/vsg/rules/context/rule_025.py @@ -27,4 +27,4 @@ class rule_025(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'context', '025', [token.semicolon]) + blank_line_below_line_ending_with_token.__init__(self, [token.semicolon]) diff --git a/vsg/rules/context/rule_026.py b/vsg/rules/context/rule_026.py index 05c33448..f1a05cb0 100644 --- a/vsg/rules/context/rule_026.py +++ b/vsg/rules/context/rule_026.py @@ -8,5 +8,5 @@ class rule_026(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'context', '026') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to whitespace_200.') diff --git a/vsg/rules/context/rule_027.py b/vsg/rules/context/rule_027.py index 8d144d7a..8b6cd122 100644 --- a/vsg/rules/context/rule_027.py +++ b/vsg/rules/context/rule_027.py @@ -8,5 +8,5 @@ class rule_027(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'context', '027') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to whitespace_200.') diff --git a/vsg/rules/context/rule_028.py b/vsg/rules/context/rule_028.py index 840fe8ff..ffd7ed39 100644 --- a/vsg/rules/context/rule_028.py +++ b/vsg/rules/context/rule_028.py @@ -30,4 +30,4 @@ class rule_028(proposed_rule.Rule): ''' def __init__(self): - proposed_rule.Rule.__init__(self, 'context', '028') + proposed_rule.Rule.__init__(self) diff --git a/vsg/rules/context_ref/rule_001.py b/vsg/rules/context_ref/rule_001.py index e3c51e3a..b889a043 100644 --- a/vsg/rules/context_ref/rule_001.py +++ b/vsg/rules/context_ref/rule_001.py @@ -27,4 +27,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'context_ref', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/context_ref/rule_002.py b/vsg/rules/context_ref/rule_002.py index ea7d4741..de9f75d4 100644 --- a/vsg/rules/context_ref/rule_002.py +++ b/vsg/rules/context_ref/rule_002.py @@ -27,4 +27,4 @@ class rule_002(Rule): context c1; ''' def __init__(self): - Rule.__init__(self, 'context_ref', '002', lTokenPairs) + Rule.__init__(self, lTokenPairs) diff --git a/vsg/rules/context_ref/rule_003.py b/vsg/rules/context_ref/rule_003.py index afaf0b13..20bb4310 100644 --- a/vsg/rules/context_ref/rule_003.py +++ b/vsg/rules/context_ref/rule_003.py @@ -27,5 +27,5 @@ class rule_003(token_case): ''' def __init__(self): - token_case.__init__(self, 'context_ref', '003', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/context_ref/rule_004.py b/vsg/rules/context_ref/rule_004.py index f9777510..22a9e87e 100644 --- a/vsg/rules/context_ref/rule_004.py +++ b/vsg/rules/context_ref/rule_004.py @@ -11,7 +11,7 @@ class rule_004(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'context_ref', '004') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been split into the following rules:') self.message.append(' context_ref_500') self.message.append(' context_ref_501') diff --git a/vsg/rules/context_ref/rule_005.py b/vsg/rules/context_ref/rule_005.py index 4457cf30..b5f57e1f 100644 --- a/vsg/rules/context_ref/rule_005.py +++ b/vsg/rules/context_ref/rule_005.py @@ -31,5 +31,5 @@ class rule_005(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'context_ref', '005', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move context and code after context to the next line' diff --git a/vsg/rules/context_ref/rule_006.py b/vsg/rules/context_ref/rule_006.py index b1e83e66..876a65b5 100644 --- a/vsg/rules/context_ref/rule_006.py +++ b/vsg/rules/context_ref/rule_006.py @@ -30,4 +30,4 @@ class rule_006(proposed_rule.Rule): ''' def __init__(self): - proposed_rule.Rule.__init__(self, 'context_ref', '006') + proposed_rule.Rule.__init__(self) diff --git a/vsg/rules/context_ref/rule_007.py b/vsg/rules/context_ref/rule_007.py index 53287f56..123c8e4c 100644 --- a/vsg/rules/context_ref/rule_007.py +++ b/vsg/rules/context_ref/rule_007.py @@ -27,4 +27,4 @@ class rule_007(proposed_rule.Rule): ''' def __init__(self): - proposed_rule.Rule.__init__(self, 'context_ref', '007') + proposed_rule.Rule.__init__(self) diff --git a/vsg/rules/context_ref/rule_008.py b/vsg/rules/context_ref/rule_008.py index 103c37de..3051185c 100644 --- a/vsg/rules/context_ref/rule_008.py +++ b/vsg/rules/context_ref/rule_008.py @@ -26,4 +26,4 @@ class rule_008(proposed_rule.Rule): ''' def __init__(self): - proposed_rule.Rule.__init__(self, 'context_ref', '008') + proposed_rule.Rule.__init__(self) diff --git a/vsg/rules/context_ref/rule_009.py b/vsg/rules/context_ref/rule_009.py index cb297f6e..f6619362 100644 --- a/vsg/rules/context_ref/rule_009.py +++ b/vsg/rules/context_ref/rule_009.py @@ -30,4 +30,4 @@ class rule_009(proposed_rule.Rule): ''' def __init__(self): - proposed_rule.Rule.__init__(self, 'context_ref', '009') + proposed_rule.Rule.__init__(self) diff --git a/vsg/rules/context_ref/rule_500.py b/vsg/rules/context_ref/rule_500.py index 2537579d..97440e40 100644 --- a/vsg/rules/context_ref/rule_500.py +++ b/vsg/rules/context_ref/rule_500.py @@ -27,6 +27,6 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'context_ref', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/context_ref/rule_501.py b/vsg/rules/context_ref/rule_501.py index 2815f858..d87afd46 100644 --- a/vsg/rules/context_ref/rule_501.py +++ b/vsg/rules/context_ref/rule_501.py @@ -27,6 +27,6 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'context_ref', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/declarative_part/rule_400.py b/vsg/rules/declarative_part/rule_400.py index d5eba79e..65730515 100644 --- a/vsg/rules/declarative_part/rule_400.py +++ b/vsg/rules/declarative_part/rule_400.py @@ -41,7 +41,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'declarative_part', '400', lAlign, None, None, lUnless) + Rule.__init__(self, lAlign, None, None, lUnless) self.solution = 'Align :=' self.prerequisites.append(prerequisite.New('procedure_401')) self.prerequisites.append(prerequisite.New('architecture_026')) diff --git a/vsg/rules/element_association/rule_100.py b/vsg/rules/element_association/rule_100.py index 555b3b4f..d17ac2a9 100644 --- a/vsg/rules/element_association/rule_100.py +++ b/vsg/rules/element_association/rule_100.py @@ -24,6 +24,6 @@ class rule_100(Rule): a <= (others => (others => '0')); ''' def __init__(self): - Rule.__init__(self, 'element_association', '100') + Rule.__init__(self) self.left_token = choice.others_keyword self.right_token = element_association.assignment diff --git a/vsg/rules/element_association/rule_101.py b/vsg/rules/element_association/rule_101.py index b399695f..578bd858 100644 --- a/vsg/rules/element_association/rule_101.py +++ b/vsg/rules/element_association/rule_101.py @@ -26,4 +26,4 @@ class rule_101(Rule): a <= (others => (others => '0')); ''' def __init__(self): - Rule.__init__(self, 'element_association', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/entity/rule_001.py b/vsg/rules/entity/rule_001.py index 140bd890..86d9f0e6 100644 --- a/vsg/rules/entity/rule_001.py +++ b/vsg/rules/entity/rule_001.py @@ -29,4 +29,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'entity', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/entity/rule_002.py b/vsg/rules/entity/rule_002.py index 70a83d1a..a0d9ebd2 100644 --- a/vsg/rules/entity/rule_002.py +++ b/vsg/rules/entity/rule_002.py @@ -23,6 +23,6 @@ class rule_002(Rule): entity fifo is ''' def __init__(self): - Rule.__init__(self, 'entity', '002') + Rule.__init__(self) self.left_token = token.entity_keyword self.right_token = token.identifier diff --git a/vsg/rules/entity/rule_003.py b/vsg/rules/entity/rule_003.py index f845311d..ed3ad3b5 100644 --- a/vsg/rules/entity/rule_003.py +++ b/vsg/rules/entity/rule_003.py @@ -27,4 +27,4 @@ class rule_003(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'entity', '003', [token.entity_keyword]) + previous_line.__init__(self, [token.entity_keyword]) diff --git a/vsg/rules/entity/rule_004.py b/vsg/rules/entity/rule_004.py index dca3f738..3cd12826 100644 --- a/vsg/rules/entity/rule_004.py +++ b/vsg/rules/entity/rule_004.py @@ -27,5 +27,5 @@ class rule_004(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity', '004', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/entity/rule_005.py b/vsg/rules/entity/rule_005.py index a410481c..e9c728ad 100644 --- a/vsg/rules/entity/rule_005.py +++ b/vsg/rules/entity/rule_005.py @@ -27,6 +27,6 @@ class rule_005(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'entity', '005', token.identifier, token.is_keyword) + move_token_next_to_another_token.__init__(self, token.identifier, token.is_keyword) self.subphase = 2 self.solution = 'Move *is* keyword next to identifier' diff --git a/vsg/rules/entity/rule_006.py b/vsg/rules/entity/rule_006.py index b0168da3..d37bfa23 100644 --- a/vsg/rules/entity/rule_006.py +++ b/vsg/rules/entity/rule_006.py @@ -27,5 +27,5 @@ class rule_006(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity', '006', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/entity/rule_007.py b/vsg/rules/entity/rule_007.py index 96d6c635..e72ef6fd 100644 --- a/vsg/rules/entity/rule_007.py +++ b/vsg/rules/entity/rule_007.py @@ -23,6 +23,6 @@ class rule_007(Rule): entity fifo is ''' def __init__(self): - Rule.__init__(self, 'entity', '007') + Rule.__init__(self) self.left_token = token.identifier self.right_token = token.is_keyword diff --git a/vsg/rules/entity/rule_008.py b/vsg/rules/entity/rule_008.py index ef2148fe..c3884691 100644 --- a/vsg/rules/entity/rule_008.py +++ b/vsg/rules/entity/rule_008.py @@ -27,5 +27,5 @@ class rule_008(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'entity', '008', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/entity/rule_009.py b/vsg/rules/entity/rule_009.py index 307e44e1..bb344424 100644 --- a/vsg/rules/entity/rule_009.py +++ b/vsg/rules/entity/rule_009.py @@ -31,4 +31,4 @@ class rule_009(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'entity', '009', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/entity/rule_010.py b/vsg/rules/entity/rule_010.py index 969b3d93..021bc6d2 100644 --- a/vsg/rules/entity/rule_010.py +++ b/vsg/rules/entity/rule_010.py @@ -27,5 +27,5 @@ class rule_010(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity', '010', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/entity/rule_011.py b/vsg/rules/entity/rule_011.py index f78a6719..a8237701 100644 --- a/vsg/rules/entity/rule_011.py +++ b/vsg/rules/entity/rule_011.py @@ -23,6 +23,6 @@ class rule_011(Rule): end entity fifo; ''' def __init__(self): - Rule.__init__(self, 'entity', '011') + Rule.__init__(self) self.left_token = token.end_keyword self.right_token = token.end_entity_keyword diff --git a/vsg/rules/entity/rule_012.py b/vsg/rules/entity/rule_012.py index 98fa4ebe..eafe4364 100644 --- a/vsg/rules/entity/rule_012.py +++ b/vsg/rules/entity/rule_012.py @@ -27,5 +27,5 @@ class rule_012(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'entity', '012', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/entity/rule_013.py b/vsg/rules/entity/rule_013.py index 72d17410..0d7815d2 100644 --- a/vsg/rules/entity/rule_013.py +++ b/vsg/rules/entity/rule_013.py @@ -23,6 +23,6 @@ class rule_013(Rule): end entity fifo; ''' def __init__(self): - Rule.__init__(self, 'entity', '013') + Rule.__init__(self) self.left_token = token.end_entity_keyword self.right_token = token.entity_simple_name diff --git a/vsg/rules/entity/rule_014.py b/vsg/rules/entity/rule_014.py index f7c5f01c..271a01c3 100644 --- a/vsg/rules/entity/rule_014.py +++ b/vsg/rules/entity/rule_014.py @@ -27,5 +27,5 @@ class rule_014(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity', '014', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/entity/rule_015.py b/vsg/rules/entity/rule_015.py index 83121942..37a96145 100644 --- a/vsg/rules/entity/rule_015.py +++ b/vsg/rules/entity/rule_015.py @@ -28,6 +28,6 @@ class rule_015(insert_token_right_of_token_if_it_does_not_exist_before_token): ''' def __init__(self): - insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, 'entity', '015', token.end_entity_keyword('entity'), token.end_keyword, token.semicolon) + insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, token.end_entity_keyword('entity'), token.end_keyword, token.semicolon) self.solution = '*entity* keyword' self.groups.append('structure::optional') diff --git a/vsg/rules/entity/rule_016.py b/vsg/rules/entity/rule_016.py index b8bd62a8..7d1d0836 100644 --- a/vsg/rules/entity/rule_016.py +++ b/vsg/rules/entity/rule_016.py @@ -36,5 +36,5 @@ class rule_016(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'entity', '016', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) self.style = 'no_blank_line' diff --git a/vsg/rules/entity/rule_017.py b/vsg/rules/entity/rule_017.py index 2cfbb7e4..ec9af185 100644 --- a/vsg/rules/entity/rule_017.py +++ b/vsg/rules/entity/rule_017.py @@ -47,7 +47,7 @@ class rule_017(align_tokens_in_region_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens.__init__(self, 'entity', '017', lAlign, token.entity_declaration.entity_keyword, token.entity_declaration.end_keyword) + align_tokens_in_region_between_tokens.__init__(self, lAlign, token.entity_declaration.entity_keyword, token.entity_declaration.end_keyword) self.solution = 'Align :.' self.configuration.remove('case_control_statements_ends_group') self.configuration.remove('if_control_statements_ends_group') diff --git a/vsg/rules/entity/rule_018.py b/vsg/rules/entity/rule_018.py index 6c54a4d1..5e0e0144 100644 --- a/vsg/rules/entity/rule_018.py +++ b/vsg/rules/entity/rule_018.py @@ -49,7 +49,7 @@ class rule_018(align_tokens_in_region_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens.__init__(self, 'entity', '018', lAlign, token.entity_declaration.entity_keyword, token.entity_declaration.end_keyword) + align_tokens_in_region_between_tokens.__init__(self, lAlign, token.entity_declaration.entity_keyword, token.entity_declaration.end_keyword) self.solution = 'Align :.' self.configuration.remove('case_control_statements_ends_group') self.configuration.remove('if_control_statements_ends_group') diff --git a/vsg/rules/entity/rule_019.py b/vsg/rules/entity/rule_019.py index 0e61ab2c..e14e77fd 100644 --- a/vsg/rules/entity/rule_019.py +++ b/vsg/rules/entity/rule_019.py @@ -24,7 +24,7 @@ class rule_019(insert_token_left_of_token_if_it_does_not_exist_between_tokens_us ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, 'entity', '019', token.entity_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) + insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, token.entity_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) self.subphase = 2 self.solution = 'entity simple name' self.groups.append('structure::optional') diff --git a/vsg/rules/entity/rule_020.py b/vsg/rules/entity/rule_020.py index 6c235c63..a3185511 100644 --- a/vsg/rules/entity/rule_020.py +++ b/vsg/rules/entity/rule_020.py @@ -51,6 +51,6 @@ class rule_020(align_tokens_in_region_between_tokens_skipping_lines_starting_wit ''' def __init__(self): - align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, 'entity', '020', lAlign, token.entity_declaration.entity_keyword, token.entity_declaration.end_keyword, lSkip) + align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, lAlign, token.entity_declaration.entity_keyword, token.entity_declaration.end_keyword, lSkip) self.solution = 'Align comment.' self.subphase = 4 diff --git a/vsg/rules/entity/rule_021.py b/vsg/rules/entity/rule_021.py index 97cf9256..6b46ca71 100644 --- a/vsg/rules/entity/rule_021.py +++ b/vsg/rules/entity/rule_021.py @@ -30,5 +30,5 @@ class rule_021(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'entity', '021', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move the **end** keyword to the next line.' diff --git a/vsg/rules/entity/rule_022.py b/vsg/rules/entity/rule_022.py index eddfb4a5..04b469ed 100644 --- a/vsg/rules/entity/rule_022.py +++ b/vsg/rules/entity/rule_022.py @@ -27,6 +27,6 @@ class rule_022(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '022', token.entity_keyword, token.identifier) + Rule.__init__(self, token.entity_keyword, token.identifier) self.subphase = 1 self.solution = 'Move identifier next to *entity* keyword' diff --git a/vsg/rules/entity/rule_023.py b/vsg/rules/entity/rule_023.py index edf845d9..18d94e56 100644 --- a/vsg/rules/entity/rule_023.py +++ b/vsg/rules/entity/rule_023.py @@ -27,6 +27,6 @@ class rule_023(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '023', token.end_keyword, token.end_entity_keyword) + Rule.__init__(self, token.end_keyword, token.end_entity_keyword) self.subphase = 1 self.solution = 'Move identifier next to *entity* keyword' diff --git a/vsg/rules/entity/rule_024.py b/vsg/rules/entity/rule_024.py index 351724ef..569eb055 100644 --- a/vsg/rules/entity/rule_024.py +++ b/vsg/rules/entity/rule_024.py @@ -30,6 +30,6 @@ class rule_024(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '024', lTokens) + Rule.__init__(self, lTokens) self.subphase = 2 self.bRemoveTrailingWhitespace = False diff --git a/vsg/rules/entity/rule_025.py b/vsg/rules/entity/rule_025.py index b6c391c4..27844b66 100644 --- a/vsg/rules/entity/rule_025.py +++ b/vsg/rules/entity/rule_025.py @@ -30,6 +30,6 @@ class rule_025(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '025', lTokens) + Rule.__init__(self, lTokens) self.bInsertWhitespace = False self.subphase = 3 diff --git a/vsg/rules/entity/rule_026.py b/vsg/rules/entity/rule_026.py index 7c708042..3206bcc3 100644 --- a/vsg/rules/entity/rule_026.py +++ b/vsg/rules/entity/rule_026.py @@ -26,5 +26,5 @@ class rule_026(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '026', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after the **is** keyword to the next line.' diff --git a/vsg/rules/entity/rule_027.py b/vsg/rules/entity/rule_027.py index cece1ddc..2d8141df 100644 --- a/vsg/rules/entity/rule_027.py +++ b/vsg/rules/entity/rule_027.py @@ -26,5 +26,5 @@ class rule_027(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '027', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after the **begin** keyword to the next line.' diff --git a/vsg/rules/entity/rule_028.py b/vsg/rules/entity/rule_028.py index 7a1d055d..4b0a40cb 100644 --- a/vsg/rules/entity/rule_028.py +++ b/vsg/rules/entity/rule_028.py @@ -26,5 +26,5 @@ class rule_028(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '028', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after the semicolon to the next line.' diff --git a/vsg/rules/entity/rule_029.py b/vsg/rules/entity/rule_029.py index 9e66f931..1b74c546 100644 --- a/vsg/rules/entity/rule_029.py +++ b/vsg/rules/entity/rule_029.py @@ -34,5 +34,5 @@ class rule_029(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'entity', '029', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move the **begin** keyword to the next line.' diff --git a/vsg/rules/entity/rule_200.py b/vsg/rules/entity/rule_200.py index 0a9f0c99..940b5422 100644 --- a/vsg/rules/entity/rule_200.py +++ b/vsg/rules/entity/rule_200.py @@ -32,6 +32,6 @@ class rule_200(Rule): generic ( ''' def __init__(self): - Rule.__init__(self, 'entity', '200', lTokens) + Rule.__init__(self, lTokens) self.style = 'no_blank_line' self.lBetweenTokenPairs = [between.entity_keyword, between.semicolon] diff --git a/vsg/rules/entity/rule_201.py b/vsg/rules/entity/rule_201.py index 2fa418db..9898c954 100644 --- a/vsg/rules/entity/rule_201.py +++ b/vsg/rules/entity/rule_201.py @@ -25,5 +25,5 @@ class rule_201(Rule): port ( ''' def __init__(self): - Rule.__init__(self, 'entity', '201', [token.is_keyword], iAllow=0) + Rule.__init__(self, [token.is_keyword], iAllow=0) self.configuration_documentation_link = None diff --git a/vsg/rules/entity/rule_202.py b/vsg/rules/entity/rule_202.py index 05112213..30c082c3 100644 --- a/vsg/rules/entity/rule_202.py +++ b/vsg/rules/entity/rule_202.py @@ -32,6 +32,6 @@ class rule_202(Rule): port ( ''' def __init__(self): - Rule.__init__(self, 'entity', '202', lTokens) + Rule.__init__(self, lTokens) self.style = 'no_blank_line' self.lBetweenTokenPairs = [between.entity_keyword, between.semicolon] diff --git a/vsg/rules/entity/rule_203.py b/vsg/rules/entity/rule_203.py index b19fa56b..8b485ca3 100644 --- a/vsg/rules/entity/rule_203.py +++ b/vsg/rules/entity/rule_203.py @@ -27,4 +27,4 @@ class rule_203(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '203', [token.semicolon]) + Rule.__init__(self, [token.semicolon]) diff --git a/vsg/rules/entity/rule_300.py b/vsg/rules/entity/rule_300.py index e30313fd..b261274a 100644 --- a/vsg/rules/entity/rule_300.py +++ b/vsg/rules/entity/rule_300.py @@ -29,4 +29,4 @@ class rule_300(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '300', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/entity/rule_500.py b/vsg/rules/entity/rule_500.py index 82871142..c3f21709 100644 --- a/vsg/rules/entity/rule_500.py +++ b/vsg/rules/entity/rule_500.py @@ -35,5 +35,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/entity/rule_600.py b/vsg/rules/entity/rule_600.py index 330d51a6..bc018f49 100644 --- a/vsg/rules/entity/rule_600.py +++ b/vsg/rules/entity/rule_600.py @@ -51,7 +51,7 @@ class rule_600(Rule): ''' def __init__(self): - Rule.__init__(self, 'entity', '600', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/entity_specification/rule_100.py b/vsg/rules/entity_specification/rule_100.py index cea1b4a3..3b9c88ec 100644 --- a/vsg/rules/entity_specification/rule_100.py +++ b/vsg/rules/entity_specification/rule_100.py @@ -28,4 +28,4 @@ class rule_100(Rule): attribute coordinate of comp_1 : component is (0.0, 17.5); ''' def __init__(self): - Rule.__init__(self, 'entity_specification', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/entity_specification/rule_101.py b/vsg/rules/entity_specification/rule_101.py index 3c2f8a9d..7945d110 100644 --- a/vsg/rules/entity_specification/rule_101.py +++ b/vsg/rules/entity_specification/rule_101.py @@ -30,5 +30,5 @@ class rule_101(Rule): attribute coordinate of comp_1 : component is (0.0, 17.5); ''' def __init__(self): - Rule.__init__(self, 'entity_specification', '101', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/entity_specification/rule_500.py b/vsg/rules/entity_specification/rule_500.py index b32c0786..56df8e1e 100644 --- a/vsg/rules/entity_specification/rule_500.py +++ b/vsg/rules/entity_specification/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity_specification', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/entity_specification/rule_501.py b/vsg/rules/entity_specification/rule_501.py index 4aec7a1f..d5ab23df 100644 --- a/vsg/rules/entity_specification/rule_501.py +++ b/vsg/rules/entity_specification/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity_specification', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/entity_specification/rule_502.py b/vsg/rules/entity_specification/rule_502.py index 92cd36e3..bb66ce31 100644 --- a/vsg/rules/entity_specification/rule_502.py +++ b/vsg/rules/entity_specification/rule_502.py @@ -7,5 +7,5 @@ class rule_502(deprecated_rule.Rule): This rule has been deprecated. The case of *entity_designator* should be enforced by other rules. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'entity_specification', '502') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been deprecated.') diff --git a/vsg/rules/entity_specification/rule_503.py b/vsg/rules/entity_specification/rule_503.py index dfcad5db..b2afef50 100644 --- a/vsg/rules/entity_specification/rule_503.py +++ b/vsg/rules/entity_specification/rule_503.py @@ -27,6 +27,6 @@ class rule_503(token_case): ''' def __init__(self): - token_case.__init__(self, 'entity_specification', '503', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/existence_of_tokens_which_should_not_occur.py b/vsg/rules/existence_of_tokens_which_should_not_occur.py index c09fc67f..01bff2a9 100644 --- a/vsg/rules/existence_of_tokens_which_should_not_occur.py +++ b/vsg/rules/existence_of_tokens_which_should_not_occur.py @@ -24,8 +24,8 @@ class existence_of_tokens_which_should_not_occur(structure.Rule): acceptable prefixes ''' - def __init__(self, name, identifier, lTokens): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + structure.Rule.__init__(self) self.lTokens = lTokens self.fixable = False self.configuration_documentation_link = None diff --git a/vsg/rules/exit_statement/rule_300.py b/vsg/rules/exit_statement/rule_300.py index 735d6748..1a4371c6 100644 --- a/vsg/rules/exit_statement/rule_300.py +++ b/vsg/rules/exit_statement/rule_300.py @@ -30,4 +30,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'exit_statement', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/experiment.py b/vsg/rules/experiment.py index 2505e8da..b0ef18dd 100644 --- a/vsg/rules/experiment.py +++ b/vsg/rules/experiment.py @@ -17,8 +17,8 @@ class Rule(structure.Rule): This rule checks the structure of multiline constraints. ''' - def __init__(self, name, identifier): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + structure.Rule.__init__(self) self.phase = 1 self.lTokenPairs = None diff --git a/vsg/rules/exponent/rule_500.py b/vsg/rules/exponent/rule_500.py index e972bc09..fda2ee8c 100644 --- a/vsg/rules/exponent/rule_500.py +++ b/vsg/rules/exponent/rule_500.py @@ -29,5 +29,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'exponent', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/file_length.py b/vsg/rules/file_length.py index 53801b78..eda3dbd9 100644 --- a/vsg/rules/file_length.py +++ b/vsg/rules/file_length.py @@ -19,8 +19,8 @@ class file_length(length.Rule): ''' - def __init__(self, name, identifier): - length.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + length.Rule.__init__(self) self.length = 2000 def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/file_statement/rule_001.py b/vsg/rules/file_statement/rule_001.py index 16f62773..8bb46d8e 100644 --- a/vsg/rules/file_statement/rule_001.py +++ b/vsg/rules/file_statement/rule_001.py @@ -41,4 +41,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'file', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/file_statement/rule_002.py b/vsg/rules/file_statement/rule_002.py index 4e556953..2509b50b 100644 --- a/vsg/rules/file_statement/rule_002.py +++ b/vsg/rules/file_statement/rule_002.py @@ -35,5 +35,5 @@ class rule_002(token_case): ''' def __init__(self): - token_case.__init__(self, 'file', '002', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/file_statement/rule_003.py b/vsg/rules/file_statement/rule_003.py index b9f4099f..d457cafb 100644 --- a/vsg/rules/file_statement/rule_003.py +++ b/vsg/rules/file_statement/rule_003.py @@ -13,7 +13,7 @@ class rule_003(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'file', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' was replaced with the following rules:') self.message.append(' function_015') self.message.append(' package_019') diff --git a/vsg/rules/file_statement/rule_100.py b/vsg/rules/file_statement/rule_100.py index 95268f2a..c4fb2377 100644 --- a/vsg/rules/file_statement/rule_100.py +++ b/vsg/rules/file_statement/rule_100.py @@ -23,7 +23,7 @@ class rule_100(Rule): file defaultImage : load_file_type open read_mode is load_file_name; ''' def __init__(self): - Rule.__init__(self, 'file', '100') + Rule.__init__(self) self.disable = True self.left_token = token.file_keyword self.right_token = token.identifier diff --git a/vsg/rules/for_generate_statement/rule_500.py b/vsg/rules/for_generate_statement/rule_500.py index 2770aac7..b29556e5 100644 --- a/vsg/rules/for_generate_statement/rule_500.py +++ b/vsg/rules/for_generate_statement/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'for_generate_statement', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/for_generate_statement/rule_501.py b/vsg/rules/for_generate_statement/rule_501.py index 44f5b451..e6659703 100644 --- a/vsg/rules/for_generate_statement/rule_501.py +++ b/vsg/rules/for_generate_statement/rule_501.py @@ -27,5 +27,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'for_generate_statement', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/for_loop/rule_001.py b/vsg/rules/for_loop/rule_001.py index 21ea2c41..73144994 100644 --- a/vsg/rules/for_loop/rule_001.py +++ b/vsg/rules/for_loop/rule_001.py @@ -8,5 +8,5 @@ class rule_001(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'for_loop', '001') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to iteration_scheme_301.') diff --git a/vsg/rules/for_loop/rule_002.py b/vsg/rules/for_loop/rule_002.py index a8bbc2c3..3a9ea0c6 100644 --- a/vsg/rules/for_loop/rule_002.py +++ b/vsg/rules/for_loop/rule_002.py @@ -8,5 +8,5 @@ class rule_002(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'for_loop', '002') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to loop_statement_302.') diff --git a/vsg/rules/for_loop/rule_003.py b/vsg/rules/for_loop/rule_003.py index 2c8dd7fb..e5c7a029 100644 --- a/vsg/rules/for_loop/rule_003.py +++ b/vsg/rules/for_loop/rule_003.py @@ -8,5 +8,5 @@ class rule_003(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'for_loop', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' move been moved to loop_statement_503.') diff --git a/vsg/rules/for_loop/rule_004.py b/vsg/rules/for_loop/rule_004.py index 2e1bc3f0..220ee7d6 100644 --- a/vsg/rules/for_loop/rule_004.py +++ b/vsg/rules/for_loop/rule_004.py @@ -8,5 +8,5 @@ class rule_004(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'for_loop', '004') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' move been moved to loop_statement_103.') diff --git a/vsg/rules/for_loop/rule_005.py b/vsg/rules/for_loop/rule_005.py index a23205df..3fc55b63 100644 --- a/vsg/rules/for_loop/rule_005.py +++ b/vsg/rules/for_loop/rule_005.py @@ -8,5 +8,5 @@ class rule_005(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'for_loop', '005') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' move been moved to loop_statement_104.') diff --git a/vsg/rules/formal_part_in_association_element_between_tokens.py b/vsg/rules/formal_part_in_association_element_between_tokens.py index 63156509..054164ce 100644 --- a/vsg/rules/formal_part_in_association_element_between_tokens.py +++ b/vsg/rules/formal_part_in_association_element_between_tokens.py @@ -25,8 +25,8 @@ class formal_part_in_association_element_between_tokens(structure.Rule): The end of the range ''' - def __init__(self, name, identifier, oStart, oEnd): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, oStart, oEnd): + structure.Rule.__init__(self) self.fixable = False self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/function/rule_001.py b/vsg/rules/function/rule_001.py index 1a429914..b926092c 100644 --- a/vsg/rules/function/rule_001.py +++ b/vsg/rules/function/rule_001.py @@ -40,4 +40,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'function', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/function/rule_002.py b/vsg/rules/function/rule_002.py index f860bd47..91c4edf9 100644 --- a/vsg/rules/function/rule_002.py +++ b/vsg/rules/function/rule_002.py @@ -8,5 +8,5 @@ class rule_002(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'function', '002') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been merged into function_100.') diff --git a/vsg/rules/function/rule_003.py b/vsg/rules/function/rule_003.py index e4050128..c66dc39c 100644 --- a/vsg/rules/function/rule_003.py +++ b/vsg/rules/function/rule_003.py @@ -8,5 +8,5 @@ class rule_003(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'function', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been merged into function_100.') diff --git a/vsg/rules/function/rule_004.py b/vsg/rules/function/rule_004.py index 1a270593..70d274b9 100644 --- a/vsg/rules/function/rule_004.py +++ b/vsg/rules/function/rule_004.py @@ -32,5 +32,5 @@ class rule_004(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'function', '004', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/function/rule_005.py b/vsg/rules/function/rule_005.py index 16b89862..9200b6e2 100644 --- a/vsg/rules/function/rule_005.py +++ b/vsg/rules/function/rule_005.py @@ -27,5 +27,5 @@ class rule_005(token_case): ''' def __init__(self): - token_case.__init__(self, 'function', '005', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/function/rule_006.py b/vsg/rules/function/rule_006.py index 248e54b6..ee871257 100644 --- a/vsg/rules/function/rule_006.py +++ b/vsg/rules/function/rule_006.py @@ -33,4 +33,4 @@ class rule_006(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'function', '006', lTokens) + previous_line.__init__(self, lTokens) diff --git a/vsg/rules/function/rule_007.py b/vsg/rules/function/rule_007.py index 1a60b8f0..f6718f48 100644 --- a/vsg/rules/function/rule_007.py +++ b/vsg/rules/function/rule_007.py @@ -8,5 +8,5 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '007') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_205.') diff --git a/vsg/rules/function/rule_008.py b/vsg/rules/function/rule_008.py index eeb7c597..b38db2a0 100644 --- a/vsg/rules/function/rule_008.py +++ b/vsg/rules/function/rule_008.py @@ -48,4 +48,4 @@ class rule_008(token_indent_between_tokens): ''' def __init__(self): - token_indent_between_tokens.__init__(self, 'function', '008', lTokens, oStart, oEnd) + token_indent_between_tokens.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/function/rule_009.py b/vsg/rules/function/rule_009.py index e2897221..59b84661 100644 --- a/vsg/rules/function/rule_009.py +++ b/vsg/rules/function/rule_009.py @@ -8,5 +8,5 @@ class rule_009(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'function', '009') + deprecated_rule.Rule.__init__(self) self.message.append('The function of rule ' + self.unique_id + ' is covered by rule function_019.') diff --git a/vsg/rules/function/rule_010.py b/vsg/rules/function/rule_010.py index c4fdb311..80c9a7dd 100644 --- a/vsg/rules/function/rule_010.py +++ b/vsg/rules/function/rule_010.py @@ -60,5 +60,5 @@ class rule_010(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '010', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) self.bIncludeDeclarativePartNames = True diff --git a/vsg/rules/function/rule_012.py b/vsg/rules/function/rule_012.py index 3bb39871..4a878741 100644 --- a/vsg/rules/function/rule_012.py +++ b/vsg/rules/function/rule_012.py @@ -41,7 +41,7 @@ class rule_012(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '012', lAlign, oStartToken, oEndToken, lUnless) + Rule.__init__(self, lAlign, oStartToken, oEndToken, lUnless) self.solution = 'Align :.' self.subphase = 2 self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/function/rule_013.py b/vsg/rules/function/rule_013.py index 6d771200..e2ca1c48 100644 --- a/vsg/rules/function/rule_013.py +++ b/vsg/rules/function/rule_013.py @@ -34,5 +34,5 @@ class rule_013(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'function', '013', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/function/rule_014.py b/vsg/rules/function/rule_014.py index 8cb6d84f..299ea52d 100644 --- a/vsg/rules/function/rule_014.py +++ b/vsg/rules/function/rule_014.py @@ -31,5 +31,5 @@ class rule_014(token_case): ''' def __init__(self): - token_case.__init__(self, 'function', '014', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/function/rule_015.py b/vsg/rules/function/rule_015.py index 9af24936..f03291ef 100644 --- a/vsg/rules/function/rule_015.py +++ b/vsg/rules/function/rule_015.py @@ -41,7 +41,7 @@ class rule_015(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'function', '015', lAlign, token.subprogram_body.is_keyword, token.subprogram_body.begin_keyword, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, token.subprogram_body.is_keyword, token.subprogram_body.begin_keyword, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/function/rule_016.py b/vsg/rules/function/rule_016.py index fa1ed171..e70e4fee 100644 --- a/vsg/rules/function/rule_016.py +++ b/vsg/rules/function/rule_016.py @@ -33,4 +33,4 @@ class rule_016(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'function', '016', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/function/rule_017.py b/vsg/rules/function/rule_017.py index e151069a..67aa32ca 100644 --- a/vsg/rules/function/rule_017.py +++ b/vsg/rules/function/rule_017.py @@ -27,6 +27,6 @@ class rule_017(token_case): ''' def __init__(self): - token_case.__init__(self, 'function', '017', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/function/rule_018.py b/vsg/rules/function/rule_018.py index e7455c57..da812bb0 100644 --- a/vsg/rules/function/rule_018.py +++ b/vsg/rules/function/rule_018.py @@ -37,7 +37,7 @@ class rule_018(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '018', oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) + Rule.__init__(self, oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) self.solution = 'function keyword' self.groups.append('structure::optional') self.filter_tokens.append(token.subprogram_declaration.semicolon) diff --git a/vsg/rules/function/rule_019.py b/vsg/rules/function/rule_019.py index de94bbe5..4cd86b9e 100644 --- a/vsg/rules/function/rule_019.py +++ b/vsg/rules/function/rule_019.py @@ -33,6 +33,6 @@ class rule_019(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '019') + Rule.__init__(self) self.lTokenPairs = lTokenPairs self.oSubprogramSpecification = oSubprogramSpecification diff --git a/vsg/rules/function/rule_100.py b/vsg/rules/function/rule_100.py index 905d9b5a..eda047f1 100644 --- a/vsg/rules/function/rule_100.py +++ b/vsg/rules/function/rule_100.py @@ -36,4 +36,4 @@ class rule_100(Rule): function overflow (a: integer) return integer is ''' def __init__(self): - Rule.__init__(self, 'function', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/function/rule_101.py b/vsg/rules/function/rule_101.py index 006785d2..fc843a28 100644 --- a/vsg/rules/function/rule_101.py +++ b/vsg/rules/function/rule_101.py @@ -32,4 +32,4 @@ class rule_101(Rule): end overflow; ''' def __init__(self): - Rule.__init__(self, 'function', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/function/rule_201.py b/vsg/rules/function/rule_201.py index f5c0d09e..36e825cb 100644 --- a/vsg/rules/function/rule_201.py +++ b/vsg/rules/function/rule_201.py @@ -8,5 +8,5 @@ class rule_201(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '201') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_201.') diff --git a/vsg/rules/function/rule_202.py b/vsg/rules/function/rule_202.py index 7a405427..34581cb2 100644 --- a/vsg/rules/function/rule_202.py +++ b/vsg/rules/function/rule_202.py @@ -8,5 +8,5 @@ class rule_202(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '202') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_202.') diff --git a/vsg/rules/function/rule_203.py b/vsg/rules/function/rule_203.py index 7ac9108f..de246460 100644 --- a/vsg/rules/function/rule_203.py +++ b/vsg/rules/function/rule_203.py @@ -8,5 +8,5 @@ class rule_203(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '203') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_203.') diff --git a/vsg/rules/function/rule_204.py b/vsg/rules/function/rule_204.py index 467b7c72..2557a978 100644 --- a/vsg/rules/function/rule_204.py +++ b/vsg/rules/function/rule_204.py @@ -8,5 +8,5 @@ class rule_204(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '204') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_204.') diff --git a/vsg/rules/function/rule_300.py b/vsg/rules/function/rule_300.py index 59192039..67e9ca86 100644 --- a/vsg/rules/function/rule_300.py +++ b/vsg/rules/function/rule_300.py @@ -34,4 +34,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'function', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/function/rule_501.py b/vsg/rules/function/rule_501.py index 7636e73c..ff3309eb 100644 --- a/vsg/rules/function/rule_501.py +++ b/vsg/rules/function/rule_501.py @@ -27,5 +27,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'function', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/function/rule_502.py b/vsg/rules/function/rule_502.py index dcef9ac8..29ceadf4 100644 --- a/vsg/rules/function/rule_502.py +++ b/vsg/rules/function/rule_502.py @@ -30,5 +30,5 @@ class rule_502(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'function', '502', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/function/rule_506.py b/vsg/rules/function/rule_506.py index 39fa0e5c..8c44e768 100644 --- a/vsg/rules/function/rule_506.py +++ b/vsg/rules/function/rule_506.py @@ -30,5 +30,5 @@ class rule_506(token_case_in_range_bounded_by_tokens_with_prefix_suffix): ''' def __init__(self): - token_case_in_range_bounded_by_tokens_with_prefix_suffix.__init__(self, 'function', '506', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens_with_prefix_suffix.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::name') diff --git a/vsg/rules/function/rule_600.py b/vsg/rules/function/rule_600.py index 3ef374ae..f1b797b0 100644 --- a/vsg/rules/function/rule_600.py +++ b/vsg/rules/function/rule_600.py @@ -28,6 +28,6 @@ class rule_600(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'function', '600', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['f_'] self.solution = 'Function designator' diff --git a/vsg/rules/function/rule_601.py b/vsg/rules/function/rule_601.py index 44bae47c..1e98a9dd 100644 --- a/vsg/rules/function/rule_601.py +++ b/vsg/rules/function/rule_601.py @@ -28,6 +28,6 @@ class rule_601(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'function', '601', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_f'] self.solution = 'Function designator' diff --git a/vsg/rules/generate/rule_001.py b/vsg/rules/generate/rule_001.py index 214337f0..92cfff2b 100644 --- a/vsg/rules/generate/rule_001.py +++ b/vsg/rules/generate/rule_001.py @@ -37,4 +37,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'generate', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_002.py b/vsg/rules/generate/rule_002.py index 361b2265..63e97cec 100644 --- a/vsg/rules/generate/rule_002.py +++ b/vsg/rules/generate/rule_002.py @@ -28,4 +28,4 @@ class rule_002(Rule): ram_array : for i in 0 to 7 generate ''' def __init__(self): - Rule.__init__(self, 'generate', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_003.py b/vsg/rules/generate/rule_003.py index 783acf14..1c9fc64b 100644 --- a/vsg/rules/generate/rule_003.py +++ b/vsg/rules/generate/rule_003.py @@ -32,4 +32,4 @@ class rule_003(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'generate', '003', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_004.py b/vsg/rules/generate/rule_004.py index a874e80d..ff4d38a3 100644 --- a/vsg/rules/generate/rule_004.py +++ b/vsg/rules/generate/rule_004.py @@ -32,4 +32,4 @@ class rule_004(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'generate', '004', lTokens) + previous_line.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_005.py b/vsg/rules/generate/rule_005.py index 76e84dfd..4571a1cd 100644 --- a/vsg/rules/generate/rule_005.py +++ b/vsg/rules/generate/rule_005.py @@ -29,5 +29,5 @@ class rule_005(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'generate', '005', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/generate/rule_006.py b/vsg/rules/generate/rule_006.py index 499706d9..05ef1e85 100644 --- a/vsg/rules/generate/rule_006.py +++ b/vsg/rules/generate/rule_006.py @@ -27,4 +27,4 @@ class rule_006(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'generate', '006', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_007.py b/vsg/rules/generate/rule_007.py index 172187e5..efebd850 100644 --- a/vsg/rules/generate/rule_007.py +++ b/vsg/rules/generate/rule_007.py @@ -31,4 +31,4 @@ class rule_007(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'generate', '007', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_008.py b/vsg/rules/generate/rule_008.py index 75d3eb33..864fae25 100644 --- a/vsg/rules/generate/rule_008.py +++ b/vsg/rules/generate/rule_008.py @@ -28,4 +28,4 @@ class rule_008(Rule): end generate ram_array; ''' def __init__(self): - Rule.__init__(self, 'generate', '008', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_009.py b/vsg/rules/generate/rule_009.py index 84bbc1f3..082bb65d 100644 --- a/vsg/rules/generate/rule_009.py +++ b/vsg/rules/generate/rule_009.py @@ -29,5 +29,5 @@ class rule_009(token_case): ''' def __init__(self): - token_case.__init__(self, 'generate', '009', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/generate/rule_010.py b/vsg/rules/generate/rule_010.py index 4cb27639..4ea52282 100644 --- a/vsg/rules/generate/rule_010.py +++ b/vsg/rules/generate/rule_010.py @@ -29,5 +29,5 @@ class rule_010(token_case): ''' def __init__(self): - token_case.__init__(self, 'generate', '010', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/generate/rule_011.py b/vsg/rules/generate/rule_011.py index be2f06a4..6752b6ec 100644 --- a/vsg/rules/generate/rule_011.py +++ b/vsg/rules/generate/rule_011.py @@ -43,7 +43,7 @@ class rule_011(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'generate', '011') + structure.Rule.__init__(self) self.solution = 'generate label' self.insert_token = oInsertTokens self.anchor_token = oAnchorTokens diff --git a/vsg/rules/generate/rule_012.py b/vsg/rules/generate/rule_012.py index b2929596..89a30a4f 100644 --- a/vsg/rules/generate/rule_012.py +++ b/vsg/rules/generate/rule_012.py @@ -29,5 +29,5 @@ class rule_012(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'generate', '012', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/generate/rule_013.py b/vsg/rules/generate/rule_013.py index 47d4a378..471c36db 100644 --- a/vsg/rules/generate/rule_013.py +++ b/vsg/rules/generate/rule_013.py @@ -28,4 +28,4 @@ class rule_013(Rule): end generate ram_array; ''' def __init__(self): - Rule.__init__(self, 'generate', '013', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_014.py b/vsg/rules/generate/rule_014.py index 537c2c8d..87b13d76 100644 --- a/vsg/rules/generate/rule_014.py +++ b/vsg/rules/generate/rule_014.py @@ -30,4 +30,4 @@ class rule_014(Rule): ram_array : for i in 0 to 7 generate ''' def __init__(self): - Rule.__init__(self, 'generate', '014', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_015.py b/vsg/rules/generate/rule_015.py index 5e4c5e75..ff39323b 100644 --- a/vsg/rules/generate/rule_015.py +++ b/vsg/rules/generate/rule_015.py @@ -29,5 +29,5 @@ class rule_015(remove_carriage_returns_between_token_pairs): ''' def __init__(self): - remove_carriage_returns_between_token_pairs.__init__(self, 'generate', '015', lTokens) + remove_carriage_returns_between_token_pairs.__init__(self, lTokens) self.solution = 'Merge lines with generate label with *generate* keyword.' diff --git a/vsg/rules/generate/rule_016.py b/vsg/rules/generate/rule_016.py index 0af2f149..1c62302e 100644 --- a/vsg/rules/generate/rule_016.py +++ b/vsg/rules/generate/rule_016.py @@ -31,4 +31,4 @@ class rule_016(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'generate', '016', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_017.py b/vsg/rules/generate/rule_017.py index 86aeae81..06bdaf2e 100644 --- a/vsg/rules/generate/rule_017.py +++ b/vsg/rules/generate/rule_017.py @@ -33,5 +33,5 @@ class rule_017(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'generate', '017', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['gen_'] diff --git a/vsg/rules/generate/rule_018.py b/vsg/rules/generate/rule_018.py index 1f744214..a12a8f8a 100644 --- a/vsg/rules/generate/rule_018.py +++ b/vsg/rules/generate/rule_018.py @@ -31,4 +31,4 @@ class rule_018(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'generate', '018', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/generate/rule_019.py b/vsg/rules/generate/rule_019.py index cf0cab79..53b52eb1 100644 --- a/vsg/rules/generate/rule_019.py +++ b/vsg/rules/generate/rule_019.py @@ -30,5 +30,5 @@ class rule_019(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'generate', '019', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move end keyword and any code after it to the next line' diff --git a/vsg/rules/generate/rule_400.py b/vsg/rules/generate/rule_400.py index ddab87eb..3daf5582 100644 --- a/vsg/rules/generate/rule_400.py +++ b/vsg/rules/generate/rule_400.py @@ -45,7 +45,7 @@ class rule_400(align_tokens_in_region_between_tokens_when_between_tokens_unless_ ''' def __init__(self): - align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, 'generate', '400', lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) + align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('loop_control_statements_ends_group') diff --git a/vsg/rules/generate/rule_401.py b/vsg/rules/generate/rule_401.py index beb16e7d..ba02bec6 100644 --- a/vsg/rules/generate/rule_401.py +++ b/vsg/rules/generate/rule_401.py @@ -47,7 +47,7 @@ class rule_401(align_tokens_in_region_between_tokens_when_between_tokens_unless_ ''' def __init__(self): - align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, 'generate', '401', lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) + align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) self.solution = 'Align colon.' self.subphase = 2 self.configuration.remove('loop_control_statements_ends_group') diff --git a/vsg/rules/generate/rule_402.py b/vsg/rules/generate/rule_402.py index 1f40a63d..57741f52 100644 --- a/vsg/rules/generate/rule_402.py +++ b/vsg/rules/generate/rule_402.py @@ -45,7 +45,7 @@ class rule_402(align_tokens_in_region_between_tokens_when_between_tokens_unless_ ''' def __init__(self): - align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, 'generate', '402', lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) + align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('loop_control_statements_ends_group') diff --git a/vsg/rules/generate/rule_403.py b/vsg/rules/generate/rule_403.py index 0038982a..3acceff1 100644 --- a/vsg/rules/generate/rule_403.py +++ b/vsg/rules/generate/rule_403.py @@ -47,7 +47,7 @@ class rule_403(align_tokens_in_region_between_tokens_when_between_tokens_unless_ ''' def __init__(self): - align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, 'generate', '403', lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) + align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) self.solution = 'Align colon.' self.subphase = 2 self.configuration.remove('loop_control_statements_ends_group') diff --git a/vsg/rules/generate/rule_404.py b/vsg/rules/generate/rule_404.py index 68f61e71..e7eb2686 100644 --- a/vsg/rules/generate/rule_404.py +++ b/vsg/rules/generate/rule_404.py @@ -45,7 +45,7 @@ class rule_404(align_tokens_in_region_between_tokens_when_between_tokens_unless_ ''' def __init__(self): - align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, 'generate', '404', lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) + align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('loop_control_statements_ends_group') diff --git a/vsg/rules/generate/rule_405.py b/vsg/rules/generate/rule_405.py index f3d580b2..05bf4600 100644 --- a/vsg/rules/generate/rule_405.py +++ b/vsg/rules/generate/rule_405.py @@ -47,7 +47,7 @@ class rule_405(align_tokens_in_region_between_tokens_when_between_tokens_unless_ ''' def __init__(self): - align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, 'generate', '405', lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) + align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens.__init__(self, lAlign, oStartToken, oEndToken, lBetweenTokens, lUnless) self.solution = 'Align colon.' self.subphase = 2 self.configuration.remove('loop_control_statements_ends_group') diff --git a/vsg/rules/generate/rule_500.py b/vsg/rules/generate/rule_500.py index 86ae74bd..fe5e1471 100644 --- a/vsg/rules/generate/rule_500.py +++ b/vsg/rules/generate/rule_500.py @@ -29,5 +29,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'generate', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/generate/rule_501.py b/vsg/rules/generate/rule_501.py index 8cdcf8a0..8318568c 100644 --- a/vsg/rules/generate/rule_501.py +++ b/vsg/rules/generate/rule_501.py @@ -33,5 +33,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'generate', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/generate/rule_600.py b/vsg/rules/generate/rule_600.py index bb3912c9..3d6c79f0 100644 --- a/vsg/rules/generate/rule_600.py +++ b/vsg/rules/generate/rule_600.py @@ -29,5 +29,5 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'generate', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_gen'] diff --git a/vsg/rules/generate/rule_601.py b/vsg/rules/generate/rule_601.py index 44255f41..74c695d4 100644 --- a/vsg/rules/generate/rule_601.py +++ b/vsg/rules/generate/rule_601.py @@ -28,5 +28,5 @@ class rule_601(token_prefix_between_tokens): ''' def __init__(self): - token_prefix_between_tokens.__init__(self, 'generate', '601', lTokens, token.for_generate_statement.for_keyword, token.parameter_specification.in_keyword) + token_prefix_between_tokens.__init__(self, lTokens, token.for_generate_statement.for_keyword, token.parameter_specification.in_keyword) self.prefixes = ['gv_'] diff --git a/vsg/rules/generate/rule_602.py b/vsg/rules/generate/rule_602.py index ffeee073..288a80f7 100644 --- a/vsg/rules/generate/rule_602.py +++ b/vsg/rules/generate/rule_602.py @@ -28,5 +28,5 @@ class rule_602(token_suffix_between_tokens): ''' def __init__(self): - token_suffix_between_tokens.__init__(self, 'generate', '602', lTokens, token.for_generate_statement.for_keyword, token.parameter_specification.in_keyword) + token_suffix_between_tokens.__init__(self, lTokens, token.for_generate_statement.for_keyword, token.parameter_specification.in_keyword) self.suffixes = ['_gv'] diff --git a/vsg/rules/generic/rule_001.py b/vsg/rules/generic/rule_001.py index f56b832a..06171e79 100644 --- a/vsg/rules/generic/rule_001.py +++ b/vsg/rules/generic/rule_001.py @@ -8,5 +8,5 @@ class rule_001(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'generic', '001') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to entity_200.') diff --git a/vsg/rules/generic/rule_002.py b/vsg/rules/generic/rule_002.py index e920dc8c..00b6add3 100644 --- a/vsg/rules/generic/rule_002.py +++ b/vsg/rules/generic/rule_002.py @@ -33,4 +33,4 @@ class rule_002(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'generic', '002', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/generic/rule_003.py b/vsg/rules/generic/rule_003.py index 93c00819..85dcb3c0 100644 --- a/vsg/rules/generic/rule_003.py +++ b/vsg/rules/generic/rule_003.py @@ -30,4 +30,4 @@ class rule_003(Rule): generic ( ''' def __init__(self): - Rule.__init__(self, 'generic', '003', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/generic/rule_004.py b/vsg/rules/generic/rule_004.py index 40b108ec..65a36106 100644 --- a/vsg/rules/generic/rule_004.py +++ b/vsg/rules/generic/rule_004.py @@ -42,4 +42,4 @@ class rule_004(token_indent_between_tokens): ''' def __init__(self): - token_indent_between_tokens.__init__(self, 'generic', '004', lTokens, oStart, oEnd) + token_indent_between_tokens.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/generic/rule_005.py b/vsg/rules/generic/rule_005.py index c04a254d..52a35a1c 100644 --- a/vsg/rules/generic/rule_005.py +++ b/vsg/rules/generic/rule_005.py @@ -34,7 +34,7 @@ class rule_005(Rule): g_width : integer := 32; ''' def __init__(self): - Rule.__init__(self, 'generic', '005', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Reduce number of spaces after the colon to 1.' def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/generic/rule_006.py b/vsg/rules/generic/rule_006.py index f85b3ced..2e60e894 100644 --- a/vsg/rules/generic/rule_006.py +++ b/vsg/rules/generic/rule_006.py @@ -35,4 +35,4 @@ class rule_006(Rule): g_depth : integer := 512; ''' def __init__(self): - Rule.__init__(self, 'generic', '006', lTokens, oStart, oEnd) + Rule.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/generic/rule_007.py b/vsg/rules/generic/rule_007.py index 084aee85..156dc1b0 100644 --- a/vsg/rules/generic/rule_007.py +++ b/vsg/rules/generic/rule_007.py @@ -34,7 +34,7 @@ class rule_007(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'generic', '007', lTokens, oStart, oEnd) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStart, oEnd) self.configuration.append('prefix_exceptions') self.configuration.append('suffix_exceptions') self.configuration.append('case_exceptions') diff --git a/vsg/rules/generic/rule_008.py b/vsg/rules/generic/rule_008.py index 960bf171..f574b24a 100644 --- a/vsg/rules/generic/rule_008.py +++ b/vsg/rules/generic/rule_008.py @@ -27,4 +27,4 @@ class rule_008(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'generic', '008', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/generic/rule_009.py b/vsg/rules/generic/rule_009.py index cb1f6016..235d4930 100644 --- a/vsg/rules/generic/rule_009.py +++ b/vsg/rules/generic/rule_009.py @@ -27,5 +27,5 @@ class rule_009(token_case): ''' def __init__(self): - token_case.__init__(self, 'generic', '009', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/generic/rule_010.py b/vsg/rules/generic/rule_010.py index 481827de..c3b1e59a 100644 --- a/vsg/rules/generic/rule_010.py +++ b/vsg/rules/generic/rule_010.py @@ -29,5 +29,5 @@ class rule_010(Rule): ''' def __init__(self): - Rule.__init__(self, 'generic', '010', oToken) + Rule.__init__(self, oToken) self.preserve_comment = True diff --git a/vsg/rules/generic/rule_013.py b/vsg/rules/generic/rule_013.py index ca172254..452397ef 100644 --- a/vsg/rules/generic/rule_013.py +++ b/vsg/rules/generic/rule_013.py @@ -26,5 +26,5 @@ class rule_013(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'generic', '013', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move generic parameter to the next line.' diff --git a/vsg/rules/generic/rule_014.py b/vsg/rules/generic/rule_014.py index 971979db..a01094f4 100644 --- a/vsg/rules/generic/rule_014.py +++ b/vsg/rules/generic/rule_014.py @@ -37,5 +37,5 @@ class rule_014(Rule): g_depth : integer := 512; ''' def __init__(self): - Rule.__init__(self, 'generic', '014', lTokens, oStart, oEnd) + Rule.__init__(self, lTokens, oStart, oEnd) self.number_of_spaces = '>=1' diff --git a/vsg/rules/generic/rule_016.py b/vsg/rules/generic/rule_016.py index a15b7ef5..8b6ea32c 100644 --- a/vsg/rules/generic/rule_016.py +++ b/vsg/rules/generic/rule_016.py @@ -33,5 +33,5 @@ class rule_016(Rule): ''' def __init__(self): - Rule.__init__(self, 'generic', '016', lTokens, lTokenPairs) + Rule.__init__(self, lTokens, lTokenPairs) self.solution = 'Move multiple generics to their own lines.' diff --git a/vsg/rules/generic/rule_017.py b/vsg/rules/generic/rule_017.py index b0ad89bf..7b9907e1 100644 --- a/vsg/rules/generic/rule_017.py +++ b/vsg/rules/generic/rule_017.py @@ -39,6 +39,6 @@ class rule_017(token_case_n_token_after_tokens_between_tokens): ''' def __init__(self): - token_case_n_token_after_tokens_between_tokens.__init__(self, 'generic', '017', 1, lTokens, oStart, oEnd, True) + token_case_n_token_after_tokens_between_tokens.__init__(self, 1, lTokens, oStart, oEnd, True) self.disabled = True self.groups.append('case::keyword') diff --git a/vsg/rules/generic/rule_018.py b/vsg/rules/generic/rule_018.py index a2d966be..0bbdeb62 100644 --- a/vsg/rules/generic/rule_018.py +++ b/vsg/rules/generic/rule_018.py @@ -23,5 +23,5 @@ class rule_018(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'generic', '018', token.generic_keyword, token.open_parenthesis) + move_token_next_to_another_token.__init__(self, token.generic_keyword, token.open_parenthesis) self.solution = 'Move the ( to the same line as the *generic* keyword.' diff --git a/vsg/rules/generic/rule_019.py b/vsg/rules/generic/rule_019.py index 9b11d23c..e8fb8f8a 100644 --- a/vsg/rules/generic/rule_019.py +++ b/vsg/rules/generic/rule_019.py @@ -32,5 +32,5 @@ class rule_019(remove_excessive_blank_lines_above_line_starting_with_token): ); ''' def __init__(self): - remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, 'generic', '019', lTokens, iAllow=0) + remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, lTokens, iAllow=0) self.configuration_documentation_link = None diff --git a/vsg/rules/generic/rule_020.py b/vsg/rules/generic/rule_020.py index 27e70f3b..26aa7744 100644 --- a/vsg/rules/generic/rule_020.py +++ b/vsg/rules/generic/rule_020.py @@ -31,5 +31,5 @@ class rule_020(token_prefix_between_tokens): ''' def __init__(self): - token_prefix_between_tokens.__init__(self, 'generic', '020', lTokens, token.generic_clause.open_parenthesis, token.generic_clause.close_parenthesis) + token_prefix_between_tokens.__init__(self, lTokens, token.generic_clause.open_parenthesis, token.generic_clause.close_parenthesis) self.prefixes = ['g_'] diff --git a/vsg/rules/generic/rule_021.py b/vsg/rules/generic/rule_021.py index ff31e8e8..8fe16831 100644 --- a/vsg/rules/generic/rule_021.py +++ b/vsg/rules/generic/rule_021.py @@ -32,5 +32,5 @@ class rule_021(Rule): ''' def __init__(self): - Rule.__init__(self, 'generic', '021', lTokens) + Rule.__init__(self, lTokens) self.bInsertWhitespace = False diff --git a/vsg/rules/generic/rule_600.py b/vsg/rules/generic/rule_600.py index 5465da5c..fbef5e98 100644 --- a/vsg/rules/generic/rule_600.py +++ b/vsg/rules/generic/rule_600.py @@ -31,5 +31,5 @@ class rule_600(token_suffix_between_tokens): ''' def __init__(self): - token_suffix_between_tokens.__init__(self, 'generic', '600', lTokens, token.generic_clause.open_parenthesis, token.generic_clause.close_parenthesis) + token_suffix_between_tokens.__init__(self, lTokens, token.generic_clause.open_parenthesis, token.generic_clause.close_parenthesis) self.suffixes = ['_g'] diff --git a/vsg/rules/generic_map/rule_001.py b/vsg/rules/generic_map/rule_001.py index 14c77469..ecd0f56f 100644 --- a/vsg/rules/generic_map/rule_001.py +++ b/vsg/rules/generic_map/rule_001.py @@ -31,5 +31,5 @@ class rule_001(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'generic_map', '001', lTokens, oStart, oEnd) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStart, oEnd) self.groups.append('case::keyword') diff --git a/vsg/rules/generic_map/rule_002.py b/vsg/rules/generic_map/rule_002.py index d72b9d6f..3fe2b71b 100644 --- a/vsg/rules/generic_map/rule_002.py +++ b/vsg/rules/generic_map/rule_002.py @@ -34,7 +34,7 @@ class rule_002(token_case_formal_part_of_association_element_in_map_between_toke ) ''' def __init__(self): - token_case_formal_part_of_association_element_in_map_between_tokens.__init__(self, 'generic_map', '002', sMapType, oStart, oEnd) + token_case_formal_part_of_association_element_in_map_between_tokens.__init__(self, sMapType, oStart, oEnd) self.configuration.append('prefix_exceptions') self.configuration.append('suffix_exceptions') self.configuration.append('case_exceptions') diff --git a/vsg/rules/generic_map/rule_003.py b/vsg/rules/generic_map/rule_003.py index d01b86ef..aecb29c2 100644 --- a/vsg/rules/generic_map/rule_003.py +++ b/vsg/rules/generic_map/rule_003.py @@ -31,5 +31,5 @@ class rule_003(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'generic_map', '003', token.map_keyword, token.open_parenthesis) + move_token_next_to_another_token.__init__(self, token.map_keyword, token.open_parenthesis) self.solution = 'Move the ( to the same line as the *generic map* keywords.' diff --git a/vsg/rules/generic_map/rule_004.py b/vsg/rules/generic_map/rule_004.py index e9ba1587..80501fb0 100644 --- a/vsg/rules/generic_map/rule_004.py +++ b/vsg/rules/generic_map/rule_004.py @@ -35,4 +35,4 @@ class rule_004(Rule): ''' def __init__(self): - Rule.__init__(self, 'generic_map', '004', oToken) + Rule.__init__(self, oToken) diff --git a/vsg/rules/generic_map/rule_005.py b/vsg/rules/generic_map/rule_005.py index 3e01cd57..1111c8b2 100644 --- a/vsg/rules/generic_map/rule_005.py +++ b/vsg/rules/generic_map/rule_005.py @@ -30,5 +30,5 @@ class rule_005(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'generic_map', '005', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move generic assignment to it\'s own line.' diff --git a/vsg/rules/generic_map/rule_006.py b/vsg/rules/generic_map/rule_006.py index bf005ace..c21bd5f6 100644 --- a/vsg/rules/generic_map/rule_006.py +++ b/vsg/rules/generic_map/rule_006.py @@ -31,5 +31,5 @@ class rule_006(Rule): generic map ( ''' def __init__(self): - Rule.__init__(self, 'generic_map', '006', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Ensure a single space exists between "map" and (.' diff --git a/vsg/rules/generic_map/rule_007.py b/vsg/rules/generic_map/rule_007.py index 089dff90..17bc52bf 100644 --- a/vsg/rules/generic_map/rule_007.py +++ b/vsg/rules/generic_map/rule_007.py @@ -37,4 +37,4 @@ class rule_007(Rule): ) ''' def __init__(self): - Rule.__init__(self, 'generic_map', '007', lTokens, lStart, lEnd) + Rule.__init__(self, lTokens, lStart, lEnd) diff --git a/vsg/rules/generic_map/rule_008.py b/vsg/rules/generic_map/rule_008.py index 8a882672..0aa58365 100644 --- a/vsg/rules/generic_map/rule_008.py +++ b/vsg/rules/generic_map/rule_008.py @@ -33,5 +33,5 @@ class rule_008(formal_part_in_association_element_between_tokens): ); ''' def __init__(self): - formal_part_in_association_element_between_tokens.__init__(self, 'generic_map', '008', lStart, lEnd) + formal_part_in_association_element_between_tokens.__init__(self, lStart, lEnd) self.solution = 'Add formal_part to positional assignment.' diff --git a/vsg/rules/generic_map/rule_600.py b/vsg/rules/generic_map/rule_600.py index 8532ea9c..4b22d641 100644 --- a/vsg/rules/generic_map/rule_600.py +++ b/vsg/rules/generic_map/rule_600.py @@ -39,5 +39,5 @@ class rule_600(token_suffix_between_tokens): ''' def __init__(self): - token_suffix_between_tokens.__init__(self, 'generic_map', '600', lTokens, lStart, lEnd) + token_suffix_between_tokens.__init__(self, lTokens, lStart, lEnd) self.suffixes = ['_g'] diff --git a/vsg/rules/generic_map/rule_601.py b/vsg/rules/generic_map/rule_601.py index 1afcde19..8bb6a353 100644 --- a/vsg/rules/generic_map/rule_601.py +++ b/vsg/rules/generic_map/rule_601.py @@ -39,5 +39,5 @@ class rule_601(token_prefix_between_tokens): ''' def __init__(self): - token_prefix_between_tokens.__init__(self, 'generic_map', '601', lTokens, lStart, lEnd) + token_prefix_between_tokens.__init__(self, lTokens, lStart, lEnd) self.prefixes = ['g_'] diff --git a/vsg/rules/ieee/rule_500.py b/vsg/rules/ieee/rule_500.py index f3ec9124..b6c32d8b 100644 --- a/vsg/rules/ieee/rule_500.py +++ b/vsg/rules/ieee/rule_500.py @@ -41,5 +41,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'ieee', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_generate_statement/rule_300.py b/vsg/rules/if_generate_statement/rule_300.py index 1a9d92c3..5197d566 100644 --- a/vsg/rules/if_generate_statement/rule_300.py +++ b/vsg/rules/if_generate_statement/rule_300.py @@ -29,4 +29,4 @@ class rule_300(Rule): ''' def __init__(self): - Rule.__init__(self, 'if_generate_statement', '300', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/if_generate_statement/rule_301.py b/vsg/rules/if_generate_statement/rule_301.py index 2b232c95..656b7c8d 100644 --- a/vsg/rules/if_generate_statement/rule_301.py +++ b/vsg/rules/if_generate_statement/rule_301.py @@ -29,4 +29,4 @@ class rule_301(Rule): ''' def __init__(self): - Rule.__init__(self, 'if_generate_statement', '301', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/if_generate_statement/rule_500.py b/vsg/rules/if_generate_statement/rule_500.py index 73224f34..6ac25055 100644 --- a/vsg/rules/if_generate_statement/rule_500.py +++ b/vsg/rules/if_generate_statement/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'if_generate_statement', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_generate_statement/rule_501.py b/vsg/rules/if_generate_statement/rule_501.py index 9f263b4e..fdef4d0d 100644 --- a/vsg/rules/if_generate_statement/rule_501.py +++ b/vsg/rules/if_generate_statement/rule_501.py @@ -31,5 +31,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'if_generate_statement', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_generate_statement/rule_502.py b/vsg/rules/if_generate_statement/rule_502.py index dc982ae5..551cd322 100644 --- a/vsg/rules/if_generate_statement/rule_502.py +++ b/vsg/rules/if_generate_statement/rule_502.py @@ -27,5 +27,5 @@ class rule_502(Rule): ''' def __init__(self): - Rule.__init__(self, 'if_generate_statement', '502', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_generate_statement/rule_503.py b/vsg/rules/if_generate_statement/rule_503.py index 8d7449fd..ca4d83e0 100644 --- a/vsg/rules/if_generate_statement/rule_503.py +++ b/vsg/rules/if_generate_statement/rule_503.py @@ -27,5 +27,5 @@ class rule_503(Rule): ''' def __init__(self): - Rule.__init__(self, 'if_generate_statement', '503', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_statement/rule_001.py b/vsg/rules/if_statement/rule_001.py index ac040c41..222dcc7d 100644 --- a/vsg/rules/if_statement/rule_001.py +++ b/vsg/rules/if_statement/rule_001.py @@ -37,4 +37,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'if', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_002.py b/vsg/rules/if_statement/rule_002.py index 2e265828..6b0e6de5 100644 --- a/vsg/rules/if_statement/rule_002.py +++ b/vsg/rules/if_statement/rule_002.py @@ -44,7 +44,7 @@ class rule_002(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'if', '002') + structure.Rule.__init__(self) self.parenthesis = 'insert' self.configuration.append('parenthesis') self.subphase = 2 diff --git a/vsg/rules/if_statement/rule_003.py b/vsg/rules/if_statement/rule_003.py index 92059204..23421106 100644 --- a/vsg/rules/if_statement/rule_003.py +++ b/vsg/rules/if_statement/rule_003.py @@ -31,4 +31,4 @@ class rule_003(Rule): if (a = '1') then ''' def __init__(self): - Rule.__init__(self, 'if', '003', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_004.py b/vsg/rules/if_statement/rule_004.py index 2c80776a..5c0425ea 100644 --- a/vsg/rules/if_statement/rule_004.py +++ b/vsg/rules/if_statement/rule_004.py @@ -31,4 +31,4 @@ class rule_004(Rule): if (a = '1') then ''' def __init__(self): - Rule.__init__(self, 'if', '004', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_005.py b/vsg/rules/if_statement/rule_005.py index 76e5688b..c8d65f9e 100644 --- a/vsg/rules/if_statement/rule_005.py +++ b/vsg/rules/if_statement/rule_005.py @@ -35,4 +35,4 @@ class rule_005(Rule): elsif b = '0' then ''' def __init__(self): - Rule.__init__(self, 'if', '005', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_006.py b/vsg/rules/if_statement/rule_006.py index 5422b291..62f2b46f 100644 --- a/vsg/rules/if_statement/rule_006.py +++ b/vsg/rules/if_statement/rule_006.py @@ -36,5 +36,5 @@ class rule_006(remove_excessive_blank_lines_below_line_ending_with_token): b <= '0' ''' def __init__(self): - remove_excessive_blank_lines_below_line_ending_with_token.__init__(self, 'if', '006', lTokens, iAllow=0, lOverrides=lOverrides) + remove_excessive_blank_lines_below_line_ending_with_token.__init__(self, lTokens, iAllow=0, lOverrides=lOverrides) self.configuration_documentation_link = None diff --git a/vsg/rules/if_statement/rule_007.py b/vsg/rules/if_statement/rule_007.py index 720c2b20..b6875fd3 100644 --- a/vsg/rules/if_statement/rule_007.py +++ b/vsg/rules/if_statement/rule_007.py @@ -33,6 +33,6 @@ class rule_007(remove_excessive_blank_lines_above_line_starting_with_token): elsif (c = '1') then ''' def __init__(self): - remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, 'if', '007', lTokens, iAllow=0, lOverrides=lOverrides) + remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, lTokens, iAllow=0, lOverrides=lOverrides) self.solution = 'Remove blank line(s) before the *elsif* keyword.' self.configuration_documentation_link = None diff --git a/vsg/rules/if_statement/rule_008.py b/vsg/rules/if_statement/rule_008.py index 5c9df443..b1360d91 100644 --- a/vsg/rules/if_statement/rule_008.py +++ b/vsg/rules/if_statement/rule_008.py @@ -32,6 +32,6 @@ class rule_008(remove_excessive_blank_lines_above_line_starting_with_token): end if; ''' def __init__(self): - remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, 'if', '008', lTokens, iAllow=0, lOverrides=lOverrides) + remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, lTokens, iAllow=0, lOverrides=lOverrides) self.solution = 'Remove blank line(s) before the *end if* keyword.' self.configuration_documentation_link = None diff --git a/vsg/rules/if_statement/rule_009.py b/vsg/rules/if_statement/rule_009.py index 2dfe7c56..d1801402 100644 --- a/vsg/rules/if_statement/rule_009.py +++ b/vsg/rules/if_statement/rule_009.py @@ -30,6 +30,6 @@ class rule_009(multiline_alignment_between_tokens): ''' def __init__(self): - multiline_alignment_between_tokens.__init__(self, 'if', '009', lTokenPairs) + multiline_alignment_between_tokens.__init__(self, lTokenPairs) self.phase = 4 self.subphase = 2 diff --git a/vsg/rules/if_statement/rule_010.py b/vsg/rules/if_statement/rule_010.py index ed44ebc2..85c709be 100644 --- a/vsg/rules/if_statement/rule_010.py +++ b/vsg/rules/if_statement/rule_010.py @@ -32,6 +32,6 @@ class rule_010(remove_excessive_blank_lines_above_line_starting_with_token): else ''' def __init__(self): - remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, 'if', '010', lTokens, iAllow=0, lOverrides=lOverrides) + remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, lTokens, iAllow=0, lOverrides=lOverrides) self.solution = 'Remove blank line(s) before the *else* keyword.' self.configuration_documentation_link = None diff --git a/vsg/rules/if_statement/rule_011.py b/vsg/rules/if_statement/rule_011.py index 71ce6bdf..322b4ab2 100644 --- a/vsg/rules/if_statement/rule_011.py +++ b/vsg/rules/if_statement/rule_011.py @@ -36,6 +36,6 @@ class rule_011(remove_excessive_blank_lines_below_line_ending_with_token): e <= '0'; ''' def __init__(self): - remove_excessive_blank_lines_below_line_ending_with_token.__init__(self, 'if', '011', lTokens, iAllow=0, lOverrides=lOverrides) + remove_excessive_blank_lines_below_line_ending_with_token.__init__(self, lTokens, iAllow=0, lOverrides=lOverrides) self.solution = 'Remove blank line(s) after the *else* keyword.' self.configuration_documentation_link = None diff --git a/vsg/rules/if_statement/rule_012.py b/vsg/rules/if_statement/rule_012.py index 7a78296a..b16b8c42 100644 --- a/vsg/rules/if_statement/rule_012.py +++ b/vsg/rules/if_statement/rule_012.py @@ -37,4 +37,4 @@ class rule_012(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'if', '012', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_013.py b/vsg/rules/if_statement/rule_013.py index 39191e6e..bbec1038 100644 --- a/vsg/rules/if_statement/rule_013.py +++ b/vsg/rules/if_statement/rule_013.py @@ -37,4 +37,4 @@ class rule_013(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'if', '013', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_014.py b/vsg/rules/if_statement/rule_014.py index c479c1b8..4adf9fc9 100644 --- a/vsg/rules/if_statement/rule_014.py +++ b/vsg/rules/if_statement/rule_014.py @@ -37,4 +37,4 @@ class rule_014(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'if', '014', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_015.py b/vsg/rules/if_statement/rule_015.py index 6d54c9d2..6ec9adb4 100644 --- a/vsg/rules/if_statement/rule_015.py +++ b/vsg/rules/if_statement/rule_015.py @@ -26,4 +26,4 @@ class rule_015(Rule): end if; ''' def __init__(self): - Rule.__init__(self, 'if', '015', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/if_statement/rule_020.py b/vsg/rules/if_statement/rule_020.py index 179d9596..648f4bfd 100644 --- a/vsg/rules/if_statement/rule_020.py +++ b/vsg/rules/if_statement/rule_020.py @@ -26,5 +26,5 @@ class rule_020(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'if', '020', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *end if* keywords to their own line.' diff --git a/vsg/rules/if_statement/rule_021.py b/vsg/rules/if_statement/rule_021.py index f1b6fe6c..8deb282d 100644 --- a/vsg/rules/if_statement/rule_021.py +++ b/vsg/rules/if_statement/rule_021.py @@ -26,5 +26,5 @@ class rule_021(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'if', '021', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *else* keyword to it\'s own line.' diff --git a/vsg/rules/if_statement/rule_022.py b/vsg/rules/if_statement/rule_022.py index 4517403f..3ece4dbc 100644 --- a/vsg/rules/if_statement/rule_022.py +++ b/vsg/rules/if_statement/rule_022.py @@ -26,5 +26,5 @@ class rule_022(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'if', '022', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move code after *else* keyword to the next line.' diff --git a/vsg/rules/if_statement/rule_023.py b/vsg/rules/if_statement/rule_023.py index 58449128..4b0354fc 100644 --- a/vsg/rules/if_statement/rule_023.py +++ b/vsg/rules/if_statement/rule_023.py @@ -26,5 +26,5 @@ class rule_023(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'if', '023', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *elsif* keyword to it\'s own line.' diff --git a/vsg/rules/if_statement/rule_024.py b/vsg/rules/if_statement/rule_024.py index 4f447263..da18d737 100644 --- a/vsg/rules/if_statement/rule_024.py +++ b/vsg/rules/if_statement/rule_024.py @@ -26,5 +26,5 @@ class rule_024(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'if', '024', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move code after *then* keyword to the next line.' diff --git a/vsg/rules/if_statement/rule_025.py b/vsg/rules/if_statement/rule_025.py index c92b877c..2f77a73f 100644 --- a/vsg/rules/if_statement/rule_025.py +++ b/vsg/rules/if_statement/rule_025.py @@ -27,5 +27,5 @@ class rule_025(token_case): ''' def __init__(self): - token_case.__init__(self, 'if', '025', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_statement/rule_026.py b/vsg/rules/if_statement/rule_026.py index baac5f62..df442459 100644 --- a/vsg/rules/if_statement/rule_026.py +++ b/vsg/rules/if_statement/rule_026.py @@ -27,5 +27,5 @@ class rule_026(token_case): ''' def __init__(self): - token_case.__init__(self, 'if', '026', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_statement/rule_027.py b/vsg/rules/if_statement/rule_027.py index 1f50f311..3dad533b 100644 --- a/vsg/rules/if_statement/rule_027.py +++ b/vsg/rules/if_statement/rule_027.py @@ -27,5 +27,5 @@ class rule_027(token_case): ''' def __init__(self): - token_case.__init__(self, 'if', '027', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_statement/rule_028.py b/vsg/rules/if_statement/rule_028.py index 45d3c53c..e0c3b569 100644 --- a/vsg/rules/if_statement/rule_028.py +++ b/vsg/rules/if_statement/rule_028.py @@ -31,5 +31,5 @@ class rule_028(token_case): ''' def __init__(self): - token_case.__init__(self, 'if', '028', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_statement/rule_029.py b/vsg/rules/if_statement/rule_029.py index 2a3f2a88..559dcc34 100644 --- a/vsg/rules/if_statement/rule_029.py +++ b/vsg/rules/if_statement/rule_029.py @@ -27,5 +27,5 @@ class rule_029(token_case): ''' def __init__(self): - token_case.__init__(self, 'if', '029', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_statement/rule_030.py b/vsg/rules/if_statement/rule_030.py index b9ced2ee..04cdd018 100644 --- a/vsg/rules/if_statement/rule_030.py +++ b/vsg/rules/if_statement/rule_030.py @@ -35,5 +35,5 @@ class rule_030(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'if', '030', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) self.lHierarchyLimits = [0] diff --git a/vsg/rules/if_statement/rule_031.py b/vsg/rules/if_statement/rule_031.py index 4b996cd2..6f6c9c23 100644 --- a/vsg/rules/if_statement/rule_031.py +++ b/vsg/rules/if_statement/rule_031.py @@ -47,6 +47,6 @@ class rule_031(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'if', '031', lTokens) + previous_line.__init__(self, lTokens) self.lHierarchyLimits = [0] self.style = 'no_code' diff --git a/vsg/rules/if_statement/rule_032.py b/vsg/rules/if_statement/rule_032.py index fc0c17a2..404a4824 100644 --- a/vsg/rules/if_statement/rule_032.py +++ b/vsg/rules/if_statement/rule_032.py @@ -7,5 +7,5 @@ class rule_032(deprecated_rule.Rule): The function of this rule has been superseded with comment indent updates and is handled by rule comment_010. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'if', '032') + deprecated_rule.Rule.__init__(self) self.message.append('The function of rule ' + self.unique_id + ' is covered by rule comment_010.') diff --git a/vsg/rules/if_statement/rule_033.py b/vsg/rules/if_statement/rule_033.py index 8c71fa04..83d3366a 100644 --- a/vsg/rules/if_statement/rule_033.py +++ b/vsg/rules/if_statement/rule_033.py @@ -7,5 +7,5 @@ class rule_033(deprecated_rule.Rule): The function of this rule has been superseded with comment indent updates and is handled by rule comment_010. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'if', '033') + deprecated_rule.Rule.__init__(self) self.message.append('The function of rule ' + self.unique_id + ' is covered by rule comment_010.') diff --git a/vsg/rules/if_statement/rule_034.py b/vsg/rules/if_statement/rule_034.py index 4f7f8765..7a15430e 100644 --- a/vsg/rules/if_statement/rule_034.py +++ b/vsg/rules/if_statement/rule_034.py @@ -31,5 +31,5 @@ class rule_034(token_case): ''' def __init__(self): - token_case.__init__(self, 'if', '034', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/if_statement/rule_035.py b/vsg/rules/if_statement/rule_035.py index 48577cbe..54e7b86b 100644 --- a/vsg/rules/if_statement/rule_035.py +++ b/vsg/rules/if_statement/rule_035.py @@ -32,5 +32,5 @@ class rule_035(remove_carriage_return_after_token): ''' def __init__(self): - remove_carriage_return_after_token.__init__(self, 'if', '035', lTokens, bInsertSpace=True) + remove_carriage_return_after_token.__init__(self, lTokens, bInsertSpace=True) self.solution = 'Merge lines with **elsif** keyword and expression below.' diff --git a/vsg/rules/if_statement/rule_036.py b/vsg/rules/if_statement/rule_036.py index 95d1c9c0..26ed8f1b 100644 --- a/vsg/rules/if_statement/rule_036.py +++ b/vsg/rules/if_statement/rule_036.py @@ -26,4 +26,4 @@ class rule_036(Rule): ''' def __init__(self): - Rule.__init__(self, 'if', '036', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.py b/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.py index b373aa92..5f50bbe2 100644 --- a/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.py +++ b/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.py @@ -25,8 +25,8 @@ class insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment(stru The token to insert a carriage return after. ''' - def __init__(self, name, identifier, lTokens): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + structure.Rule.__init__(self) self.lTokens = lTokens self.configuration_documentation_link = None diff --git a/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py b/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py index 7133e900..ee957add 100644 --- a/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py +++ b/vsg/rules/insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when_between_tokens.py @@ -30,8 +30,8 @@ class insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment_when The ending token which defines the range ''' - def __init__(self, name, identifier, lTokens, lTokenPairs): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, lTokenPairs): + structure.Rule.__init__(self) self.lTokens = lTokens self.lTokenPairs = lTokenPairs self.configuration_documentation_link = None diff --git a/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens.py b/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens.py index d8e09e77..7530d09b 100644 --- a/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens.py +++ b/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens.py @@ -29,8 +29,8 @@ class insert_token_left_of_token_if_it_does_not_exist_between_tokens(structure.R token that bounds the search for the insert_token ''' - def __init__(self, name, identifier, insert_token, anchor_token, start_token, end_token): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, insert_token, anchor_token, start_token, end_token): + structure.Rule.__init__(self) self.insert_token = insert_token self.anchor_token = anchor_token self.start_token = start_token diff --git a/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py b/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py index 4826a6a9..eae68be9 100644 --- a/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py +++ b/vsg/rules/insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py @@ -33,8 +33,8 @@ class insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value token to pull the value from ''' - def __init__(self, name, identifier, insert_token, anchor_token, left_token, right_token, value_token): - Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, insert_token, anchor_token, left_token, right_token, value_token): + Rule.__init__(self) self.insert_token = insert_token self.anchor_token = anchor_token self.left_token = left_token diff --git a/vsg/rules/insert_token_next_to_token_if_it_does_not_exist_between_tokens_using_value_from_token.py b/vsg/rules/insert_token_next_to_token_if_it_does_not_exist_between_tokens_using_value_from_token.py index b5580bc6..710421bd 100644 --- a/vsg/rules/insert_token_next_to_token_if_it_does_not_exist_between_tokens_using_value_from_token.py +++ b/vsg/rules/insert_token_next_to_token_if_it_does_not_exist_between_tokens_using_value_from_token.py @@ -30,8 +30,8 @@ class insert_token_next_to_token_if_it_does_not_exist_between_tokens_using_value token to pull the value from ''' - def __init__(self, name, identifier): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + structure.Rule.__init__(self) self.insert_token = None self.anchor_token = None self.left_token = None diff --git a/vsg/rules/insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.py b/vsg/rules/insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.py index a79f3020..cb4ddb9f 100644 --- a/vsg/rules/insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.py +++ b/vsg/rules/insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.py @@ -30,8 +30,8 @@ class insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token(st token that bounds the search for the insert_token ''' - def __init__(self, name, identifier, insert_token, anchor_tokens, end_token): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, insert_token, anchor_tokens, end_token): + structure.Rule.__init__(self) self.oInsertToken = insert_token self.lAnchorTokens = anchor_tokens self.oEndToken = end_token diff --git a/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_before_token.py b/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_before_token.py index 90de6532..0037b47e 100644 --- a/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_before_token.py +++ b/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_before_token.py @@ -29,8 +29,8 @@ class insert_token_right_of_token_if_it_does_not_exist_before_token(structure.Ru token that bounds the search for the insert_token ''' - def __init__(self, name, identifier, insert_token, anchor_token, end_token): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, insert_token, anchor_token, end_token): + structure.Rule.__init__(self) self.insert_token = insert_token self.anchor_token = anchor_token self.end_token = end_token diff --git a/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py b/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py index 9f4d26ad..47332e95 100644 --- a/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py +++ b/vsg/rules/insert_token_right_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.py @@ -32,8 +32,8 @@ class insert_token_right_of_token_if_it_does_not_exist_between_tokens_using_valu token to pull the value from ''' - def __init__(self, name, identifier, insert_token, anchor_token, left_token, right_token, value_token): - Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, insert_token, anchor_token, left_token, right_token, value_token): + Rule.__init__(self) self.insert_token = insert_token self.anchor_token = anchor_token self.left_token = left_token diff --git a/vsg/rules/insert_tokens_right_of_token_if_it_does_not_exist_before_token.py b/vsg/rules/insert_tokens_right_of_token_if_it_does_not_exist_before_token.py index c42dd6c5..25b65bae 100644 --- a/vsg/rules/insert_tokens_right_of_token_if_it_does_not_exist_before_token.py +++ b/vsg/rules/insert_tokens_right_of_token_if_it_does_not_exist_before_token.py @@ -30,8 +30,8 @@ class insert_tokens_right_of_token_if_it_does_not_exist_before_token(structure.R token that bounds the search for the insert_token ''' - def __init__(self, name, identifier, insert_tokens, anchor_token, end_token): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, insert_tokens, anchor_token, end_token): + structure.Rule.__init__(self) self.insert_tokens = insert_tokens self.anchor_token = anchor_token self.end_token = end_token diff --git a/vsg/rules/instantiation/rule_001.py b/vsg/rules/instantiation/rule_001.py index 21962f4e..dc74fd55 100644 --- a/vsg/rules/instantiation/rule_001.py +++ b/vsg/rules/instantiation/rule_001.py @@ -47,4 +47,4 @@ class rule_001(token_indent_between_tokens): ''' def __init__(self): - token_indent_between_tokens.__init__(self, 'instantiation', '001', lTokens, oStart, oEnd, bInclusive=True) + token_indent_between_tokens.__init__(self, lTokens, oStart, oEnd, bInclusive=True) diff --git a/vsg/rules/instantiation/rule_002.py b/vsg/rules/instantiation/rule_002.py index 52b6ae2f..301dd6c2 100644 --- a/vsg/rules/instantiation/rule_002.py +++ b/vsg/rules/instantiation/rule_002.py @@ -29,4 +29,4 @@ class rule_002(Rule): U_FIFO : FIFO ''' def __init__(self): - Rule.__init__(self, 'instantiation', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/instantiation/rule_003.py b/vsg/rules/instantiation/rule_003.py index 6df10d83..4dbb6289 100644 --- a/vsg/rules/instantiation/rule_003.py +++ b/vsg/rules/instantiation/rule_003.py @@ -26,4 +26,4 @@ class rule_003(Rule): U_FIFO : FIFO ''' def __init__(self): - Rule.__init__(self, 'instantiation', '003', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/instantiation/rule_004.py b/vsg/rules/instantiation/rule_004.py index 622e07e5..4c988b61 100644 --- a/vsg/rules/instantiation/rule_004.py +++ b/vsg/rules/instantiation/rule_004.py @@ -38,5 +38,5 @@ class rule_004(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'instantiation', '004', lTokens) + previous_line.__init__(self, lTokens) self.style = 'no_code' diff --git a/vsg/rules/instantiation/rule_005.py b/vsg/rules/instantiation/rule_005.py index f4d51349..88937696 100644 --- a/vsg/rules/instantiation/rule_005.py +++ b/vsg/rules/instantiation/rule_005.py @@ -29,5 +29,5 @@ class rule_005(split_line_at_token_when_between_tokens): ''' def __init__(self): - split_line_at_token_when_between_tokens.__init__(self, 'instantiation', '005', lTokens, oStart, oEnd) + split_line_at_token_when_between_tokens.__init__(self, lTokens, oStart, oEnd) self.solution = 'Place *port map* keywords on the next line by itself' diff --git a/vsg/rules/instantiation/rule_006.py b/vsg/rules/instantiation/rule_006.py index b8720e15..bb887981 100644 --- a/vsg/rules/instantiation/rule_006.py +++ b/vsg/rules/instantiation/rule_006.py @@ -8,5 +8,5 @@ class rule_006(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '006') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to port_map_001.') diff --git a/vsg/rules/instantiation/rule_007.py b/vsg/rules/instantiation/rule_007.py index ba51eee9..d51f3b4b 100644 --- a/vsg/rules/instantiation/rule_007.py +++ b/vsg/rules/instantiation/rule_007.py @@ -8,5 +8,5 @@ class rule_007(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '007') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to port_map_004.') diff --git a/vsg/rules/instantiation/rule_008.py b/vsg/rules/instantiation/rule_008.py index 19c9b124..fbc159cf 100644 --- a/vsg/rules/instantiation/rule_008.py +++ b/vsg/rules/instantiation/rule_008.py @@ -27,5 +27,5 @@ class rule_008(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'instantiation', '008', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/instantiation/rule_009.py b/vsg/rules/instantiation/rule_009.py index d4f93764..58ce82c7 100644 --- a/vsg/rules/instantiation/rule_009.py +++ b/vsg/rules/instantiation/rule_009.py @@ -28,5 +28,5 @@ class rule_009(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'instantiation', '009', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/instantiation/rule_010.py b/vsg/rules/instantiation/rule_010.py index 53ed4322..09c1aca3 100644 --- a/vsg/rules/instantiation/rule_010.py +++ b/vsg/rules/instantiation/rule_010.py @@ -52,7 +52,7 @@ class rule_010(align_tokens_in_region_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens.__init__(self, 'instantiation', '010', lAlign, oStart, oEnd) + align_tokens_in_region_between_tokens.__init__(self, lAlign, oStart, oEnd) self.solution = 'Inconsistent alignment of "=>" in generic or port assignments of instantiation.' self.configuration.remove('case_control_statements_ends_group') self.configuration.remove('if_control_statements_ends_group') diff --git a/vsg/rules/instantiation/rule_011.py b/vsg/rules/instantiation/rule_011.py index 4756799e..d01de5e3 100644 --- a/vsg/rules/instantiation/rule_011.py +++ b/vsg/rules/instantiation/rule_011.py @@ -8,5 +8,5 @@ class rule_011(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '011') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to port_map_002.') diff --git a/vsg/rules/instantiation/rule_012.py b/vsg/rules/instantiation/rule_012.py index 790fc5cb..2e2df141 100644 --- a/vsg/rules/instantiation/rule_012.py +++ b/vsg/rules/instantiation/rule_012.py @@ -29,5 +29,5 @@ class rule_012(split_line_at_token_when_between_tokens): ''' def __init__(self): - split_line_at_token_when_between_tokens.__init__(self, 'instantiation', '012', lTokens, oStart, oEnd) + split_line_at_token_when_between_tokens.__init__(self, lTokens, oStart, oEnd) self.solution = 'Place *generic map* keywords on the next line by itself' diff --git a/vsg/rules/instantiation/rule_013.py b/vsg/rules/instantiation/rule_013.py index 0289c64b..d0cf30e4 100644 --- a/vsg/rules/instantiation/rule_013.py +++ b/vsg/rules/instantiation/rule_013.py @@ -8,5 +8,5 @@ class rule_013(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '013') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to rule generic_map_001.') diff --git a/vsg/rules/instantiation/rule_014.py b/vsg/rules/instantiation/rule_014.py index 9ee85702..908ae808 100644 --- a/vsg/rules/instantiation/rule_014.py +++ b/vsg/rules/instantiation/rule_014.py @@ -8,5 +8,5 @@ class rule_014(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '014') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to rule generic_map_004.') diff --git a/vsg/rules/instantiation/rule_016.py b/vsg/rules/instantiation/rule_016.py index 8bb50fe3..cbd952ef 100644 --- a/vsg/rules/instantiation/rule_016.py +++ b/vsg/rules/instantiation/rule_016.py @@ -8,5 +8,5 @@ class rule_016(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '016') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to rule generic_map_002.') diff --git a/vsg/rules/instantiation/rule_017.py b/vsg/rules/instantiation/rule_017.py index d2abdc03..2d442137 100644 --- a/vsg/rules/instantiation/rule_017.py +++ b/vsg/rules/instantiation/rule_017.py @@ -8,5 +8,5 @@ class rule_017(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '017') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to rule generic_map_005.') diff --git a/vsg/rules/instantiation/rule_018.py b/vsg/rules/instantiation/rule_018.py index 7756f88e..7bbddc61 100644 --- a/vsg/rules/instantiation/rule_018.py +++ b/vsg/rules/instantiation/rule_018.py @@ -8,5 +8,5 @@ class rule_018(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '018') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to rule generic_map_006.') diff --git a/vsg/rules/instantiation/rule_019.py b/vsg/rules/instantiation/rule_019.py index 19286bcd..b9fb8e0b 100644 --- a/vsg/rules/instantiation/rule_019.py +++ b/vsg/rules/instantiation/rule_019.py @@ -40,4 +40,4 @@ class rule_019(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'instantiation', '019', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/instantiation/rule_020.py b/vsg/rules/instantiation/rule_020.py index ae030cf8..e4bd8136 100644 --- a/vsg/rules/instantiation/rule_020.py +++ b/vsg/rules/instantiation/rule_020.py @@ -7,5 +7,5 @@ class rule_020(deprecated_rule.Rule): This rule has been renamed to `port_map_005 `_. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '020') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to rule port_map_005.') diff --git a/vsg/rules/instantiation/rule_021.py b/vsg/rules/instantiation/rule_021.py index cf2a0a85..76669dfa 100644 --- a/vsg/rules/instantiation/rule_021.py +++ b/vsg/rules/instantiation/rule_021.py @@ -7,5 +7,5 @@ class rule_021(deprecated_rule.Rule): This rule has been renamed to `port_map_009 `_. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '021') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to rule port_map_009.') diff --git a/vsg/rules/instantiation/rule_022.py b/vsg/rules/instantiation/rule_022.py index 9f20de7c..9c3341bf 100644 --- a/vsg/rules/instantiation/rule_022.py +++ b/vsg/rules/instantiation/rule_022.py @@ -7,5 +7,5 @@ class rule_022(deprecated_rule.Rule): This rule has been renamed to `port_map_007 `_. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '022') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to port_map_007.') diff --git a/vsg/rules/instantiation/rule_023.py b/vsg/rules/instantiation/rule_023.py index db1f7238..031e260c 100644 --- a/vsg/rules/instantiation/rule_023.py +++ b/vsg/rules/instantiation/rule_023.py @@ -7,5 +7,5 @@ class rule_023(deprecated_rule.Rule): This rule has been renamed to `port_map_010 `_. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '023') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to port_map_010.') diff --git a/vsg/rules/instantiation/rule_024.py b/vsg/rules/instantiation/rule_024.py index 55373909..57da1e6c 100644 --- a/vsg/rules/instantiation/rule_024.py +++ b/vsg/rules/instantiation/rule_024.py @@ -10,7 +10,7 @@ class rule_024(deprecated_rule.Rule): * `port_map_008 `_ ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '024') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been split into rules:') self.message.append(' generic_map_008') self.message.append(' rule port_map_005') diff --git a/vsg/rules/instantiation/rule_025.py b/vsg/rules/instantiation/rule_025.py index 0cc7bbc2..0afc933d 100644 --- a/vsg/rules/instantiation/rule_025.py +++ b/vsg/rules/instantiation/rule_025.py @@ -7,5 +7,5 @@ class rule_025(deprecated_rule.Rule): This rule has been renamed to `port_map_003 `_. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '025') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to port_map_003.') diff --git a/vsg/rules/instantiation/rule_026.py b/vsg/rules/instantiation/rule_026.py index abfd4cfa..9a14b0f7 100644 --- a/vsg/rules/instantiation/rule_026.py +++ b/vsg/rules/instantiation/rule_026.py @@ -7,5 +7,5 @@ class rule_026(deprecated_rule.Rule): This rule has been renamed to `generic_map_003 `_. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '026') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to generic_map_003.') diff --git a/vsg/rules/instantiation/rule_027.py b/vsg/rules/instantiation/rule_027.py index 916bb296..5a4d5c63 100644 --- a/vsg/rules/instantiation/rule_027.py +++ b/vsg/rules/instantiation/rule_027.py @@ -27,5 +27,5 @@ class rule_027(token_case): ''' def __init__(self): - token_case.__init__(self, 'instantiation', '027', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/instantiation/rule_028.py b/vsg/rules/instantiation/rule_028.py index 19286fde..76e628b4 100644 --- a/vsg/rules/instantiation/rule_028.py +++ b/vsg/rules/instantiation/rule_028.py @@ -27,5 +27,5 @@ class rule_028(Rule): ''' def __init__(self): - Rule.__init__(self, 'instantiation', '028', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/instantiation/rule_029.py b/vsg/rules/instantiation/rule_029.py index d6b33b38..0de09d85 100644 --- a/vsg/rules/instantiation/rule_029.py +++ b/vsg/rules/instantiation/rule_029.py @@ -40,6 +40,6 @@ class rule_029(align_tokens_in_region_between_tokens_skipping_lines_starting_wit ''' def __init__(self): - align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, 'instantiation', '029', lAlign, token.component_instantiation_statement.instantiation_label, token.component_instantiation_statement.semicolon, lSkip) + align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, lAlign, token.component_instantiation_statement.instantiation_label, token.component_instantiation_statement.semicolon, lSkip) self.solution = 'Align comment.' self.subphase = 3 diff --git a/vsg/rules/instantiation/rule_030.py b/vsg/rules/instantiation/rule_030.py index 83b1f2d7..b5eda576 100644 --- a/vsg/rules/instantiation/rule_030.py +++ b/vsg/rules/instantiation/rule_030.py @@ -7,5 +7,5 @@ class rule_030(deprecated_rule.Rule): This rule has been renamed to `generic_map_007 `_. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'instantiation', '030') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been renamed to generic_map_007.') diff --git a/vsg/rules/instantiation/rule_031.py b/vsg/rules/instantiation/rule_031.py index d673bd07..43441c24 100644 --- a/vsg/rules/instantiation/rule_031.py +++ b/vsg/rules/instantiation/rule_031.py @@ -27,5 +27,5 @@ class rule_031(token_case): ''' def __init__(self): - token_case.__init__(self, 'instantiation', '031', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/instantiation/rule_032.py b/vsg/rules/instantiation/rule_032.py index 7138219c..79034fec 100644 --- a/vsg/rules/instantiation/rule_032.py +++ b/vsg/rules/instantiation/rule_032.py @@ -30,4 +30,4 @@ class rule_032(Rule): INSTANCE_NAME : component ENTITY_NAME ''' def __init__(self): - Rule.__init__(self, 'instantiation', '032', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/instantiation/rule_033.py b/vsg/rules/instantiation/rule_033.py index d79a9f3e..5bbb714d 100644 --- a/vsg/rules/instantiation/rule_033.py +++ b/vsg/rules/instantiation/rule_033.py @@ -32,6 +32,6 @@ class rule_033(insert_token_left_of_token_if_it_does_not_exist_between_tokens): INSTANCE_NAME : component ENTITY_NAME ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens.__init__(self, 'instantiation', '033', oInsertToken, oAnchorToken, oStartToken, oEndToken) + insert_token_left_of_token_if_it_does_not_exist_between_tokens.__init__(self, oInsertToken, oAnchorToken, oStartToken, oEndToken) self.solution = '*component* keyword' self.groups.append('structure::optional') diff --git a/vsg/rules/instantiation/rule_034.py b/vsg/rules/instantiation/rule_034.py index ba128457..318e501b 100644 --- a/vsg/rules/instantiation/rule_034.py +++ b/vsg/rules/instantiation/rule_034.py @@ -35,7 +35,7 @@ class rule_034(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, name='instantiation', identifier='034') + structure.Rule.__init__(self) self.method = 'component' self.configuration.append('method') self.fixable = False diff --git a/vsg/rules/instantiation/rule_035.py b/vsg/rules/instantiation/rule_035.py index 78b28812..76e99c7e 100644 --- a/vsg/rules/instantiation/rule_035.py +++ b/vsg/rules/instantiation/rule_035.py @@ -32,5 +32,5 @@ class rule_035(Rule): ''' def __init__(self): - Rule.__init__(self, 'instantiation', '035', lTokens) + Rule.__init__(self, lTokens) self.bInsertWhitespace = False diff --git a/vsg/rules/instantiation/rule_600.py b/vsg/rules/instantiation/rule_600.py index 03d7cfb0..7c105030 100644 --- a/vsg/rules/instantiation/rule_600.py +++ b/vsg/rules/instantiation/rule_600.py @@ -28,5 +28,5 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'instantiation', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_inst'] diff --git a/vsg/rules/instantiation/rule_601.py b/vsg/rules/instantiation/rule_601.py index b95ba947..a7ea3d8e 100644 --- a/vsg/rules/instantiation/rule_601.py +++ b/vsg/rules/instantiation/rule_601.py @@ -28,6 +28,6 @@ class rule_601(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'instantiation', '601', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['inst_'] self.solution = 'instantiation label' diff --git a/vsg/rules/is_token_value_one_of.py b/vsg/rules/is_token_value_one_of.py index 5b4a18fd..79b30565 100644 --- a/vsg/rules/is_token_value_one_of.py +++ b/vsg/rules/is_token_value_one_of.py @@ -10,8 +10,8 @@ class is_token_value_one_of(naming.Rule): Checks if a token value is in a list of provided values. ''' - def __init__(self, name, identifier, token): - naming.Rule.__init__(self, name, identifier) + def __init__(self, token): + naming.Rule.__init__(self) self.names = [] self.fixable = False self.disable = True diff --git a/vsg/rules/iteration_scheme/rule_100.py b/vsg/rules/iteration_scheme/rule_100.py index 9fc20e34..52b4c4a2 100644 --- a/vsg/rules/iteration_scheme/rule_100.py +++ b/vsg/rules/iteration_scheme/rule_100.py @@ -30,4 +30,4 @@ class rule_100(Rule): while (condition) ''' def __init__(self): - Rule.__init__(self, 'iteration_scheme', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/iteration_scheme/rule_101.py b/vsg/rules/iteration_scheme/rule_101.py index d3d82c8e..494ec2ff 100644 --- a/vsg/rules/iteration_scheme/rule_101.py +++ b/vsg/rules/iteration_scheme/rule_101.py @@ -26,5 +26,5 @@ class rule_101(Rule): for x in (31 downto 0) loop ''' def __init__(self): - Rule.__init__(self, 'iteration_scheme', '101', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Ensure a single space after for keyword.' diff --git a/vsg/rules/iteration_scheme/rule_300.py b/vsg/rules/iteration_scheme/rule_300.py index 0c33d897..24ca8b34 100644 --- a/vsg/rules/iteration_scheme/rule_300.py +++ b/vsg/rules/iteration_scheme/rule_300.py @@ -35,4 +35,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'iteration_scheme', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/iteration_scheme/rule_301.py b/vsg/rules/iteration_scheme/rule_301.py index 0dcf170d..cdb16e7c 100644 --- a/vsg/rules/iteration_scheme/rule_301.py +++ b/vsg/rules/iteration_scheme/rule_301.py @@ -40,4 +40,4 @@ class rule_301(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'iteration_scheme', '301', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/iteration_scheme/rule_500.py b/vsg/rules/iteration_scheme/rule_500.py index 5addf88e..4f71ee0b 100644 --- a/vsg/rules/iteration_scheme/rule_500.py +++ b/vsg/rules/iteration_scheme/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'iteration_scheme', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/iteration_scheme/rule_501.py b/vsg/rules/iteration_scheme/rule_501.py index 83c14ebb..2135a985 100644 --- a/vsg/rules/iteration_scheme/rule_501.py +++ b/vsg/rules/iteration_scheme/rule_501.py @@ -27,5 +27,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'iteration_scheme', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/length/rule_001.py b/vsg/rules/length/rule_001.py index 60c41eeb..14b446bd 100644 --- a/vsg/rules/length/rule_001.py +++ b/vsg/rules/length/rule_001.py @@ -10,4 +10,4 @@ class rule_001(line_length): ''' def __init__(self): - line_length.__init__(self, 'length', '001') + line_length.__init__(self) diff --git a/vsg/rules/length/rule_002.py b/vsg/rules/length/rule_002.py index ae236e21..d37afd46 100644 --- a/vsg/rules/length/rule_002.py +++ b/vsg/rules/length/rule_002.py @@ -10,4 +10,4 @@ class rule_002(file_length): ''' def __init__(self): - file_length.__init__(self, 'length', '002') + file_length.__init__(self) diff --git a/vsg/rules/length/rule_003.py b/vsg/rules/length/rule_003.py index 1535b9e8..e9c24bfd 100644 --- a/vsg/rules/length/rule_003.py +++ b/vsg/rules/length/rule_003.py @@ -17,4 +17,4 @@ class rule_003(number_of_lines_between_tokens): ''' def __init__(self): - number_of_lines_between_tokens.__init__(self, 'length', '003', oLeftToken, oRightToken, iLines) + number_of_lines_between_tokens.__init__(self, oLeftToken, oRightToken, iLines) diff --git a/vsg/rules/library/rule_001.py b/vsg/rules/library/rule_001.py index 5eaf3da3..7febeb33 100644 --- a/vsg/rules/library/rule_001.py +++ b/vsg/rules/library/rule_001.py @@ -29,4 +29,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'library', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/library/rule_002.py b/vsg/rules/library/rule_002.py index 0244e94e..7de575e2 100644 --- a/vsg/rules/library/rule_002.py +++ b/vsg/rules/library/rule_002.py @@ -26,4 +26,4 @@ class rule_002(Rule): library ieee; ''' def __init__(self): - Rule.__init__(self, 'library', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/library/rule_003.py b/vsg/rules/library/rule_003.py index ca63cd5e..a2588732 100644 --- a/vsg/rules/library/rule_003.py +++ b/vsg/rules/library/rule_003.py @@ -43,7 +43,7 @@ class rule_003(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'library', '003', lTokens) + previous_line.__init__(self, lTokens) self.allow_library_clause = 'no' self.configuration.append('allow_library_clause') self.style = 'require_blank_line' diff --git a/vsg/rules/library/rule_004.py b/vsg/rules/library/rule_004.py index 4af8fae2..734eb294 100644 --- a/vsg/rules/library/rule_004.py +++ b/vsg/rules/library/rule_004.py @@ -31,5 +31,5 @@ class rule_004(token_case): ''' def __init__(self): - token_case.__init__(self, 'library', '004', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/library/rule_005.py b/vsg/rules/library/rule_005.py index d841df96..0e5dead1 100644 --- a/vsg/rules/library/rule_005.py +++ b/vsg/rules/library/rule_005.py @@ -31,5 +31,5 @@ class rule_005(token_case): ''' def __init__(self): - token_case.__init__(self, 'library', '005', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/library/rule_006.py b/vsg/rules/library/rule_006.py index e4885e3f..af424b6d 100644 --- a/vsg/rules/library/rule_006.py +++ b/vsg/rules/library/rule_006.py @@ -30,4 +30,4 @@ class rule_006(Rule): use ieee.std_logic_unsigned.all; ''' def __init__(self): - Rule.__init__(self, 'library', '006', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/library/rule_007.py b/vsg/rules/library/rule_007.py index 5cea7973..6a44b591 100644 --- a/vsg/rules/library/rule_007.py +++ b/vsg/rules/library/rule_007.py @@ -34,5 +34,5 @@ class rule_007(previous_line): use ieee.std_logic_unsigned.all; ''' def __init__(self): - previous_line.__init__(self, 'library', '007', lTokens) + previous_line.__init__(self, lTokens) self.style = 'no_blank_line' diff --git a/vsg/rules/library/rule_008.py b/vsg/rules/library/rule_008.py index 3081c905..eeb9f133 100644 --- a/vsg/rules/library/rule_008.py +++ b/vsg/rules/library/rule_008.py @@ -31,4 +31,4 @@ class rule_008(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'library', '008', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/library/rule_009.py b/vsg/rules/library/rule_009.py index a9a68f6f..d52336a3 100644 --- a/vsg/rules/library/rule_009.py +++ b/vsg/rules/library/rule_009.py @@ -26,7 +26,7 @@ class rule_009(align_consecutive_lines_starting_with_a_comment_above_line_starti ''' def __init__(self): - align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token.__init__(self, 'library', '009', token.keyword, bIncrement=True) + align_consecutive_lines_starting_with_a_comment_above_line_starting_with_token.__init__(self, token.keyword, bIncrement=True) self.solution = 'Align comment with *use* keyword.' self.subphase = 2 self.configuration_documentation_link = None diff --git a/vsg/rules/library/rule_010.py b/vsg/rules/library/rule_010.py index d8ebb577..16c42373 100644 --- a/vsg/rules/library/rule_010.py +++ b/vsg/rules/library/rule_010.py @@ -26,5 +26,5 @@ class rule_010(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'library', '010', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *library* to it\'s own line.' diff --git a/vsg/rules/library/rule_011.py b/vsg/rules/library/rule_011.py index 95a2f29d..8cd2934a 100644 --- a/vsg/rules/library/rule_011.py +++ b/vsg/rules/library/rule_011.py @@ -26,5 +26,5 @@ class rule_011(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'library', '011', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *use* to it\'s own line.' diff --git a/vsg/rules/library/rule_500.py b/vsg/rules/library/rule_500.py index 6f6ed20d..398d3b48 100644 --- a/vsg/rules/library/rule_500.py +++ b/vsg/rules/library/rule_500.py @@ -31,6 +31,6 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'library', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/library/rule_600.py b/vsg/rules/library/rule_600.py index 7070e6a7..fa677ebb 100644 --- a/vsg/rules/library/rule_600.py +++ b/vsg/rules/library/rule_600.py @@ -8,5 +8,5 @@ class rule_600(Rule): ''' def __init__(self): - Rule.__init__(self, 'library', '600') - self.message.append('Rule ' + self.unique_id + ' has been moved to rule library_500.') \ No newline at end of file + Rule.__init__(self) + self.message.append('Rule ' + self.unique_id + ' has been moved to rule library_500.') diff --git a/vsg/rules/line_length.py b/vsg/rules/line_length.py index a21163cc..6378f9ab 100644 --- a/vsg/rules/line_length.py +++ b/vsg/rules/line_length.py @@ -19,8 +19,8 @@ class line_length(length.Rule): ''' - def __init__(self, name, identifier): - length.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + length.Rule.__init__(self) self.disable = False self.length = 120 diff --git a/vsg/rules/logical_operator/rule_500.py b/vsg/rules/logical_operator/rule_500.py index aaf1f206..95331a65 100644 --- a/vsg/rules/logical_operator/rule_500.py +++ b/vsg/rules/logical_operator/rule_500.py @@ -32,5 +32,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'logical_operator', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/loop_statement/rule_001.py b/vsg/rules/loop_statement/rule_001.py index aca5892e..747d5742 100644 --- a/vsg/rules/loop_statement/rule_001.py +++ b/vsg/rules/loop_statement/rule_001.py @@ -26,5 +26,5 @@ class rule_001(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'loop_statement', '001', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move code after **loop** to the next line.' diff --git a/vsg/rules/loop_statement/rule_002.py b/vsg/rules/loop_statement/rule_002.py index cb205517..30077a63 100644 --- a/vsg/rules/loop_statement/rule_002.py +++ b/vsg/rules/loop_statement/rule_002.py @@ -28,5 +28,5 @@ class rule_002(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'loop_statement', '002', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Move *end* keyword to the next line.' diff --git a/vsg/rules/loop_statement/rule_003.py b/vsg/rules/loop_statement/rule_003.py index 9c729dc9..f77e34ba 100644 --- a/vsg/rules/loop_statement/rule_003.py +++ b/vsg/rules/loop_statement/rule_003.py @@ -24,5 +24,5 @@ class rule_003(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'loop_statement', '003', token.end_keyword, token.end_loop_keyword) + move_token_next_to_another_token.__init__(self, token.end_keyword, token.end_loop_keyword) self.solution = 'Ensure *end* keyword is on the same line as the *loop* keyword.' diff --git a/vsg/rules/loop_statement/rule_004.py b/vsg/rules/loop_statement/rule_004.py index cc0c30b0..99964953 100644 --- a/vsg/rules/loop_statement/rule_004.py +++ b/vsg/rules/loop_statement/rule_004.py @@ -37,5 +37,5 @@ class rule_004(Rule): ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '004', oToken, lAnchorTokens, oStartToken, oEndToken) + Rule.__init__(self, oToken, lAnchorTokens, oStartToken, oEndToken) self.subphase = 3 diff --git a/vsg/rules/loop_statement/rule_005.py b/vsg/rules/loop_statement/rule_005.py index b8e7e5a4..ba7a552f 100644 --- a/vsg/rules/loop_statement/rule_005.py +++ b/vsg/rules/loop_statement/rule_005.py @@ -36,5 +36,5 @@ class rule_005(Rule): ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '005', lTokens, bInsertSpace=True) + Rule.__init__(self, lTokens, bInsertSpace=True) self.solution = 'Merge line below with label.' diff --git a/vsg/rules/loop_statement/rule_006.py b/vsg/rules/loop_statement/rule_006.py index f6832573..b13f7530 100644 --- a/vsg/rules/loop_statement/rule_006.py +++ b/vsg/rules/loop_statement/rule_006.py @@ -33,7 +33,7 @@ class rule_006(Rule): ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '006', oFirstToken, oSecondToken) + Rule.__init__(self, oFirstToken, oSecondToken) self.solution = 'Add label for loop statement' self.fixable = False self.disable = True diff --git a/vsg/rules/loop_statement/rule_007.py b/vsg/rules/loop_statement/rule_007.py index bebaaa4c..d3c17b70 100644 --- a/vsg/rules/loop_statement/rule_007.py +++ b/vsg/rules/loop_statement/rule_007.py @@ -34,7 +34,7 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '007', oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) + Rule.__init__(self, oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) self.solution = 'a label for the "end loop".' self.groups.append('structure::optional') self.subphase = 2 diff --git a/vsg/rules/loop_statement/rule_100.py b/vsg/rules/loop_statement/rule_100.py index 2187ff2e..cd9c963b 100644 --- a/vsg/rules/loop_statement/rule_100.py +++ b/vsg/rules/loop_statement/rule_100.py @@ -25,6 +25,6 @@ class rule_100(Rule): end loop; ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '100') + Rule.__init__(self) self.left_token = token.end_keyword self.right_token = token.end_loop_keyword diff --git a/vsg/rules/loop_statement/rule_101.py b/vsg/rules/loop_statement/rule_101.py index 9745690c..6c48891b 100644 --- a/vsg/rules/loop_statement/rule_101.py +++ b/vsg/rules/loop_statement/rule_101.py @@ -23,6 +23,6 @@ class rule_101(Rule): end loop END_LOOP_LABEL; ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '101') + Rule.__init__(self) self.left_token = token.end_loop_keyword self.right_token = token.end_loop_label diff --git a/vsg/rules/loop_statement/rule_102.py b/vsg/rules/loop_statement/rule_102.py index 2658fbaf..0f08e21d 100644 --- a/vsg/rules/loop_statement/rule_102.py +++ b/vsg/rules/loop_statement/rule_102.py @@ -28,4 +28,4 @@ class rule_102(Rule): for x in (0 to 30) loop ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '102', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/loop_statement/rule_103.py b/vsg/rules/loop_statement/rule_103.py index afaf4dc8..7399527c 100644 --- a/vsg/rules/loop_statement/rule_103.py +++ b/vsg/rules/loop_statement/rule_103.py @@ -25,6 +25,6 @@ class rule_103(Rule): label : for index in 0 to 100 loop ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '103') + Rule.__init__(self) self.left_token = token.loop_label self.right_token = token.label_colon diff --git a/vsg/rules/loop_statement/rule_104.py b/vsg/rules/loop_statement/rule_104.py index f7e3be96..fafcad64 100644 --- a/vsg/rules/loop_statement/rule_104.py +++ b/vsg/rules/loop_statement/rule_104.py @@ -28,4 +28,4 @@ class rule_104(Rule): label : for index in 0 to 100 loop ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '104', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/loop_statement/rule_200.py b/vsg/rules/loop_statement/rule_200.py index 1b83d712..7a2ab984 100644 --- a/vsg/rules/loop_statement/rule_200.py +++ b/vsg/rules/loop_statement/rule_200.py @@ -41,5 +41,5 @@ class rule_200(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'loop_statement', '200', lTokens) + previous_line.__init__(self, lTokens) self.style = 'no_code' diff --git a/vsg/rules/loop_statement/rule_201.py b/vsg/rules/loop_statement/rule_201.py index 79e6a567..794fe56a 100644 --- a/vsg/rules/loop_statement/rule_201.py +++ b/vsg/rules/loop_statement/rule_201.py @@ -27,4 +27,4 @@ class rule_201(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'loop_statement', '201', [token.loop_keyword]) + blank_line_below_line_ending_with_token.__init__(self, [token.loop_keyword]) diff --git a/vsg/rules/loop_statement/rule_202.py b/vsg/rules/loop_statement/rule_202.py index 071ca0f9..d9a06a82 100644 --- a/vsg/rules/loop_statement/rule_202.py +++ b/vsg/rules/loop_statement/rule_202.py @@ -31,4 +31,4 @@ class rule_202(previous_line): end loop; ''' def __init__(self): - previous_line.__init__(self, 'loop_statement', '202', lTokens) + previous_line.__init__(self, lTokens) diff --git a/vsg/rules/loop_statement/rule_203.py b/vsg/rules/loop_statement/rule_203.py index 617da0bc..0367a999 100644 --- a/vsg/rules/loop_statement/rule_203.py +++ b/vsg/rules/loop_statement/rule_203.py @@ -27,4 +27,4 @@ class rule_203(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'loop_statement', '203', [token.semicolon]) + blank_line_below_line_ending_with_token.__init__(self, [token.semicolon]) diff --git a/vsg/rules/loop_statement/rule_300.py b/vsg/rules/loop_statement/rule_300.py index 051e9ad0..8ac5dbc2 100644 --- a/vsg/rules/loop_statement/rule_300.py +++ b/vsg/rules/loop_statement/rule_300.py @@ -39,4 +39,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'loop_statement', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/loop_statement/rule_301.py b/vsg/rules/loop_statement/rule_301.py index 73a1adb8..9ebf069a 100644 --- a/vsg/rules/loop_statement/rule_301.py +++ b/vsg/rules/loop_statement/rule_301.py @@ -39,4 +39,4 @@ class rule_301(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'loop_statement', '301', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/loop_statement/rule_302.py b/vsg/rules/loop_statement/rule_302.py index 01dc89c0..4910917d 100644 --- a/vsg/rules/loop_statement/rule_302.py +++ b/vsg/rules/loop_statement/rule_302.py @@ -39,4 +39,4 @@ class rule_302(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'loop_statement', '302', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/loop_statement/rule_500.py b/vsg/rules/loop_statement/rule_500.py index 6a6322e5..6aff3b10 100644 --- a/vsg/rules/loop_statement/rule_500.py +++ b/vsg/rules/loop_statement/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/loop_statement/rule_501.py b/vsg/rules/loop_statement/rule_501.py index 2bd04928..7ef66b22 100644 --- a/vsg/rules/loop_statement/rule_501.py +++ b/vsg/rules/loop_statement/rule_501.py @@ -31,5 +31,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/loop_statement/rule_502.py b/vsg/rules/loop_statement/rule_502.py index 0f9d277b..b29643ac 100644 --- a/vsg/rules/loop_statement/rule_502.py +++ b/vsg/rules/loop_statement/rule_502.py @@ -31,5 +31,5 @@ class rule_502(Rule): ''' def __init__(self): - Rule.__init__(self, 'loop_statement', '502', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/loop_statement/rule_503.py b/vsg/rules/loop_statement/rule_503.py index 6d302605..7b0d7633 100644 --- a/vsg/rules/loop_statement/rule_503.py +++ b/vsg/rules/loop_statement/rule_503.py @@ -29,5 +29,5 @@ class rule_503(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'loop_statement', '503', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/loop_statement/rule_504.py b/vsg/rules/loop_statement/rule_504.py index 8c281562..96c7e126 100644 --- a/vsg/rules/loop_statement/rule_504.py +++ b/vsg/rules/loop_statement/rule_504.py @@ -29,5 +29,5 @@ class rule_504(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'loop_statement', '504', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/loop_statement/rule_600.py b/vsg/rules/loop_statement/rule_600.py index 1ac285d0..6dc2ddf1 100644 --- a/vsg/rules/loop_statement/rule_600.py +++ b/vsg/rules/loop_statement/rule_600.py @@ -28,6 +28,6 @@ class rule_600(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'loop_statement', '600', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['loop_'] self.solution = 'Loop labels' diff --git a/vsg/rules/loop_statement/rule_601.py b/vsg/rules/loop_statement/rule_601.py index a68fa03e..9636e4a0 100644 --- a/vsg/rules/loop_statement/rule_601.py +++ b/vsg/rules/loop_statement/rule_601.py @@ -28,6 +28,6 @@ class rule_601(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'loop_statement', '601', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_loop'] self.solution = 'Loop labels' diff --git a/vsg/rules/loop_statement/rule_602.py b/vsg/rules/loop_statement/rule_602.py index 06a11664..864ea4f0 100644 --- a/vsg/rules/loop_statement/rule_602.py +++ b/vsg/rules/loop_statement/rule_602.py @@ -28,5 +28,5 @@ class rule_602(token_prefix_between_tokens): ''' def __init__(self): - token_prefix_between_tokens.__init__(self, 'loop_statement', '602', lTokens, token.iteration_scheme.for_keyword, token.parameter_specification.in_keyword) + token_prefix_between_tokens.__init__(self, lTokens, token.iteration_scheme.for_keyword, token.parameter_specification.in_keyword) self.prefixes = ['lv_'] diff --git a/vsg/rules/loop_statement/rule_603.py b/vsg/rules/loop_statement/rule_603.py index 27354bb5..cb190cf3 100644 --- a/vsg/rules/loop_statement/rule_603.py +++ b/vsg/rules/loop_statement/rule_603.py @@ -28,5 +28,5 @@ class rule_603(token_suffix_between_tokens): ''' def __init__(self): - token_suffix_between_tokens.__init__(self, 'loop_statement', '603', lTokens, token.iteration_scheme.for_keyword, token.parameter_specification.in_keyword) + token_suffix_between_tokens.__init__(self, lTokens, token.iteration_scheme.for_keyword, token.parameter_specification.in_keyword) self.suffixes = ['_lv'] diff --git a/vsg/rules/move_token.py b/vsg/rules/move_token.py index 734bd735..ec001d9b 100644 --- a/vsg/rules/move_token.py +++ b/vsg/rules/move_token.py @@ -25,8 +25,8 @@ class move_token(structure.Rule): object type to split a line at ''' - def __init__(self, name, identifier, oToken): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, oToken): + structure.Rule.__init__(self) self.solution = None self.phase = 1 self.oToken = oToken diff --git a/vsg/rules/move_token_left_to_next_non_whitespace_token.py b/vsg/rules/move_token_left_to_next_non_whitespace_token.py index 880e5940..c5186a70 100644 --- a/vsg/rules/move_token_left_to_next_non_whitespace_token.py +++ b/vsg/rules/move_token_left_to_next_non_whitespace_token.py @@ -29,8 +29,8 @@ class move_token_left_to_next_non_whitespace_token(structure.Rule): The token which will be moved next to the anchor token. ''' - def __init__(self, name, identifier, token_to_move): - structure.Rule.__init__(self, name, identifier) + def __init__(self, token_to_move): + structure.Rule.__init__(self) self.subphase = 2 self.token_to_move = token_to_move self.bInsertWhitespace = True diff --git a/vsg/rules/move_token_next_to_another_token.py b/vsg/rules/move_token_next_to_another_token.py index 062278ec..3fe57bf3 100644 --- a/vsg/rules/move_token_next_to_another_token.py +++ b/vsg/rules/move_token_next_to_another_token.py @@ -28,8 +28,8 @@ class move_token_next_to_another_token(structure.Rule): The token which will be moved next to the anchor token. ''' - def __init__(self, name, identifier, anchor_token, token_to_move): - structure.Rule.__init__(self, name, identifier) + def __init__(self, anchor_token, token_to_move): + structure.Rule.__init__(self) self.subphase = 2 self.anchor_token = anchor_token self.token_to_move = token_to_move diff --git a/vsg/rules/move_token_next_to_another_token_if_it_exists_between_tokens.py b/vsg/rules/move_token_next_to_another_token_if_it_exists_between_tokens.py index b784b1dc..16c79075 100644 --- a/vsg/rules/move_token_next_to_another_token_if_it_exists_between_tokens.py +++ b/vsg/rules/move_token_next_to_another_token_if_it_exists_between_tokens.py @@ -27,8 +27,8 @@ class move_token_next_to_another_token_if_it_exists_between_tokens(structure.Rul The token which will be moved next to the anchor token. ''' - def __init__(self, name, identifier, anchor_token, token_to_move, between_tokens): - structure.Rule.__init__(self, name, identifier) + def __init__(self, anchor_token, token_to_move, between_tokens): + structure.Rule.__init__(self) self.subphase = 2 self.anchor_token = anchor_token self.token_to_move = token_to_move diff --git a/vsg/rules/move_token_right_to_next_non_whitespace_token.py b/vsg/rules/move_token_right_to_next_non_whitespace_token.py index dda0d133..4c98d826 100644 --- a/vsg/rules/move_token_right_to_next_non_whitespace_token.py +++ b/vsg/rules/move_token_right_to_next_non_whitespace_token.py @@ -25,8 +25,8 @@ class move_token_right_to_next_non_whitespace_token(structure.Rule): The token which will be moved next to the anchor token. ''' - def __init__(self, name, identifier, tokens_to_move): - structure.Rule.__init__(self, name, identifier) + def __init__(self, tokens_to_move): + structure.Rule.__init__(self) self.tokens_to_move = tokens_to_move self.bInsertWhitespace = True self.bRemoveTrailingWhitespace = True diff --git a/vsg/rules/move_token_sequences_left_of_token.py b/vsg/rules/move_token_sequences_left_of_token.py index 6cf788f9..23fed0e0 100644 --- a/vsg/rules/move_token_sequences_left_of_token.py +++ b/vsg/rules/move_token_sequences_left_of_token.py @@ -24,8 +24,8 @@ class move_token_sequences_left_of_token(structure.Rule): object type to split a line at ''' - def __init__(self, name, identifier, lSequences, oLeftToken): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lSequences, oLeftToken): + structure.Rule.__init__(self) self.lSequences = lSequences self.oLeftToken = oLeftToken self.configuration_documentation_link = None diff --git a/vsg/rules/move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.py b/vsg/rules/move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.py index 48673fe0..575288ec 100644 --- a/vsg/rules/move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.py +++ b/vsg/rules/move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_tokens.py @@ -28,8 +28,8 @@ class move_token_to_the_right_of_several_possible_tokens_if_it_exists_between_to This is an ordered list with the left item containing the token furthest way from oToken. ''' - def __init__(self, name, identifier, oMoveToken, lAnchorTokens, oStartToken, oEndToken, bInsertWhitespace=False): - structure.Rule.__init__(self, name, identifier) + def __init__(self, oMoveToken, lAnchorTokens, oStartToken, oEndToken, bInsertWhitespace=False): + structure.Rule.__init__(self) self.oMoveToken = oMoveToken self.lAnchorTokens = lAnchorTokens self.oStartToken = oStartToken diff --git a/vsg/rules/multiline_alignment_between_tokens.py b/vsg/rules/multiline_alignment_between_tokens.py index 0cfc8438..0c71fcd7 100644 --- a/vsg/rules/multiline_alignment_between_tokens.py +++ b/vsg/rules/multiline_alignment_between_tokens.py @@ -26,8 +26,8 @@ class multiline_alignment_between_tokens(alignment.Rule): object type to apply the case check against ''' - def __init__(self, name, identifier, lTokenPairs, bExcludeLastToken=False): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokenPairs, bExcludeLastToken=False): + alignment.Rule.__init__(self) self.phase = 4 self.lTokenPairs = lTokenPairs self.bExcludeLastToken = bExcludeLastToken @@ -333,7 +333,7 @@ def _analyze_align_left_no_align_paren_yes(iFirstLine, iLastLine, lParens, dActu iColumn = dTemp['column'] + iTemp - len(dActualIndent[iLine]) + iIndentStep - 1 if iParens == 1: # print('Got Here') - iColumn -= iIndentAfterParen + iColumn -= iIndentAfterParen # print(f"iColumn = {dTemp['column']} + ({iTemp} - {len({dActualIndent[iLine]})}) + {iIndentStep} - 1 = {iColumn}") lColumn.append(iColumn) if bIgnoreStartParen: diff --git a/vsg/rules/multiline_array_alignment.py b/vsg/rules/multiline_array_alignment.py index ae2b384b..de9e3ef7 100644 --- a/vsg/rules/multiline_array_alignment.py +++ b/vsg/rules/multiline_array_alignment.py @@ -40,8 +40,8 @@ class multiline_array_alignment(alignment.Rule): ); ''' - def __init__(self, name, identifier, lTokenPairs): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokenPairs): + alignment.Rule.__init__(self) self.subphase = 2 self.lTokenPairs = lTokenPairs self.align_left = 'no' diff --git a/vsg/rules/multiline_conditional_alignment.py b/vsg/rules/multiline_conditional_alignment.py index 078c845d..79b78b57 100644 --- a/vsg/rules/multiline_conditional_alignment.py +++ b/vsg/rules/multiline_conditional_alignment.py @@ -40,8 +40,8 @@ class multiline_conditional_alignment(alignment.Rule): '0'; ''' - def __init__(self, name, identifier, lTokenPairs): - alignment.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokenPairs): + alignment.Rule.__init__(self) self.subphase = 2 self.lTokenPairs = lTokenPairs self.configuration_documentation_link = 'configuring_conditional_multiline_indent_rules_link' diff --git a/vsg/rules/multiline_constraint_structure.py b/vsg/rules/multiline_constraint_structure.py index fcee2cee..14845df0 100644 --- a/vsg/rules/multiline_constraint_structure.py +++ b/vsg/rules/multiline_constraint_structure.py @@ -17,8 +17,8 @@ class multiline_constraint_structure(structure.Rule): This rule checks the structure of multiline constraints. ''' - def __init__(self, name, identifier): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + structure.Rule.__init__(self) self.phase = 1 self.lTokenPairs = None self.configuration_documentation_link = 'configuring_multiline_constraint_rules_link' diff --git a/vsg/rules/multiline_procedure_call_structure.py b/vsg/rules/multiline_procedure_call_structure.py index 4d3df6a0..7764ecea 100644 --- a/vsg/rules/multiline_procedure_call_structure.py +++ b/vsg/rules/multiline_procedure_call_structure.py @@ -16,8 +16,8 @@ class multiline_procedure_call_structure(structure.Rule): This rule checks the structure of multiline constraints. ''' - def __init__(self, name, identifier): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + structure.Rule.__init__(self) self.phase = 1 self.lTokenPairs = None self.configuration_documentation_link = None diff --git a/vsg/rules/multiline_simple_structure.py b/vsg/rules/multiline_simple_structure.py index 5cbbc460..2f355f6d 100644 --- a/vsg/rules/multiline_simple_structure.py +++ b/vsg/rules/multiline_simple_structure.py @@ -39,8 +39,8 @@ class multiline_simple_structure(structure.Rule): '0'; ''' - def __init__(self, name, identifier, lTokenPairs): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokenPairs): + structure.Rule.__init__(self) self.lTokenPairs = lTokenPairs self.new_line_after_assign = 'no' diff --git a/vsg/rules/multiline_structure.py b/vsg/rules/multiline_structure.py index 015d5085..58e5ff63 100644 --- a/vsg/rules/multiline_structure.py +++ b/vsg/rules/multiline_structure.py @@ -34,8 +34,8 @@ class multiline_structure(structure.Rule): ); ''' - def __init__(self, name, identifier, lTokenPairs): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokenPairs): + structure.Rule.__init__(self) self.phase = 1 self.lTokenPairs = lTokenPairs self.bExcludeLastToken = True diff --git a/vsg/rules/multiline_subprogram_specification_structure.py b/vsg/rules/multiline_subprogram_specification_structure.py index b1e82505..e5e10b5d 100644 --- a/vsg/rules/multiline_subprogram_specification_structure.py +++ b/vsg/rules/multiline_subprogram_specification_structure.py @@ -16,8 +16,8 @@ class multiline_subprogram_specification_structure(structure.Rule): This rule checks the structure of multiline subprogram specifications. ''' - def __init__(self, name, identifier): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + structure.Rule.__init__(self) self.phase = 1 self.lTokenPairs = None self.configuration_documentation_link = 'configuring_subprogram_specification_statement_rules_link' diff --git a/vsg/rules/n_spaces_before_and_after_tokens.py b/vsg/rules/n_spaces_before_and_after_tokens.py index 47f7658b..9b153771 100644 --- a/vsg/rules/n_spaces_before_and_after_tokens.py +++ b/vsg/rules/n_spaces_before_and_after_tokens.py @@ -25,8 +25,8 @@ class n_spaces_before_and_after_tokens(whitespace.Rule): The tokens to check for a single space between ''' - def __init__(self, name, identifier, iSpaces, lTokens, bNIsMinimum=False): - whitespace.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, iSpaces, lTokens, bNIsMinimum=False): + whitespace.Rule.__init__(self) self.iSpaces = iSpaces self.lTokens = lTokens self.bNIsMinimum = bNIsMinimum diff --git a/vsg/rules/number_of_lines_between_tokens.py b/vsg/rules/number_of_lines_between_tokens.py index bdd032b2..4e25023c 100644 --- a/vsg/rules/number_of_lines_between_tokens.py +++ b/vsg/rules/number_of_lines_between_tokens.py @@ -18,8 +18,8 @@ class number_of_lines_between_tokens(length.Rule): ''' - def __init__(self, name, identifier, oLeftToken, oRightToken, iLines): - length.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, oLeftToken, oRightToken, iLines): + length.Rule.__init__(self) self.length = iLines self.oLeftToken = oLeftToken self.oRightToken = oRightToken diff --git a/vsg/rules/package/rule_001.py b/vsg/rules/package/rule_001.py index c65ed6eb..15cb39e9 100644 --- a/vsg/rules/package/rule_001.py +++ b/vsg/rules/package/rule_001.py @@ -29,4 +29,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'package', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/package/rule_002.py b/vsg/rules/package/rule_002.py index 31eae713..46c6688f 100644 --- a/vsg/rules/package/rule_002.py +++ b/vsg/rules/package/rule_002.py @@ -27,4 +27,4 @@ class rule_002(Rule): package FIFO_PKG is ''' def __init__(self): - Rule.__init__(self, 'package', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/package/rule_003.py b/vsg/rules/package/rule_003.py index c825cad6..f8c0261a 100644 --- a/vsg/rules/package/rule_003.py +++ b/vsg/rules/package/rule_003.py @@ -32,5 +32,5 @@ class rule_003(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'package', '003', lTokens) + previous_line.__init__(self, lTokens) self.style = 'no_code' diff --git a/vsg/rules/package/rule_004.py b/vsg/rules/package/rule_004.py index 48a13127..b1cbea69 100644 --- a/vsg/rules/package/rule_004.py +++ b/vsg/rules/package/rule_004.py @@ -27,5 +27,5 @@ class rule_004(token_case): ''' def __init__(self): - token_case.__init__(self, 'package', '004', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package/rule_005.py b/vsg/rules/package/rule_005.py index c64df50c..e050d6c3 100644 --- a/vsg/rules/package/rule_005.py +++ b/vsg/rules/package/rule_005.py @@ -23,5 +23,5 @@ class rule_005(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'package', '005', token.identifier, token.is_keyword) + move_token_next_to_another_token.__init__(self, token.identifier, token.is_keyword) self.solution = 'Ensure *is* keyword is on the same line as the "package" keyword.' diff --git a/vsg/rules/package/rule_006.py b/vsg/rules/package/rule_006.py index 79584285..304ca622 100644 --- a/vsg/rules/package/rule_006.py +++ b/vsg/rules/package/rule_006.py @@ -27,5 +27,5 @@ class rule_006(token_case): ''' def __init__(self): - token_case.__init__(self, 'package', '006', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package/rule_007.py b/vsg/rules/package/rule_007.py index 9156fa57..d29e5ea5 100644 --- a/vsg/rules/package/rule_007.py +++ b/vsg/rules/package/rule_007.py @@ -24,6 +24,6 @@ class rule_007(insert_token_right_of_token_if_it_does_not_exist_before_token): ''' def __init__(self): - insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, 'package', '007', token.end_package_keyword('package'), token.end_keyword, token.semicolon) + insert_token_right_of_token_if_it_does_not_exist_before_token.__init__(self, token.end_package_keyword('package'), token.end_keyword, token.semicolon) self.solution = '*package* keyword' self.groups.append('structure::optional') diff --git a/vsg/rules/package/rule_008.py b/vsg/rules/package/rule_008.py index 547f5e71..eb5c2aae 100644 --- a/vsg/rules/package/rule_008.py +++ b/vsg/rules/package/rule_008.py @@ -27,5 +27,5 @@ class rule_008(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'package', '008', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/package/rule_009.py b/vsg/rules/package/rule_009.py index 305a5dba..6b275681 100644 --- a/vsg/rules/package/rule_009.py +++ b/vsg/rules/package/rule_009.py @@ -27,4 +27,4 @@ class rule_009(Rule): end package FIFO_PKG; ''' def __init__(self): - Rule.__init__(self, 'package', '009', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/package/rule_010.py b/vsg/rules/package/rule_010.py index 9b282052..4e2f8394 100644 --- a/vsg/rules/package/rule_010.py +++ b/vsg/rules/package/rule_010.py @@ -27,5 +27,5 @@ class rule_010(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'package', '010', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/package/rule_011.py b/vsg/rules/package/rule_011.py index 47919539..ee867786 100644 --- a/vsg/rules/package/rule_011.py +++ b/vsg/rules/package/rule_011.py @@ -30,4 +30,4 @@ class rule_011(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'package', '011', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/package/rule_012.py b/vsg/rules/package/rule_012.py index b61e273f..50fea760 100644 --- a/vsg/rules/package/rule_012.py +++ b/vsg/rules/package/rule_012.py @@ -30,4 +30,4 @@ class rule_012(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'package', '012', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) diff --git a/vsg/rules/package/rule_013.py b/vsg/rules/package/rule_013.py index 04899ee8..b94606a4 100644 --- a/vsg/rules/package/rule_013.py +++ b/vsg/rules/package/rule_013.py @@ -27,5 +27,5 @@ class rule_013(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'package', '013', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package/rule_014.py b/vsg/rules/package/rule_014.py index 7d3ca263..666f972b 100644 --- a/vsg/rules/package/rule_014.py +++ b/vsg/rules/package/rule_014.py @@ -24,6 +24,6 @@ class rule_014(insert_token_left_of_token_if_it_does_not_exist_between_tokens_us ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, 'package', '014', token.end_package_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) + insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, token.end_package_simple_name, token.semicolon, token.end_keyword, token.semicolon, token.identifier) self.solution = 'package name.' self.groups.append('structure::optional') diff --git a/vsg/rules/package/rule_015.py b/vsg/rules/package/rule_015.py index a80116e8..8af4a97b 100644 --- a/vsg/rules/package/rule_015.py +++ b/vsg/rules/package/rule_015.py @@ -29,4 +29,4 @@ class rule_015(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'package', '015', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/package/rule_016.py b/vsg/rules/package/rule_016.py index bde3259f..6b1f182c 100644 --- a/vsg/rules/package/rule_016.py +++ b/vsg/rules/package/rule_016.py @@ -29,5 +29,5 @@ class rule_016(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'package', '016', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_pkg'] diff --git a/vsg/rules/package/rule_017.py b/vsg/rules/package/rule_017.py index 8e5d98f8..e0e86da4 100644 --- a/vsg/rules/package/rule_017.py +++ b/vsg/rules/package/rule_017.py @@ -29,6 +29,6 @@ class rule_017(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'package', '017', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['pkg_'] self.solution = 'Package identifier' diff --git a/vsg/rules/package/rule_018.py b/vsg/rules/package/rule_018.py index 47906d3c..0bf8c61e 100644 --- a/vsg/rules/package/rule_018.py +++ b/vsg/rules/package/rule_018.py @@ -27,5 +27,5 @@ class rule_018(token_case): ''' def __init__(self): - token_case.__init__(self, 'package', '018', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package/rule_019.py b/vsg/rules/package/rule_019.py index f696dcc5..0be8574f 100644 --- a/vsg/rules/package/rule_019.py +++ b/vsg/rules/package/rule_019.py @@ -41,7 +41,7 @@ class rule_019(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'package', '019', lAlign, token.package_declaration.is_keyword, token.package_declaration.end_keyword, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, token.package_declaration.is_keyword, token.package_declaration.end_keyword, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/package/rule_400.py b/vsg/rules/package/rule_400.py index 7083f192..54f1d213 100644 --- a/vsg/rules/package/rule_400.py +++ b/vsg/rules/package/rule_400.py @@ -50,7 +50,7 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'package', '400', lAlign, oStart, oEnd, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'Align colon.' self.subphase = 3 self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/package/rule_401.py b/vsg/rules/package/rule_401.py index 4d5ebac3..96910cbe 100644 --- a/vsg/rules/package/rule_401.py +++ b/vsg/rules/package/rule_401.py @@ -46,6 +46,6 @@ class rule_401(align_tokens_in_region_between_tokens_skipping_lines_starting_wit ''' def __init__(self): - align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, 'package', '401', lAlign, oStart, oEnd, lSkip) + align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, lAlign, oStart, oEnd, lSkip) self.solution = 'Align comments.' self.subphase = 4 diff --git a/vsg/rules/package/rule_402.py b/vsg/rules/package/rule_402.py index 61839b4d..fc92f275 100644 --- a/vsg/rules/package/rule_402.py +++ b/vsg/rules/package/rule_402.py @@ -37,6 +37,6 @@ class rule_402(Rule): ''' def __init__(self): - Rule.__init__(self, 'package', '402', lAlign, oStart, oEnd, lUnless) + Rule.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'Align colon.' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/package_body/rule_001.py b/vsg/rules/package_body/rule_001.py index 871f0a15..266c2c5c 100644 --- a/vsg/rules/package_body/rule_001.py +++ b/vsg/rules/package_body/rule_001.py @@ -23,5 +23,5 @@ class rule_001(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'package_body', '001', token.package_simple_name, token.is_keyword) + move_token_next_to_another_token.__init__(self, token.package_simple_name, token.is_keyword) self.solution = 'Ensure *is* keyword is on the same line as the "package" keyword.' diff --git a/vsg/rules/package_body/rule_002.py b/vsg/rules/package_body/rule_002.py index 79e496f6..85539817 100644 --- a/vsg/rules/package_body/rule_002.py +++ b/vsg/rules/package_body/rule_002.py @@ -31,6 +31,6 @@ class rule_002(insert_tokens_right_of_token_if_it_does_not_exist_before_token): ''' def __init__(self): - insert_tokens_right_of_token_if_it_does_not_exist_before_token.__init__(self, 'package_body', '002', lInsertTokens, token.end_keyword, token.semicolon) + insert_tokens_right_of_token_if_it_does_not_exist_before_token.__init__(self, lInsertTokens, token.end_keyword, token.semicolon) self.solution = '*package body* keywords' self.groups.append('structure::optional') diff --git a/vsg/rules/package_body/rule_003.py b/vsg/rules/package_body/rule_003.py index e4d7a8a5..6f91d8a8 100644 --- a/vsg/rules/package_body/rule_003.py +++ b/vsg/rules/package_body/rule_003.py @@ -33,6 +33,6 @@ class rule_003(insert_token_left_of_token_if_it_does_not_exist_between_tokens_us ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, 'package_body', '003', oInsertToken, oLeftToken, oStartToken, oEndToken, oValueToken) + insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, oInsertToken, oLeftToken, oStartToken, oEndToken, oValueToken) self.solution = 'package name.' self.groups.append('structure::optional') diff --git a/vsg/rules/package_body/rule_100.py b/vsg/rules/package_body/rule_100.py index 4c4b3bea..d4c137bc 100644 --- a/vsg/rules/package_body/rule_100.py +++ b/vsg/rules/package_body/rule_100.py @@ -28,4 +28,4 @@ class rule_100(Rule): package body FIFO_PKG is ''' def __init__(self): - Rule.__init__(self, 'package_body', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_101.py b/vsg/rules/package_body/rule_101.py index a9638569..6df0ef98 100644 --- a/vsg/rules/package_body/rule_101.py +++ b/vsg/rules/package_body/rule_101.py @@ -28,4 +28,4 @@ class rule_101(Rule): end package body FIFO_PKG; ''' def __init__(self): - Rule.__init__(self, 'package_body', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_200.py b/vsg/rules/package_body/rule_200.py index 22bd64ff..98f9379e 100644 --- a/vsg/rules/package_body/rule_200.py +++ b/vsg/rules/package_body/rule_200.py @@ -30,4 +30,4 @@ class rule_200(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'package_body', '200', lTokens) + previous_line.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_201.py b/vsg/rules/package_body/rule_201.py index c8230ac3..a9fd9e3f 100644 --- a/vsg/rules/package_body/rule_201.py +++ b/vsg/rules/package_body/rule_201.py @@ -30,4 +30,4 @@ class rule_201(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'package_body', '201', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_202.py b/vsg/rules/package_body/rule_202.py index 1a333085..598990cd 100644 --- a/vsg/rules/package_body/rule_202.py +++ b/vsg/rules/package_body/rule_202.py @@ -30,4 +30,4 @@ class rule_202(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'package_body', '202', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_203.py b/vsg/rules/package_body/rule_203.py index cb8682da..2d375ac5 100644 --- a/vsg/rules/package_body/rule_203.py +++ b/vsg/rules/package_body/rule_203.py @@ -30,4 +30,4 @@ class rule_203(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'package_body', '203', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_300.py b/vsg/rules/package_body/rule_300.py index aa0f69ac..84d01f97 100644 --- a/vsg/rules/package_body/rule_300.py +++ b/vsg/rules/package_body/rule_300.py @@ -29,4 +29,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'package_body', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_301.py b/vsg/rules/package_body/rule_301.py index 8da4c09d..6f2bf3ed 100644 --- a/vsg/rules/package_body/rule_301.py +++ b/vsg/rules/package_body/rule_301.py @@ -29,4 +29,4 @@ class rule_301(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'package_body', '301', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/package_body/rule_400.py b/vsg/rules/package_body/rule_400.py index 8c606e0a..82b7fb35 100644 --- a/vsg/rules/package_body/rule_400.py +++ b/vsg/rules/package_body/rule_400.py @@ -38,7 +38,7 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'package_body', '400', lAlign, token.package_body.is_keyword, token.package_body.end_keyword, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, token.package_body.is_keyword, token.package_body.end_keyword, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/package_body/rule_401.py b/vsg/rules/package_body/rule_401.py index 003e7b57..49af9419 100644 --- a/vsg/rules/package_body/rule_401.py +++ b/vsg/rules/package_body/rule_401.py @@ -50,7 +50,7 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'package_body', '401', lAlign, oStart, oEnd, lUnless) + Rule.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'Align colon.' self.subphase = 3 self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/package_body/rule_402.py b/vsg/rules/package_body/rule_402.py index 23264756..66cc20fa 100644 --- a/vsg/rules/package_body/rule_402.py +++ b/vsg/rules/package_body/rule_402.py @@ -34,6 +34,6 @@ class rule_402(Rule): ''' def __init__(self): - Rule.__init__(self, 'package_body', '402', lAlign, token.package_body.is_keyword, token.package_body.end_keyword, lUnless) + Rule.__init__(self, lAlign, token.package_body.is_keyword, token.package_body.end_keyword, lUnless) self.solution = 'Align colon.' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/package_body/rule_500.py b/vsg/rules/package_body/rule_500.py index d5698a2b..bd47a6dd 100644 --- a/vsg/rules/package_body/rule_500.py +++ b/vsg/rules/package_body/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'package_body', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package_body/rule_501.py b/vsg/rules/package_body/rule_501.py index 2d7c5085..f053fe89 100644 --- a/vsg/rules/package_body/rule_501.py +++ b/vsg/rules/package_body/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'package_body', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package_body/rule_502.py b/vsg/rules/package_body/rule_502.py index 019ee2d1..a400c5ab 100644 --- a/vsg/rules/package_body/rule_502.py +++ b/vsg/rules/package_body/rule_502.py @@ -27,5 +27,5 @@ class rule_502(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'package_body', '502', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/package_body/rule_503.py b/vsg/rules/package_body/rule_503.py index 067b8207..43dc005f 100644 --- a/vsg/rules/package_body/rule_503.py +++ b/vsg/rules/package_body/rule_503.py @@ -27,5 +27,5 @@ class rule_503(token_case): ''' def __init__(self): - token_case.__init__(self, 'package_body', '503', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package_body/rule_504.py b/vsg/rules/package_body/rule_504.py index 468c77ea..edad3505 100644 --- a/vsg/rules/package_body/rule_504.py +++ b/vsg/rules/package_body/rule_504.py @@ -27,5 +27,5 @@ class rule_504(token_case): ''' def __init__(self): - token_case.__init__(self, 'package_body', '504', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package_body/rule_505.py b/vsg/rules/package_body/rule_505.py index 20188d21..79383512 100644 --- a/vsg/rules/package_body/rule_505.py +++ b/vsg/rules/package_body/rule_505.py @@ -27,5 +27,5 @@ class rule_505(token_case): ''' def __init__(self): - token_case.__init__(self, 'package_body', '505', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package_body/rule_506.py b/vsg/rules/package_body/rule_506.py index 61c307f6..32154185 100644 --- a/vsg/rules/package_body/rule_506.py +++ b/vsg/rules/package_body/rule_506.py @@ -27,5 +27,5 @@ class rule_506(token_case): ''' def __init__(self): - token_case.__init__(self, 'package_body', '506', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/package_body/rule_507.py b/vsg/rules/package_body/rule_507.py index fb0ee671..29d5c0fa 100644 --- a/vsg/rules/package_body/rule_507.py +++ b/vsg/rules/package_body/rule_507.py @@ -27,5 +27,5 @@ class rule_507(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'package_body', '507', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/package_body/rule_600.py b/vsg/rules/package_body/rule_600.py index 3dfb6c8f..d8c2b3f9 100644 --- a/vsg/rules/package_body/rule_600.py +++ b/vsg/rules/package_body/rule_600.py @@ -29,5 +29,5 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'package_body', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_pkg'] diff --git a/vsg/rules/package_body/rule_601.py b/vsg/rules/package_body/rule_601.py index 4d77826c..3c5be571 100644 --- a/vsg/rules/package_body/rule_601.py +++ b/vsg/rules/package_body/rule_601.py @@ -29,6 +29,6 @@ class rule_601(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'package_body', '601', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['pkg_'] self.solution = 'Package identifier' diff --git a/vsg/rules/port/rule_001.py b/vsg/rules/port/rule_001.py index fbabe937..f409576d 100644 --- a/vsg/rules/port/rule_001.py +++ b/vsg/rules/port/rule_001.py @@ -29,5 +29,5 @@ class rule_001(blank_line_above_line_starting_with_token): port ( ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'port', '001', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) self.style = 'no_blank_line' diff --git a/vsg/rules/port/rule_002.py b/vsg/rules/port/rule_002.py index 2a9873fd..b9df7013 100644 --- a/vsg/rules/port/rule_002.py +++ b/vsg/rules/port/rule_002.py @@ -27,4 +27,4 @@ class rule_002(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'port', '002', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/port/rule_003.py b/vsg/rules/port/rule_003.py index 97926f1d..1c63f804 100644 --- a/vsg/rules/port/rule_003.py +++ b/vsg/rules/port/rule_003.py @@ -30,5 +30,5 @@ class rule_003(Rule): port ( ''' def __init__(self): - Rule.__init__(self, 'port', '003', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Change spacing between "port" and "(" to one space.' diff --git a/vsg/rules/port/rule_004.py b/vsg/rules/port/rule_004.py index aa84f1b0..0cfe0086 100644 --- a/vsg/rules/port/rule_004.py +++ b/vsg/rules/port/rule_004.py @@ -44,4 +44,4 @@ class rule_004(token_indent_between_tokens): ''' def __init__(self): - token_indent_between_tokens.__init__(self, 'port', '004', lTokens, oStart, oEnd) + token_indent_between_tokens.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/port/rule_005.py b/vsg/rules/port/rule_005.py index 0225fa39..f85a7e0f 100644 --- a/vsg/rules/port/rule_005.py +++ b/vsg/rules/port/rule_005.py @@ -8,5 +8,5 @@ class rule_005(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'port', '005') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been included in rules port_007, port_008 and port_009.') diff --git a/vsg/rules/port/rule_006.py b/vsg/rules/port/rule_006.py index 72109085..ca5bb3f2 100644 --- a/vsg/rules/port/rule_006.py +++ b/vsg/rules/port/rule_006.py @@ -8,5 +8,5 @@ class rule_006(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'port', '006') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been included in rule port_005.') diff --git a/vsg/rules/port/rule_007.py b/vsg/rules/port/rule_007.py index 26658c82..ab5f3734 100644 --- a/vsg/rules/port/rule_007.py +++ b/vsg/rules/port/rule_007.py @@ -36,7 +36,7 @@ class rule_007(Rule): ); ''' def __init__(self): - Rule.__init__(self, 'port', '007', lTokens, lBetween) + Rule.__init__(self, lTokens, lBetween) self.spaces_before = 1 self.spaces_after = 4 self.configuration_documentation_link = 'configuring_port_mode_alignment_link' diff --git a/vsg/rules/port/rule_008.py b/vsg/rules/port/rule_008.py index 915c140c..2dbfe285 100644 --- a/vsg/rules/port/rule_008.py +++ b/vsg/rules/port/rule_008.py @@ -36,7 +36,7 @@ class rule_008(Rule): ); ''' def __init__(self): - Rule.__init__(self, 'port', '008', lTokens, lBetween) + Rule.__init__(self, lTokens, lBetween) self.spaces_before = 1 self.spaces_after = 3 self.configuration_documentation_link = 'configuring_port_mode_alignment_link' diff --git a/vsg/rules/port/rule_009.py b/vsg/rules/port/rule_009.py index d183c602..4679cdd8 100644 --- a/vsg/rules/port/rule_009.py +++ b/vsg/rules/port/rule_009.py @@ -36,7 +36,7 @@ class rule_009(Rule): ); ''' def __init__(self): - Rule.__init__(self, 'port', '009', lTokens, lBetween) + Rule.__init__(self, lTokens, lBetween) self.spaces_before = 1 self.spaces_after = 1 self.configuration_documentation_link = 'configuring_port_mode_alignment_link' diff --git a/vsg/rules/port/rule_010.py b/vsg/rules/port/rule_010.py index 560176e3..cc01a5b6 100644 --- a/vsg/rules/port/rule_010.py +++ b/vsg/rules/port/rule_010.py @@ -40,7 +40,7 @@ class rule_010(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'port', '010', lTokens, token.port_clause.open_parenthesis, token.port_clause.close_parenthesis) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, token.port_clause.open_parenthesis, token.port_clause.close_parenthesis) self.configuration.append('prefix_exceptions') self.configuration.append('suffix_exceptions') self.configuration.append('case_exceptions') diff --git a/vsg/rules/port/rule_011.py b/vsg/rules/port/rule_011.py index 8fd0517c..e43b5bd1 100644 --- a/vsg/rules/port/rule_011.py +++ b/vsg/rules/port/rule_011.py @@ -42,5 +42,5 @@ class rule_011(token_prefix_between_tokens): ''' def __init__(self): - token_prefix_between_tokens.__init__(self, 'port', '011', lTokens, token.port_clause.open_parenthesis, token.port_clause.close_parenthesis) + token_prefix_between_tokens.__init__(self, lTokens, token.port_clause.open_parenthesis, token.port_clause.close_parenthesis) self.prefixes = ['i_', 'o_', 'io_'] diff --git a/vsg/rules/port/rule_012.py b/vsg/rules/port/rule_012.py index e73c6cfe..45bdf5d1 100644 --- a/vsg/rules/port/rule_012.py +++ b/vsg/rules/port/rule_012.py @@ -42,7 +42,7 @@ class rule_012(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, name='port', identifier='012') + structure.Rule.__init__(self) self.solution = 'Remove assignment' self.lTokens = lTokens self.oStart = token.port_clause.open_parenthesis diff --git a/vsg/rules/port/rule_013.py b/vsg/rules/port/rule_013.py index 50d26350..471e85f9 100644 --- a/vsg/rules/port/rule_013.py +++ b/vsg/rules/port/rule_013.py @@ -36,5 +36,5 @@ class rule_013(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '013', lTokens, lTokenPairs) + Rule.__init__(self, lTokens, lTokenPairs) self.solution = 'Move multiple ports to their own lines.' diff --git a/vsg/rules/port/rule_014.py b/vsg/rules/port/rule_014.py index 38b85abb..cc332f28 100644 --- a/vsg/rules/port/rule_014.py +++ b/vsg/rules/port/rule_014.py @@ -37,5 +37,5 @@ class rule_014(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '014', oToken) + Rule.__init__(self, oToken) self.preserve_comment = True diff --git a/vsg/rules/port/rule_015.py b/vsg/rules/port/rule_015.py index ac8bb81a..f49c2527 100644 --- a/vsg/rules/port/rule_015.py +++ b/vsg/rules/port/rule_015.py @@ -35,4 +35,4 @@ class rule_015(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'port', '015', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/port/rule_016.py b/vsg/rules/port/rule_016.py index 1eb2759a..71925e58 100644 --- a/vsg/rules/port/rule_016.py +++ b/vsg/rules/port/rule_016.py @@ -34,5 +34,5 @@ class rule_016(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'port', '016', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move port parameter to the next line.' diff --git a/vsg/rules/port/rule_017.py b/vsg/rules/port/rule_017.py index 33de1772..2c107f1c 100644 --- a/vsg/rules/port/rule_017.py +++ b/vsg/rules/port/rule_017.py @@ -27,5 +27,5 @@ class rule_017(token_case): ''' def __init__(self): - token_case.__init__(self, 'port', '017', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/port/rule_018.py b/vsg/rules/port/rule_018.py index ac283c10..e6eed09b 100644 --- a/vsg/rules/port/rule_018.py +++ b/vsg/rules/port/rule_018.py @@ -44,6 +44,6 @@ class rule_018(token_case_n_token_after_tokens_between_tokens): ''' def __init__(self): - token_case_n_token_after_tokens_between_tokens.__init__(self, 'port', '018', 2, lTokens, oStart, oEnd, True) + token_case_n_token_after_tokens_between_tokens.__init__(self, 2, lTokens, oStart, oEnd, True) self.disabled = True self.groups.append('case::keyword') diff --git a/vsg/rules/port/rule_019.py b/vsg/rules/port/rule_019.py index ba59417e..2356214e 100644 --- a/vsg/rules/port/rule_019.py +++ b/vsg/rules/port/rule_019.py @@ -44,5 +44,5 @@ class rule_019(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'port', '019', lTokens, oStart, oEnd) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStart, oEnd) self.groups.append('case::keyword') diff --git a/vsg/rules/port/rule_020.py b/vsg/rules/port/rule_020.py index b3e766d7..137ba813 100644 --- a/vsg/rules/port/rule_020.py +++ b/vsg/rules/port/rule_020.py @@ -43,5 +43,5 @@ class rule_020(Rule): ); ''' def __init__(self): - Rule.__init__(self, 'port', '020', lTokens, oStart, oEnd) + Rule.__init__(self, lTokens, oStart, oEnd) self.number_of_spaces = '>=1' diff --git a/vsg/rules/port/rule_021.py b/vsg/rules/port/rule_021.py index 917f9ad8..d688a89d 100644 --- a/vsg/rules/port/rule_021.py +++ b/vsg/rules/port/rule_021.py @@ -23,5 +23,5 @@ class rule_021(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'port', '021', token.port_keyword, token.open_parenthesis) + move_token_next_to_another_token.__init__(self, token.port_keyword, token.open_parenthesis) self.solution = 'Move the ( to the same line as the *port* keyword.' diff --git a/vsg/rules/port/rule_022.py b/vsg/rules/port/rule_022.py index c2600a7d..3ca574ac 100644 --- a/vsg/rules/port/rule_022.py +++ b/vsg/rules/port/rule_022.py @@ -36,6 +36,6 @@ class rule_022(remove_excessive_blank_lines_below_line_ending_with_token): ); ''' def __init__(self): - remove_excessive_blank_lines_below_line_ending_with_token.__init__(self, 'port', '022', lTokens, iAllow=0) + remove_excessive_blank_lines_below_line_ending_with_token.__init__(self, lTokens, iAllow=0) self.solution = 'Remove blank lines below *port* keyword.' self.configuration_documentation_link = None diff --git a/vsg/rules/port/rule_023.py b/vsg/rules/port/rule_023.py index fa2f704a..5ac03463 100644 --- a/vsg/rules/port/rule_023.py +++ b/vsg/rules/port/rule_023.py @@ -36,7 +36,7 @@ class rule_023(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, name='port', identifier='023') + structure.Rule.__init__(self) self.solution = 'Add mode' self.fixable = False self.configuration_documentation_link = None diff --git a/vsg/rules/port/rule_024.py b/vsg/rules/port/rule_024.py index 6f463a87..f76125bb 100644 --- a/vsg/rules/port/rule_024.py +++ b/vsg/rules/port/rule_024.py @@ -35,6 +35,6 @@ class rule_024(remove_excessive_blank_lines_above_line_starting_with_token): ); ''' def __init__(self): - remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, 'port', '024', lTokens, iAllow=0) + remove_excessive_blank_lines_above_line_starting_with_token.__init__(self, lTokens, iAllow=0) self.solution = 'Remove blank lines above ).' self.configuration_documentation_link = None diff --git a/vsg/rules/port/rule_025.py b/vsg/rules/port/rule_025.py index 2493a68e..d540063f 100644 --- a/vsg/rules/port/rule_025.py +++ b/vsg/rules/port/rule_025.py @@ -41,5 +41,5 @@ class rule_025(token_suffix_between_tokens): ''' def __init__(self): - token_suffix_between_tokens.__init__(self, 'port', '025', lTokens, token.port_clause.open_parenthesis, token.port_clause.close_parenthesis) + token_suffix_between_tokens.__init__(self, lTokens, token.port_clause.open_parenthesis, token.port_clause.close_parenthesis) self.suffixes = ['_i', '_o', '_io'] diff --git a/vsg/rules/port/rule_026.py b/vsg/rules/port/rule_026.py index 33834bbf..05403aae 100644 --- a/vsg/rules/port/rule_026.py +++ b/vsg/rules/port/rule_026.py @@ -40,7 +40,7 @@ class rule_026(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, name='port', identifier='026') + structure.Rule.__init__(self) self.subphase = 2 self.configuration_documentation_link = None diff --git a/vsg/rules/port/rule_027.py b/vsg/rules/port/rule_027.py index f09e1a4e..eec4c08c 100644 --- a/vsg/rules/port/rule_027.py +++ b/vsg/rules/port/rule_027.py @@ -32,5 +32,5 @@ class rule_027(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '027', lTokens) + Rule.__init__(self, lTokens) self.bInsertWhitespace = False diff --git a/vsg/rules/port/rule_600.py b/vsg/rules/port/rule_600.py index 44c4bd06..652dff04 100644 --- a/vsg/rules/port/rule_600.py +++ b/vsg/rules/port/rule_600.py @@ -37,7 +37,7 @@ class rule_600(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '600', lTokens) + Rule.__init__(self, lTokens) self.prefixes = ['i_'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_601.py b/vsg/rules/port/rule_601.py index fb65d9cd..07f34382 100644 --- a/vsg/rules/port/rule_601.py +++ b/vsg/rules/port/rule_601.py @@ -37,7 +37,7 @@ class rule_601(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '601', lTokens) + Rule.__init__(self, lTokens) self.prefixes = ['o_'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_602.py b/vsg/rules/port/rule_602.py index 3eeff1ab..1c42f339 100644 --- a/vsg/rules/port/rule_602.py +++ b/vsg/rules/port/rule_602.py @@ -37,7 +37,7 @@ class rule_602(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '602', lTokens) + Rule.__init__(self, lTokens) self.prefixes = ['io_'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_603.py b/vsg/rules/port/rule_603.py index e2a007b3..b4abe15c 100644 --- a/vsg/rules/port/rule_603.py +++ b/vsg/rules/port/rule_603.py @@ -37,7 +37,7 @@ class rule_603(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '603', lTokens) + Rule.__init__(self, lTokens) self.prefixes = ['b_'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_604.py b/vsg/rules/port/rule_604.py index ea288e51..98ad739f 100644 --- a/vsg/rules/port/rule_604.py +++ b/vsg/rules/port/rule_604.py @@ -37,7 +37,7 @@ class rule_604(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '604', lTokens) + Rule.__init__(self, lTokens) self.prefixes = ['l_'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_605.py b/vsg/rules/port/rule_605.py index 647cd69b..9a151c0c 100644 --- a/vsg/rules/port/rule_605.py +++ b/vsg/rules/port/rule_605.py @@ -37,7 +37,7 @@ class rule_605(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '605', lTokens) + Rule.__init__(self, lTokens) self.suffixes = ['_i'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_606.py b/vsg/rules/port/rule_606.py index 005981c5..020af12f 100644 --- a/vsg/rules/port/rule_606.py +++ b/vsg/rules/port/rule_606.py @@ -36,7 +36,7 @@ class rule_606(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '606', lTokens) + Rule.__init__(self, lTokens) self.suffixes = ['_o'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_607.py b/vsg/rules/port/rule_607.py index 9c4f8103..fbc06c3e 100644 --- a/vsg/rules/port/rule_607.py +++ b/vsg/rules/port/rule_607.py @@ -36,7 +36,7 @@ class rule_607(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '607', lTokens) + Rule.__init__(self, lTokens) self.suffixes = ['_io'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_608.py b/vsg/rules/port/rule_608.py index 23f394a4..4fd3d093 100644 --- a/vsg/rules/port/rule_608.py +++ b/vsg/rules/port/rule_608.py @@ -36,7 +36,7 @@ class rule_608(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '608', lTokens) + Rule.__init__(self, lTokens) self.suffixes = ['_b'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port/rule_609.py b/vsg/rules/port/rule_609.py index a187f050..6d99b7a3 100644 --- a/vsg/rules/port/rule_609.py +++ b/vsg/rules/port/rule_609.py @@ -36,7 +36,7 @@ class rule_609(Rule): ''' def __init__(self): - Rule.__init__(self, 'port', '609', lTokens) + Rule.__init__(self, lTokens) self.suffixes = ['_l'] def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/port_map/rule_001.py b/vsg/rules/port_map/rule_001.py index f8d08367..8c198154 100644 --- a/vsg/rules/port_map/rule_001.py +++ b/vsg/rules/port_map/rule_001.py @@ -31,5 +31,5 @@ class rule_001(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'port_map', '001', lTokens, oStart, oEnd) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStart, oEnd) self.groups.append('case::keyword') diff --git a/vsg/rules/port_map/rule_002.py b/vsg/rules/port_map/rule_002.py index ee4301f7..8c7c4497 100644 --- a/vsg/rules/port_map/rule_002.py +++ b/vsg/rules/port_map/rule_002.py @@ -38,7 +38,7 @@ class rule_002(token_case_formal_part_of_association_element_in_map_between_toke ); ''' def __init__(self): - token_case_formal_part_of_association_element_in_map_between_tokens.__init__(self, 'port_map', '002', sMapType, oStart, oEnd) + token_case_formal_part_of_association_element_in_map_between_tokens.__init__(self, sMapType, oStart, oEnd) self.configuration.append('prefix_exceptions') self.configuration.append('suffix_exceptions') self.configuration.append('case_exceptions') diff --git a/vsg/rules/port_map/rule_003.py b/vsg/rules/port_map/rule_003.py index f86d409e..cf1ea34e 100644 --- a/vsg/rules/port_map/rule_003.py +++ b/vsg/rules/port_map/rule_003.py @@ -34,5 +34,5 @@ class rule_003(move_token_next_to_another_token): ''' def __init__(self): - move_token_next_to_another_token.__init__(self, 'port_map', '003', token.map_keyword, token.open_parenthesis) + move_token_next_to_another_token.__init__(self, token.map_keyword, token.open_parenthesis) self.solution = 'Move the ( to the same line as the *port map* keywords.' diff --git a/vsg/rules/port_map/rule_004.py b/vsg/rules/port_map/rule_004.py index 1bea6804..7fb30418 100644 --- a/vsg/rules/port_map/rule_004.py +++ b/vsg/rules/port_map/rule_004.py @@ -31,4 +31,4 @@ class rule_004(Rule): ''' def __init__(self): - Rule.__init__(self, 'port_map', '004', oToken) + Rule.__init__(self, oToken) diff --git a/vsg/rules/port_map/rule_005.py b/vsg/rules/port_map/rule_005.py index 32dcd77d..94fe58e0 100644 --- a/vsg/rules/port_map/rule_005.py +++ b/vsg/rules/port_map/rule_005.py @@ -32,5 +32,5 @@ class rule_005(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'port_map', '005', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move port assignment to it\'s own line.' diff --git a/vsg/rules/port_map/rule_007.py b/vsg/rules/port_map/rule_007.py index 563aa1a4..d0824831 100644 --- a/vsg/rules/port_map/rule_007.py +++ b/vsg/rules/port_map/rule_007.py @@ -39,4 +39,4 @@ class rule_007(Rule): ); ''' def __init__(self): - Rule.__init__(self, 'port_map', '007', lTokens, lStart, lEnd) + Rule.__init__(self, lTokens, lStart, lEnd) diff --git a/vsg/rules/port_map/rule_008.py b/vsg/rules/port_map/rule_008.py index b8513b4a..46422803 100644 --- a/vsg/rules/port_map/rule_008.py +++ b/vsg/rules/port_map/rule_008.py @@ -33,5 +33,5 @@ class rule_008(formal_part_in_association_element_between_tokens): ); ''' def __init__(self): - formal_part_in_association_element_between_tokens.__init__(self, 'port_map', '008', lStart, lEnd) + formal_part_in_association_element_between_tokens.__init__(self, lStart, lEnd) self.solution = 'Add formal_part to positional assignment.' diff --git a/vsg/rules/port_map/rule_009.py b/vsg/rules/port_map/rule_009.py index b2203ccb..68cb2cba 100644 --- a/vsg/rules/port_map/rule_009.py +++ b/vsg/rules/port_map/rule_009.py @@ -35,5 +35,5 @@ class rule_009(Rule): ''' def __init__(self): - Rule.__init__(self, 'port_map', '009', lTokens, lTokenPairs) + Rule.__init__(self, lTokens, lTokenPairs) self.solution = 'Move multiple port assignments to their own lines.' diff --git a/vsg/rules/port_map/rule_010.py b/vsg/rules/port_map/rule_010.py index 13dcac4e..75843339 100644 --- a/vsg/rules/port_map/rule_010.py +++ b/vsg/rules/port_map/rule_010.py @@ -31,5 +31,5 @@ class rule_010(remove_comments_from_end_of_lines_bounded_by_tokens): ''' def __init__(self): - remove_comments_from_end_of_lines_bounded_by_tokens.__init__(self, 'port_map', '010', oStart, oEnd) + remove_comments_from_end_of_lines_bounded_by_tokens.__init__(self, oStart, oEnd) self.solution = 'Remove comment.' diff --git a/vsg/rules/port_map/rule_200.py b/vsg/rules/port_map/rule_200.py index cd3a653e..fa0fbd2a 100644 --- a/vsg/rules/port_map/rule_200.py +++ b/vsg/rules/port_map/rule_200.py @@ -36,5 +36,5 @@ class rule_200(Rule): ''' def __init__(self): - Rule.__init__(self, 'port_map', '200', lTokens) + Rule.__init__(self, lTokens) self.style = 'no_blank_line' diff --git a/vsg/rules/pragma/rule_300.py b/vsg/rules/pragma/rule_300.py index 7342f6d1..1bc7c435 100644 --- a/vsg/rules/pragma/rule_300.py +++ b/vsg/rules/pragma/rule_300.py @@ -43,4 +43,4 @@ class rule_300(Rule): ''' def __init__(self): - Rule.__init__(self, 'pragma', '300', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/pragma/rule_400.py b/vsg/rules/pragma/rule_400.py index 4d523652..4b5dd957 100644 --- a/vsg/rules/pragma/rule_400.py +++ b/vsg/rules/pragma/rule_400.py @@ -31,5 +31,5 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'pragma', '400', [token.open]) + Rule.__init__(self, [token.open]) self.style = 'no_code' diff --git a/vsg/rules/pragma/rule_401.py b/vsg/rules/pragma/rule_401.py index d06c4b81..00a889fa 100644 --- a/vsg/rules/pragma/rule_401.py +++ b/vsg/rules/pragma/rule_401.py @@ -32,5 +32,5 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'pragma', '401', [token.open]) + Rule.__init__(self, [token.open]) self.style = 'no_blank_line' diff --git a/vsg/rules/pragma/rule_402.py b/vsg/rules/pragma/rule_402.py index 43965abd..476648ea 100644 --- a/vsg/rules/pragma/rule_402.py +++ b/vsg/rules/pragma/rule_402.py @@ -31,5 +31,5 @@ class rule_402(Rule): ''' def __init__(self): - Rule.__init__(self, 'pragma', '402', [token.close]) + Rule.__init__(self, [token.close]) self.style = 'no_blank_line' diff --git a/vsg/rules/pragma/rule_403.py b/vsg/rules/pragma/rule_403.py index 89b86680..b30bec89 100644 --- a/vsg/rules/pragma/rule_403.py +++ b/vsg/rules/pragma/rule_403.py @@ -32,5 +32,5 @@ class rule_403(Rule): ''' def __init__(self): - Rule.__init__(self, 'pragma', '403', [token.close]) + Rule.__init__(self, [token.close]) self.style = 'require_blank_line' diff --git a/vsg/rules/previous_line.py b/vsg/rules/previous_line.py index cde7ec80..9f9f0fed 100644 --- a/vsg/rules/previous_line.py +++ b/vsg/rules/previous_line.py @@ -24,8 +24,8 @@ class previous_line(blank_line.Rule): token object that a blank line above should appear ''' - def __init__(self, name, identifier, lTokens, lAllowTokens=None): - blank_line.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, lAllowTokens=None): + blank_line.Rule.__init__(self) self.solution = 'Insert blank line above' self.lTokens = lTokens self.lHierarchyLimits = None diff --git a/vsg/rules/procedure/rule_001.py b/vsg/rules/procedure/rule_001.py index 4e4b94d4..4611eedd 100644 --- a/vsg/rules/procedure/rule_001.py +++ b/vsg/rules/procedure/rule_001.py @@ -37,4 +37,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'procedure', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/procedure/rule_002.py b/vsg/rules/procedure/rule_002.py index dff272d9..03f05c2f 100644 --- a/vsg/rules/procedure/rule_002.py +++ b/vsg/rules/procedure/rule_002.py @@ -37,4 +37,4 @@ class rule_002(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'procedure', '002', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/procedure/rule_003.py b/vsg/rules/procedure/rule_003.py index 9d03d1c3..40b4ab6c 100644 --- a/vsg/rules/procedure/rule_003.py +++ b/vsg/rules/procedure/rule_003.py @@ -37,4 +37,4 @@ class rule_003(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'procedure', '003', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/procedure/rule_004.py b/vsg/rules/procedure/rule_004.py index e9fe1b6c..875d4bc7 100644 --- a/vsg/rules/procedure/rule_004.py +++ b/vsg/rules/procedure/rule_004.py @@ -48,4 +48,4 @@ class rule_004(token_indent_between_tokens): ''' def __init__(self): - token_indent_between_tokens.__init__(self, 'procedure', '004', lTokens, oStart, oEnd) + token_indent_between_tokens.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/procedure/rule_005.py b/vsg/rules/procedure/rule_005.py index 06714592..b9a9428c 100644 --- a/vsg/rules/procedure/rule_005.py +++ b/vsg/rules/procedure/rule_005.py @@ -45,4 +45,4 @@ class rule_005(token_indent_between_tokens): ''' def __init__(self): - token_indent_between_tokens.__init__(self, 'procedure', '005', lTokens, oStart, oEnd) + token_indent_between_tokens.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/procedure/rule_006.py b/vsg/rules/procedure/rule_006.py index ba3104b4..09b8eb0c 100644 --- a/vsg/rules/procedure/rule_006.py +++ b/vsg/rules/procedure/rule_006.py @@ -32,4 +32,4 @@ class rule_006(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'procedure', '006', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/procedure/rule_007.py b/vsg/rules/procedure/rule_007.py index c62475cd..92d52aad 100644 --- a/vsg/rules/procedure/rule_007.py +++ b/vsg/rules/procedure/rule_007.py @@ -8,5 +8,5 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '007') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule procedure_507.') diff --git a/vsg/rules/procedure/rule_008.py b/vsg/rules/procedure/rule_008.py index fc127671..7a6c1b21 100644 --- a/vsg/rules/procedure/rule_008.py +++ b/vsg/rules/procedure/rule_008.py @@ -34,5 +34,5 @@ class rule_008(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'procedure', '008', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/procedure/rule_009.py b/vsg/rules/procedure/rule_009.py index 55ab464b..e61f6bdf 100644 --- a/vsg/rules/procedure/rule_009.py +++ b/vsg/rules/procedure/rule_009.py @@ -31,5 +31,5 @@ class rule_009(token_case): ''' def __init__(self): - token_case.__init__(self, 'procedure', '009', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/procedure/rule_010.py b/vsg/rules/procedure/rule_010.py index f42506af..258c1b29 100644 --- a/vsg/rules/procedure/rule_010.py +++ b/vsg/rules/procedure/rule_010.py @@ -41,7 +41,7 @@ class rule_010(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'procedure', '010', lAlign, token.subprogram_body.is_keyword, token.subprogram_body.begin_keyword, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, token.subprogram_body.is_keyword, token.subprogram_body.begin_keyword, lUnless) self.solution = 'Align identifer.' self.configuration_documentation_link = 'configuring_identifier_alignment_rules_link' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/procedure/rule_011.py b/vsg/rules/procedure/rule_011.py index 14fa89ae..97908686 100644 --- a/vsg/rules/procedure/rule_011.py +++ b/vsg/rules/procedure/rule_011.py @@ -8,5 +8,5 @@ class rule_011(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'procedure', '011') + deprecated_rule.Rule.__init__(self) self.message.append('The function of rule ' + self.unique_id + ' is covered by rule procedure_013.') diff --git a/vsg/rules/procedure/rule_012.py b/vsg/rules/procedure/rule_012.py index 41bb4dd0..4b25aea2 100644 --- a/vsg/rules/procedure/rule_012.py +++ b/vsg/rules/procedure/rule_012.py @@ -37,7 +37,7 @@ class rule_012(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '012', oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) + Rule.__init__(self, oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) self.solution = 'procedure keyword' self.groups.append('structure::optional') self.filter_tokens.append(token.subprogram_declaration.semicolon) diff --git a/vsg/rules/procedure/rule_013.py b/vsg/rules/procedure/rule_013.py index 0dc6cf67..50ea082f 100644 --- a/vsg/rules/procedure/rule_013.py +++ b/vsg/rules/procedure/rule_013.py @@ -32,6 +32,6 @@ class rule_013(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '013') + Rule.__init__(self) self.lTokenPairs = lTokenPairs self.oSubprogramSpecification = oSubprogramSpecification diff --git a/vsg/rules/procedure/rule_100.py b/vsg/rules/procedure/rule_100.py index 87595e84..1fa20708 100644 --- a/vsg/rules/procedure/rule_100.py +++ b/vsg/rules/procedure/rule_100.py @@ -36,4 +36,4 @@ class rule_100(Rule): procedure average_samples is ''' def __init__(self): - Rule.__init__(self, 'procedure', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/procedure/rule_101.py b/vsg/rules/procedure/rule_101.py index 022b9039..a3b19aff 100644 --- a/vsg/rules/procedure/rule_101.py +++ b/vsg/rules/procedure/rule_101.py @@ -32,4 +32,4 @@ class rule_101(Rule): end average_samples; ''' def __init__(self): - Rule.__init__(self, 'procedure', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/procedure/rule_200.py b/vsg/rules/procedure/rule_200.py index 1de69a3a..04cea307 100644 --- a/vsg/rules/procedure/rule_200.py +++ b/vsg/rules/procedure/rule_200.py @@ -31,4 +31,4 @@ class rule_200(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'procedure', '200', lTokens) + previous_line.__init__(self, lTokens) diff --git a/vsg/rules/procedure/rule_201.py b/vsg/rules/procedure/rule_201.py index 9e9cacd8..36e825cb 100644 --- a/vsg/rules/procedure/rule_201.py +++ b/vsg/rules/procedure/rule_201.py @@ -8,5 +8,5 @@ class rule_201(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '201') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_201.') diff --git a/vsg/rules/procedure/rule_202.py b/vsg/rules/procedure/rule_202.py index 6a82a0b4..34581cb2 100644 --- a/vsg/rules/procedure/rule_202.py +++ b/vsg/rules/procedure/rule_202.py @@ -8,5 +8,5 @@ class rule_202(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '202') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_202.') diff --git a/vsg/rules/procedure/rule_203.py b/vsg/rules/procedure/rule_203.py index 69cfa154..de246460 100644 --- a/vsg/rules/procedure/rule_203.py +++ b/vsg/rules/procedure/rule_203.py @@ -8,5 +8,5 @@ class rule_203(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '203') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_203.') diff --git a/vsg/rules/procedure/rule_204.py b/vsg/rules/procedure/rule_204.py index 9f358f7a..2557a978 100644 --- a/vsg/rules/procedure/rule_204.py +++ b/vsg/rules/procedure/rule_204.py @@ -8,5 +8,5 @@ class rule_204(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '204') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_204.') diff --git a/vsg/rules/procedure/rule_205.py b/vsg/rules/procedure/rule_205.py index 5723dacb..1a51b48f 100644 --- a/vsg/rules/procedure/rule_205.py +++ b/vsg/rules/procedure/rule_205.py @@ -8,5 +8,5 @@ class rule_205(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '205') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to rule subprogram_body_205.') diff --git a/vsg/rules/procedure/rule_401.py b/vsg/rules/procedure/rule_401.py index 723ccf87..e2032a52 100644 --- a/vsg/rules/procedure/rule_401.py +++ b/vsg/rules/procedure/rule_401.py @@ -43,7 +43,7 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '401', lAlign, oStartToken, oEndToken, lUnless) + Rule.__init__(self, lAlign, oStartToken, oEndToken, lUnless) self.solution = 'Align :.' self.subphase = 2 self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/procedure/rule_410.py b/vsg/rules/procedure/rule_410.py index cd04e4d0..6eddc216 100644 --- a/vsg/rules/procedure/rule_410.py +++ b/vsg/rules/procedure/rule_410.py @@ -38,8 +38,8 @@ class rule_410(align_tokens_in_region_between_tokens): def __init__(self): align_tokens_in_region_between_tokens.__init__( - self, 'procedure', '410', lAlign, - token.procedure_specification.open_parenthesis, token.procedure_specification.close_parenthesis) + self, lAlign, token.procedure_specification.open_parenthesis, + token.procedure_specification.close_parenthesis) self.solution = 'Align :.' self.configuration.remove('case_control_statements_ends_group') self.configuration.remove('if_control_statements_ends_group') diff --git a/vsg/rules/procedure/rule_411.py b/vsg/rules/procedure/rule_411.py index ec320765..2c50f083 100644 --- a/vsg/rules/procedure/rule_411.py +++ b/vsg/rules/procedure/rule_411.py @@ -37,8 +37,8 @@ class rule_411(align_tokens_in_region_between_tokens): def __init__(self): align_tokens_in_region_between_tokens.__init__( - self, 'procedure', '411', lAlign, - token.procedure_specification.open_parenthesis, token.procedure_specification.close_parenthesis) + self, lAlign, token.procedure_specification.open_parenthesis, + token.procedure_specification.close_parenthesis) self.solution = 'Align :.' self.configuration.remove('case_control_statements_ends_group') self.configuration.remove('if_control_statements_ends_group') diff --git a/vsg/rules/procedure/rule_412.py b/vsg/rules/procedure/rule_412.py index bfc11938..aa9a9e94 100644 --- a/vsg/rules/procedure/rule_412.py +++ b/vsg/rules/procedure/rule_412.py @@ -8,5 +8,5 @@ class rule_412(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '412') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been superceeded by rule architecture_027.') diff --git a/vsg/rules/procedure/rule_500.py b/vsg/rules/procedure/rule_500.py index 87478c4c..71f4dc17 100644 --- a/vsg/rules/procedure/rule_500.py +++ b/vsg/rules/procedure/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'procedure', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/procedure/rule_501.py b/vsg/rules/procedure/rule_501.py index 545092c9..99e5ac67 100644 --- a/vsg/rules/procedure/rule_501.py +++ b/vsg/rules/procedure/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'procedure', '501', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/procedure/rule_502.py b/vsg/rules/procedure/rule_502.py index 04026832..bf11226a 100644 --- a/vsg/rules/procedure/rule_502.py +++ b/vsg/rules/procedure/rule_502.py @@ -30,5 +30,5 @@ class rule_502(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'procedure', '502', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/procedure/rule_503.py b/vsg/rules/procedure/rule_503.py index 17a46478..bc52d836 100644 --- a/vsg/rules/procedure/rule_503.py +++ b/vsg/rules/procedure/rule_503.py @@ -32,5 +32,5 @@ class rule_503(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'procedure', '503', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/procedure/rule_504.py b/vsg/rules/procedure/rule_504.py index 4db72717..c42953d5 100644 --- a/vsg/rules/procedure/rule_504.py +++ b/vsg/rules/procedure/rule_504.py @@ -30,5 +30,5 @@ class rule_504(token_case_in_range_bounded_by_tokens): ''' def __init__(self): - token_case_in_range_bounded_by_tokens.__init__(self, 'procedure', '504', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::keyword') diff --git a/vsg/rules/procedure/rule_505.py b/vsg/rules/procedure/rule_505.py index 3d1a06f3..739ff320 100644 --- a/vsg/rules/procedure/rule_505.py +++ b/vsg/rules/procedure/rule_505.py @@ -27,5 +27,5 @@ class rule_505(token_case): ''' def __init__(self): - token_case.__init__(self, 'procedure', '505', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/procedure/rule_506.py b/vsg/rules/procedure/rule_506.py index d3de22e1..39e019bd 100644 --- a/vsg/rules/procedure/rule_506.py +++ b/vsg/rules/procedure/rule_506.py @@ -30,5 +30,5 @@ class rule_506(token_case_in_range_bounded_by_tokens_with_prefix_suffix): ''' def __init__(self): - token_case_in_range_bounded_by_tokens_with_prefix_suffix.__init__(self, 'procedure', '506', lTokens, oStartToken, oEndToken) + token_case_in_range_bounded_by_tokens_with_prefix_suffix.__init__(self, lTokens, oStartToken, oEndToken) self.groups.append('case::name') diff --git a/vsg/rules/procedure/rule_507.py b/vsg/rules/procedure/rule_507.py index 0e14d10b..a3fda7ce 100644 --- a/vsg/rules/procedure/rule_507.py +++ b/vsg/rules/procedure/rule_507.py @@ -63,4 +63,4 @@ class rule_507(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure', '507', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) diff --git a/vsg/rules/procedure_call/rule_001.py b/vsg/rules/procedure_call/rule_001.py index a7e86ed1..e401b942 100644 --- a/vsg/rules/procedure_call/rule_001.py +++ b/vsg/rules/procedure_call/rule_001.py @@ -23,5 +23,5 @@ class rule_001(remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace): ''' def __init__(self): - remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, 'procedure_call', '001', token.label, token.label_colon) + remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, token.label, token.label_colon) self.solution = 'Remove Label' diff --git a/vsg/rules/procedure_call/rule_002.py b/vsg/rules/procedure_call/rule_002.py index 72824f2b..59d16397 100644 --- a/vsg/rules/procedure_call/rule_002.py +++ b/vsg/rules/procedure_call/rule_002.py @@ -23,5 +23,5 @@ class rule_002(remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace): ''' def __init__(self): - remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, 'procedure_call', '002', token.label_name, token.label_colon) + remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, token.label_name, token.label_colon) self.solution = 'Remove Label' diff --git a/vsg/rules/procedure_call/rule_003.py b/vsg/rules/procedure_call/rule_003.py index cfc97d88..d0ad8849 100644 --- a/vsg/rules/procedure_call/rule_003.py +++ b/vsg/rules/procedure_call/rule_003.py @@ -35,5 +35,5 @@ class rule_003(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure_call', '003') + Rule.__init__(self) self.lTokenPairs = lTokenPairs diff --git a/vsg/rules/procedure_call/rule_100.py b/vsg/rules/procedure_call/rule_100.py index f51edafc..60fe9bc1 100644 --- a/vsg/rules/procedure_call/rule_100.py +++ b/vsg/rules/procedure_call/rule_100.py @@ -32,5 +32,5 @@ class rule_100(Rule): procedure_label : postponed WR_EN(parameter); ''' def __init__(self): - Rule.__init__(self, 'procedure_call', '100', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Ensure a single space between the label, colon, *postponed* keyword and procedure_name.' diff --git a/vsg/rules/procedure_call/rule_101.py b/vsg/rules/procedure_call/rule_101.py index 2941de81..0fae9b02 100644 --- a/vsg/rules/procedure_call/rule_101.py +++ b/vsg/rules/procedure_call/rule_101.py @@ -39,4 +39,4 @@ class rule_101(Rule): ); ''' def __init__(self): - Rule.__init__(self, 'procedure_call', '101', lTokens, oStart, oEnd) + Rule.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/procedure_call/rule_300.py b/vsg/rules/procedure_call/rule_300.py index a61762c2..47925e71 100644 --- a/vsg/rules/procedure_call/rule_300.py +++ b/vsg/rules/procedure_call/rule_300.py @@ -30,4 +30,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'procedure_call', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/procedure_call/rule_301.py b/vsg/rules/procedure_call/rule_301.py index 4850e9c1..39b2d522 100644 --- a/vsg/rules/procedure_call/rule_301.py +++ b/vsg/rules/procedure_call/rule_301.py @@ -29,4 +29,4 @@ class rule_301(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'procedure_call', '301', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/procedure_call/rule_302.py b/vsg/rules/procedure_call/rule_302.py index eb3575ef..81ff747a 100644 --- a/vsg/rules/procedure_call/rule_302.py +++ b/vsg/rules/procedure_call/rule_302.py @@ -29,4 +29,4 @@ class rule_302(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'procedure_call', '302', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/procedure_call/rule_400.py b/vsg/rules/procedure_call/rule_400.py index 7b97199d..74aff66d 100644 --- a/vsg/rules/procedure_call/rule_400.py +++ b/vsg/rules/procedure_call/rule_400.py @@ -31,5 +31,5 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure_call', '400', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.phase = 5 diff --git a/vsg/rules/procedure_call/rule_401.py b/vsg/rules/procedure_call/rule_401.py index 30e04195..218eebd9 100644 --- a/vsg/rules/procedure_call/rule_401.py +++ b/vsg/rules/procedure_call/rule_401.py @@ -40,7 +40,7 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'procedure_call', '401', lAlign, oBegin, oEnd) + Rule.__init__(self, lAlign, oBegin, oEnd) self.solution = 'Align =>.' self.subphase = 2 self.bIncludeTillBeginningOfLine = True diff --git a/vsg/rules/procedure_call/rule_500.py b/vsg/rules/procedure_call/rule_500.py index 2e440971..dcaa82b2 100644 --- a/vsg/rules/procedure_call/rule_500.py +++ b/vsg/rules/procedure_call/rule_500.py @@ -28,5 +28,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'procedure_call', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/procedure_call/rule_501.py b/vsg/rules/procedure_call/rule_501.py index 40bd2724..c260d6ad 100644 --- a/vsg/rules/procedure_call/rule_501.py +++ b/vsg/rules/procedure_call/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'procedure_call', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/process/rule_001.py b/vsg/rules/process/rule_001.py index 7c949765..da9d627d 100644 --- a/vsg/rules/process/rule_001.py +++ b/vsg/rules/process/rule_001.py @@ -35,4 +35,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'process', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_002.py b/vsg/rules/process/rule_002.py index dbbe273c..caf08d36 100644 --- a/vsg/rules/process/rule_002.py +++ b/vsg/rules/process/rule_002.py @@ -32,4 +32,4 @@ class rule_002(Rule): proc_a : process (rd_en, wr_en, data_in, data_out, ''' def __init__(self): - Rule.__init__(self, 'process', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_003.py b/vsg/rules/process/rule_003.py index 02ff93f7..039221b2 100644 --- a/vsg/rules/process/rule_003.py +++ b/vsg/rules/process/rule_003.py @@ -31,4 +31,4 @@ class rule_003(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'process', '003', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_004.py b/vsg/rules/process/rule_004.py index be95f7a5..588bbcc7 100644 --- a/vsg/rules/process/rule_004.py +++ b/vsg/rules/process/rule_004.py @@ -33,5 +33,5 @@ class rule_004(token_case): ''' def __init__(self): - token_case.__init__(self, 'process', '004', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/process/rule_005.py b/vsg/rules/process/rule_005.py index f7e5d973..4e272d05 100644 --- a/vsg/rules/process/rule_005.py +++ b/vsg/rules/process/rule_005.py @@ -27,5 +27,5 @@ class rule_005(token_case): ''' def __init__(self): - token_case.__init__(self, 'process', '005', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/process/rule_006.py b/vsg/rules/process/rule_006.py index 682b3433..071aacb4 100644 --- a/vsg/rules/process/rule_006.py +++ b/vsg/rules/process/rule_006.py @@ -35,4 +35,4 @@ class rule_006(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'process', '006', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_007.py b/vsg/rules/process/rule_007.py index b4b85842..f41dd07f 100644 --- a/vsg/rules/process/rule_007.py +++ b/vsg/rules/process/rule_007.py @@ -27,4 +27,4 @@ class rule_007(Rule): end process proc_a; ''' def __init__(self): - Rule.__init__(self, 'process', '007', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_008.py b/vsg/rules/process/rule_008.py index 5e2be17a..f0400ff2 100644 --- a/vsg/rules/process/rule_008.py +++ b/vsg/rules/process/rule_008.py @@ -27,5 +27,5 @@ class rule_008(token_case): ''' def __init__(self): - token_case.__init__(self, 'process', '008', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/process/rule_009.py b/vsg/rules/process/rule_009.py index 4455138e..feec6fff 100644 --- a/vsg/rules/process/rule_009.py +++ b/vsg/rules/process/rule_009.py @@ -27,5 +27,5 @@ class rule_009(token_case): ''' def __init__(self): - token_case.__init__(self, 'process', '009', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/process/rule_010.py b/vsg/rules/process/rule_010.py index 821f552a..7546f91a 100644 --- a/vsg/rules/process/rule_010.py +++ b/vsg/rules/process/rule_010.py @@ -30,5 +30,5 @@ class rule_010(split_line_at_token): ''' def __init__(self): - split_line_at_token.__init__(self, 'process', '010', lTokens) + split_line_at_token.__init__(self, lTokens) self.solution = 'Closing parenthesis must be on a line by itself.' diff --git a/vsg/rules/process/rule_011.py b/vsg/rules/process/rule_011.py index 1ece058f..2e365900 100644 --- a/vsg/rules/process/rule_011.py +++ b/vsg/rules/process/rule_011.py @@ -30,4 +30,4 @@ class rule_011(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'process', '011', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_012.py b/vsg/rules/process/rule_012.py index 3519fc41..fab545f7 100644 --- a/vsg/rules/process/rule_012.py +++ b/vsg/rules/process/rule_012.py @@ -50,6 +50,6 @@ class rule_012(insert_token_right_of_possible_tokens_if_it_does_not_exist_before ''' def __init__(self): - insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.__init__(self, 'process', '012', oInsertToken, lRightTokens, oBeforeToken) + insert_token_right_of_possible_tokens_if_it_does_not_exist_before_token.__init__(self, oInsertToken, lRightTokens, oBeforeToken) self.solution = '*is* keyword' self.groups.append('structure::optional') diff --git a/vsg/rules/process/rule_013.py b/vsg/rules/process/rule_013.py index ec836ece..55061970 100644 --- a/vsg/rules/process/rule_013.py +++ b/vsg/rules/process/rule_013.py @@ -33,5 +33,5 @@ class rule_013(token_case): ''' def __init__(self): - token_case.__init__(self, 'process', '013', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/process/rule_014.py b/vsg/rules/process/rule_014.py index 53845667..e9592acc 100644 --- a/vsg/rules/process/rule_014.py +++ b/vsg/rules/process/rule_014.py @@ -33,4 +33,4 @@ class rule_014(Rule): begin ''' def __init__(self): - Rule.__init__(self, 'process', '014', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_015.py b/vsg/rules/process/rule_015.py index 80d23285..e4e693e5 100644 --- a/vsg/rules/process/rule_015.py +++ b/vsg/rules/process/rule_015.py @@ -39,5 +39,5 @@ class rule_015(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'process', '015', lTokens) + previous_line.__init__(self, lTokens) self.style = 'no_code' diff --git a/vsg/rules/process/rule_016.py b/vsg/rules/process/rule_016.py index bed3f5e8..d528c4c6 100644 --- a/vsg/rules/process/rule_016.py +++ b/vsg/rules/process/rule_016.py @@ -31,6 +31,6 @@ class rule_016(Rule): ''' def __init__(self): - Rule.__init__(self, 'process', '016', oFirstToken, oSecondToken) + Rule.__init__(self, oFirstToken, oSecondToken) self.solution = 'Add label for process statement' self.fixable = False diff --git a/vsg/rules/process/rule_017.py b/vsg/rules/process/rule_017.py index c44a4c1e..7b731ba4 100644 --- a/vsg/rules/process/rule_017.py +++ b/vsg/rules/process/rule_017.py @@ -33,5 +33,5 @@ class rule_017(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'process', '017', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/process/rule_018.py b/vsg/rules/process/rule_018.py index 6461dfbd..925b2bf1 100644 --- a/vsg/rules/process/rule_018.py +++ b/vsg/rules/process/rule_018.py @@ -34,7 +34,7 @@ class rule_018(insert_token_left_of_token_if_it_does_not_exist_between_tokens_us ''' def __init__(self): - insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, 'process', '018', oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) + insert_token_left_of_token_if_it_does_not_exist_between_tokens_using_value_from_token.__init__(self, oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) self.solution = 'a label for the "end process".' self.groups.append('structure::optional') self.subphase = 2 diff --git a/vsg/rules/process/rule_019.py b/vsg/rules/process/rule_019.py index 5de46850..2de4eb1f 100644 --- a/vsg/rules/process/rule_019.py +++ b/vsg/rules/process/rule_019.py @@ -27,5 +27,5 @@ class rule_019(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'process', '019', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::label') diff --git a/vsg/rules/process/rule_020.py b/vsg/rules/process/rule_020.py index 51a616bf..ab71bd70 100644 --- a/vsg/rules/process/rule_020.py +++ b/vsg/rules/process/rule_020.py @@ -34,4 +34,4 @@ class rule_020(multiline_alignment_between_tokens): ''' def __init__(self): - multiline_alignment_between_tokens.__init__(self, 'process', '020', lTokenPairs, True) + multiline_alignment_between_tokens.__init__(self, lTokenPairs, True) diff --git a/vsg/rules/process/rule_021.py b/vsg/rules/process/rule_021.py index 14feb70a..6b1770b3 100644 --- a/vsg/rules/process/rule_021.py +++ b/vsg/rules/process/rule_021.py @@ -58,7 +58,7 @@ class rule_021(blank_line.Rule): ''' def __init__(self): - blank_line.Rule.__init__(self, 'process', '021') + blank_line.Rule.__init__(self) self.solution = 'Remove blank lines above *begin* keyword' self.phase = 1 self.style = 'no_blank_line' diff --git a/vsg/rules/process/rule_022.py b/vsg/rules/process/rule_022.py index a299f72d..6f62328f 100644 --- a/vsg/rules/process/rule_022.py +++ b/vsg/rules/process/rule_022.py @@ -36,4 +36,4 @@ class rule_022(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'process', '022', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_023.py b/vsg/rules/process/rule_023.py index 30e3ee2b..f9bc0c0f 100644 --- a/vsg/rules/process/rule_023.py +++ b/vsg/rules/process/rule_023.py @@ -30,4 +30,4 @@ class rule_023(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'process', '023', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_024.py b/vsg/rules/process/rule_024.py index b54d2b88..9d4dbb06 100644 --- a/vsg/rules/process/rule_024.py +++ b/vsg/rules/process/rule_024.py @@ -32,4 +32,4 @@ class rule_024(Rule): begin ''' def __init__(self): - Rule.__init__(self, 'process', '024', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_025.py b/vsg/rules/process/rule_025.py index 401c08bb..81db4550 100644 --- a/vsg/rules/process/rule_025.py +++ b/vsg/rules/process/rule_025.py @@ -31,4 +31,4 @@ class rule_025(Rule): begin ''' def __init__(self): - Rule.__init__(self, 'process', '025', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_026.py b/vsg/rules/process/rule_026.py index 6a57fd31..df00d0a2 100644 --- a/vsg/rules/process/rule_026.py +++ b/vsg/rules/process/rule_026.py @@ -42,7 +42,7 @@ class rule_026(blank_line.Rule): ''' def __init__(self): - blank_line.Rule.__init__(self, 'process', '026') + blank_line.Rule.__init__(self) self.solution = 'Insert blank line below' self.style = 'require_blank_line' self.configuration.append('style') diff --git a/vsg/rules/process/rule_027.py b/vsg/rules/process/rule_027.py index ce04ea80..3a145988 100644 --- a/vsg/rules/process/rule_027.py +++ b/vsg/rules/process/rule_027.py @@ -44,7 +44,7 @@ class rule_027(blank_line.Rule): ''' def __init__(self): - blank_line.Rule.__init__(self, 'process', '027') + blank_line.Rule.__init__(self) self.phase = 3 self.style = 'require_blank_line' self.configuration.append('style') diff --git a/vsg/rules/process/rule_028.py b/vsg/rules/process/rule_028.py index c4eb0a64..215b05c1 100644 --- a/vsg/rules/process/rule_028.py +++ b/vsg/rules/process/rule_028.py @@ -32,4 +32,4 @@ class rule_028(align_left_token_with_right_token_if_right_token_starts_a_line): ''' def __init__(self): - align_left_token_with_right_token_if_right_token_starts_a_line.__init__(self, 'process', '028', oLeftToken, oRightToken) + align_left_token_with_right_token_if_right_token_starts_a_line.__init__(self, oLeftToken, oRightToken) diff --git a/vsg/rules/process/rule_029.py b/vsg/rules/process/rule_029.py index 9ed21b0f..2e7e9ee2 100644 --- a/vsg/rules/process/rule_029.py +++ b/vsg/rules/process/rule_029.py @@ -85,7 +85,7 @@ class rule_029(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'process', '029') + structure.Rule.__init__(self) self.disable = True self.clock = 'event' self.configuration.append('clock') diff --git a/vsg/rules/process/rule_030.py b/vsg/rules/process/rule_030.py index ea70b26b..3370db68 100644 --- a/vsg/rules/process/rule_030.py +++ b/vsg/rules/process/rule_030.py @@ -38,7 +38,7 @@ class rule_030(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'process', '030') + structure.Rule.__init__(self) self.solution = 'Compact sensitivity list to reduce the number of lines it uses.' self.fixable = False self.configuration_documentation_link = None diff --git a/vsg/rules/process/rule_031.py b/vsg/rules/process/rule_031.py index a51c5b5f..00636a9b 100644 --- a/vsg/rules/process/rule_031.py +++ b/vsg/rules/process/rule_031.py @@ -56,6 +56,6 @@ class rule_031(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'process', '031', lAlign, oStart, oEnd, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'Align the first character of each identifier.' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/process/rule_032.py b/vsg/rules/process/rule_032.py index 7c98ff42..70588f30 100644 --- a/vsg/rules/process/rule_032.py +++ b/vsg/rules/process/rule_032.py @@ -11,7 +11,7 @@ class rule_032(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'process', '032') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with the following rules:') self.message.append(' * process_037') self.message.append(' * process_038') diff --git a/vsg/rules/process/rule_033.py b/vsg/rules/process/rule_033.py index 81358dcd..9936becb 100644 --- a/vsg/rules/process/rule_033.py +++ b/vsg/rules/process/rule_033.py @@ -41,7 +41,7 @@ class rule_033(Rule): ''' def __init__(self): - Rule.__init__(self, 'process', '033', lAlign, token.process_statement.process_keyword, token.process_statement.begin_keyword, lUnless) + Rule.__init__(self, lAlign, token.process_statement.process_keyword, token.process_statement.begin_keyword, lUnless) self.solution = 'Align :\'s.' self.subphase = 2 self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/process/rule_034.py b/vsg/rules/process/rule_034.py index 859b157f..7cdf75f7 100644 --- a/vsg/rules/process/rule_034.py +++ b/vsg/rules/process/rule_034.py @@ -47,7 +47,7 @@ class rule_034(align_tokens_in_region_between_tokens_skipping_lines_starting_wit ''' def __init__(self): - align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, 'process', '034', lAlign, oStart, oEnd, lSkip) + align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, lAlign, oStart, oEnd, lSkip) self.solution = 'Align comment.' self.subphase = 4 self.blank_line_ends_group = 'no' diff --git a/vsg/rules/process/rule_035.py b/vsg/rules/process/rule_035.py index 7bf6a902..0e44f188 100644 --- a/vsg/rules/process/rule_035.py +++ b/vsg/rules/process/rule_035.py @@ -47,7 +47,7 @@ class rule_035(align_tokens_in_region_between_tokens_skipping_lines_starting_wit ''' def __init__(self): - align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, 'process', '035', lAlign, oStart, oEnd, lSkip) + align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens.__init__(self, lAlign, oStart, oEnd, lSkip) self.solution = 'Align comment.' self.subphase = 3 self.blank_line_ends_group = 'no' diff --git a/vsg/rules/process/rule_036.py b/vsg/rules/process/rule_036.py index 9970ba5f..218a135b 100644 --- a/vsg/rules/process/rule_036.py +++ b/vsg/rules/process/rule_036.py @@ -29,6 +29,6 @@ class rule_036(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'process', '036', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['proc_'] self.solution = 'Process labels' diff --git a/vsg/rules/process/rule_037.py b/vsg/rules/process/rule_037.py index 5175988b..b5a2a464 100644 --- a/vsg/rules/process/rule_037.py +++ b/vsg/rules/process/rule_037.py @@ -27,5 +27,5 @@ class rule_037(Rule): ''' def __init__(self): - Rule.__init__(self, 'process', '037', lTokens) + Rule.__init__(self, lTokens) self.subphase = 3 diff --git a/vsg/rules/process/rule_038.py b/vsg/rules/process/rule_038.py index 041e3eb1..a01feffe 100644 --- a/vsg/rules/process/rule_038.py +++ b/vsg/rules/process/rule_038.py @@ -28,5 +28,5 @@ class rule_038(Rule): ''' def __init__(self): - Rule.__init__(self, 'process', '038', lTokens) + Rule.__init__(self, lTokens) self.subphase = 2 diff --git a/vsg/rules/process/rule_039.py b/vsg/rules/process/rule_039.py index d47f0c00..16d202b7 100644 --- a/vsg/rules/process/rule_039.py +++ b/vsg/rules/process/rule_039.py @@ -28,4 +28,4 @@ class rule_039(Rule): ''' def __init__(self): - Rule.__init__(self, 'process', '039', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/process/rule_400.py b/vsg/rules/process/rule_400.py index 1c4d3776..c86715a4 100644 --- a/vsg/rules/process/rule_400.py +++ b/vsg/rules/process/rule_400.py @@ -48,7 +48,7 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'process', '400', lAlign, oStart, oEnd, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'Align identifer.' self.if_control_statements_ends_group = 'yes' self.case_control_statements_ends_group = 'yes' diff --git a/vsg/rules/process/rule_401.py b/vsg/rules/process/rule_401.py index 4200fc9b..4972ccdf 100644 --- a/vsg/rules/process/rule_401.py +++ b/vsg/rules/process/rule_401.py @@ -37,6 +37,6 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'process', '401', lAlign, oStart, oEnd, lUnless) + Rule.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'align colon.' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/process/rule_600.py b/vsg/rules/process/rule_600.py index e6b35a92..9cb5875b 100644 --- a/vsg/rules/process/rule_600.py +++ b/vsg/rules/process/rule_600.py @@ -29,6 +29,6 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'process', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_proc'] self.solution = 'Process labels' diff --git a/vsg/rules/ranges/rule_001.py b/vsg/rules/ranges/rule_001.py index 8e16ec25..14ddde22 100644 --- a/vsg/rules/ranges/rule_001.py +++ b/vsg/rules/ranges/rule_001.py @@ -29,5 +29,5 @@ class rule_001(token_case): ''' def __init__(self): - token_case.__init__(self, 'range', '001', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/ranges/rule_002.py b/vsg/rules/ranges/rule_002.py index 05f9c37a..234095b2 100644 --- a/vsg/rules/ranges/rule_002.py +++ b/vsg/rules/ranges/rule_002.py @@ -29,5 +29,5 @@ class rule_002(token_case): ''' def __init__(self): - token_case.__init__(self, 'range', '002', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/record_type_definition/rule_001.py b/vsg/rules/record_type_definition/rule_001.py index 813fd05e..ddec6f6e 100644 --- a/vsg/rules/record_type_definition/rule_001.py +++ b/vsg/rules/record_type_definition/rule_001.py @@ -29,7 +29,7 @@ class rule_001(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '001', oToken) + Rule.__init__(self, oToken) self.action = 'same_line' self.subphase = 3 self.insert_whitespace = True diff --git a/vsg/rules/record_type_definition/rule_002.py b/vsg/rules/record_type_definition/rule_002.py index 9377a523..96cafe06 100644 --- a/vsg/rules/record_type_definition/rule_002.py +++ b/vsg/rules/record_type_definition/rule_002.py @@ -30,5 +30,5 @@ class rule_002(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '002', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after the begin to the next line.' diff --git a/vsg/rules/record_type_definition/rule_003.py b/vsg/rules/record_type_definition/rule_003.py index eb6130fe..220ee785 100644 --- a/vsg/rules/record_type_definition/rule_003.py +++ b/vsg/rules/record_type_definition/rule_003.py @@ -31,5 +31,5 @@ class rule_003(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '003', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move *end* keyword and code after it to the next line' diff --git a/vsg/rules/record_type_definition/rule_004.py b/vsg/rules/record_type_definition/rule_004.py index 6f4a9fa2..2cb003f3 100644 --- a/vsg/rules/record_type_definition/rule_004.py +++ b/vsg/rules/record_type_definition/rule_004.py @@ -30,6 +30,6 @@ class rule_004(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '004', token.end_keyword, token.end_record_keyword) + Rule.__init__(self, token.end_keyword, token.end_record_keyword) self.subphase = 1 self.solution = 'Move *record* next to *end* keyword' diff --git a/vsg/rules/record_type_definition/rule_005.py b/vsg/rules/record_type_definition/rule_005.py index c15a9302..dd6454de 100644 --- a/vsg/rules/record_type_definition/rule_005.py +++ b/vsg/rules/record_type_definition/rule_005.py @@ -37,7 +37,7 @@ class rule_005(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '005', oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) + Rule.__init__(self, oInsertToken, oAnchorToken, oLeftToken, oRightToken, oValueToken) self.subphase = 1 self.solution = 'record type simple name' self.groups.append('structure::optional') diff --git a/vsg/rules/record_type_definition/rule_006.py b/vsg/rules/record_type_definition/rule_006.py index 5190d1e1..e11c504b 100644 --- a/vsg/rules/record_type_definition/rule_006.py +++ b/vsg/rules/record_type_definition/rule_006.py @@ -30,6 +30,6 @@ class rule_006(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '006', token.end_record_keyword, token.record_type_simple_name) + Rule.__init__(self, token.end_record_keyword, token.record_type_simple_name) self.subphase = 2 self.solution = 'Move simple name next to *record* keyword' diff --git a/vsg/rules/record_type_definition/rule_007.py b/vsg/rules/record_type_definition/rule_007.py index fa575d90..ad5b08a6 100644 --- a/vsg/rules/record_type_definition/rule_007.py +++ b/vsg/rules/record_type_definition/rule_007.py @@ -32,6 +32,6 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '007', lTokens) + Rule.__init__(self, lTokens) self.bInsertWhitespace = False self.subphase = 3 diff --git a/vsg/rules/record_type_definition/rule_100.py b/vsg/rules/record_type_definition/rule_100.py index f58a6ab3..bd204512 100644 --- a/vsg/rules/record_type_definition/rule_100.py +++ b/vsg/rules/record_type_definition/rule_100.py @@ -29,6 +29,6 @@ class rule_100(Rule): end record t_record; ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '100') + Rule.__init__(self) self.left_token = token.end_keyword self.right_token = token.end_record_keyword diff --git a/vsg/rules/record_type_definition/rule_101.py b/vsg/rules/record_type_definition/rule_101.py index ded95222..7378cbbc 100644 --- a/vsg/rules/record_type_definition/rule_101.py +++ b/vsg/rules/record_type_definition/rule_101.py @@ -29,6 +29,6 @@ class rule_101(Rule): end record t_record; ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '101') + Rule.__init__(self) self.left_token = token.end_record_keyword self.right_token = token.record_type_simple_name diff --git a/vsg/rules/record_type_definition/rule_200.py b/vsg/rules/record_type_definition/rule_200.py index 4d5011bb..bc1d2943 100644 --- a/vsg/rules/record_type_definition/rule_200.py +++ b/vsg/rules/record_type_definition/rule_200.py @@ -31,5 +31,5 @@ class rule_200(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '200', [token.record_keyword]) + Rule.__init__(self, [token.record_keyword]) self.style = 'no_blank_line' diff --git a/vsg/rules/record_type_definition/rule_201.py b/vsg/rules/record_type_definition/rule_201.py index 01c38673..6b93c713 100644 --- a/vsg/rules/record_type_definition/rule_201.py +++ b/vsg/rules/record_type_definition/rule_201.py @@ -31,5 +31,5 @@ class rule_201(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '201', [token.end_keyword]) + Rule.__init__(self, [token.end_keyword]) self.style = 'no_blank_line' diff --git a/vsg/rules/record_type_definition/rule_300.py b/vsg/rules/record_type_definition/rule_300.py index f07843cf..55a03527 100644 --- a/vsg/rules/record_type_definition/rule_300.py +++ b/vsg/rules/record_type_definition/rule_300.py @@ -30,4 +30,4 @@ class rule_300(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '300', [token.record_keyword]) + Rule.__init__(self, [token.record_keyword]) diff --git a/vsg/rules/record_type_definition/rule_301.py b/vsg/rules/record_type_definition/rule_301.py index e36c45a1..c40b683a 100644 --- a/vsg/rules/record_type_definition/rule_301.py +++ b/vsg/rules/record_type_definition/rule_301.py @@ -28,4 +28,4 @@ class rule_301(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '301', [token.end_keyword]) + Rule.__init__(self, [token.end_keyword]) diff --git a/vsg/rules/record_type_definition/rule_500.py b/vsg/rules/record_type_definition/rule_500.py index 9e7645f6..8ce1476c 100644 --- a/vsg/rules/record_type_definition/rule_500.py +++ b/vsg/rules/record_type_definition/rule_500.py @@ -30,5 +30,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '500', [token.record_keyword]) + Rule.__init__(self, [token.record_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/record_type_definition/rule_501.py b/vsg/rules/record_type_definition/rule_501.py index 09b321ee..318a67c7 100644 --- a/vsg/rules/record_type_definition/rule_501.py +++ b/vsg/rules/record_type_definition/rule_501.py @@ -30,5 +30,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '501', [token.end_keyword]) + Rule.__init__(self, [token.end_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/record_type_definition/rule_502.py b/vsg/rules/record_type_definition/rule_502.py index 4346dd0a..d361e71f 100644 --- a/vsg/rules/record_type_definition/rule_502.py +++ b/vsg/rules/record_type_definition/rule_502.py @@ -30,5 +30,5 @@ class rule_502(Rule): ''' def __init__(self): - Rule.__init__(self, 'record_type_definition', '502', [token.end_record_keyword]) + Rule.__init__(self, [token.end_record_keyword]) self.groups.append('case::keyword') diff --git a/vsg/rules/remove_blank_lines_above_line_starting_with_token.py b/vsg/rules/remove_blank_lines_above_line_starting_with_token.py index 10dc8d44..a9fd93ac 100644 --- a/vsg/rules/remove_blank_lines_above_line_starting_with_token.py +++ b/vsg/rules/remove_blank_lines_above_line_starting_with_token.py @@ -24,8 +24,8 @@ class remove_blank_lines_above_line_starting_with_token(blank_line.Rule): reference tokens to remove blank lines above ''' - def __init__(self, name, identifier, lTokens): - blank_line.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + blank_line.Rule.__init__(self) self.lTokens = lTokens def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/remove_carriage_return_after_token.py b/vsg/rules/remove_carriage_return_after_token.py index 20251fd3..25ff8028 100644 --- a/vsg/rules/remove_carriage_return_after_token.py +++ b/vsg/rules/remove_carriage_return_after_token.py @@ -27,8 +27,8 @@ class remove_carriage_return_after_token(structure.Rule): acceptable prefixes ''' - def __init__(self, name, identifier, lTokens, bInsertSpace=False): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, bInsertSpace=False): + structure.Rule.__init__(self) self.lTokens = lTokens self.bInsertSpace = bInsertSpace self.configuration_documentation_link = None diff --git a/vsg/rules/remove_carriage_returns_between_token_pairs.py b/vsg/rules/remove_carriage_returns_between_token_pairs.py index b5f8bc7e..3c33e257 100644 --- a/vsg/rules/remove_carriage_returns_between_token_pairs.py +++ b/vsg/rules/remove_carriage_returns_between_token_pairs.py @@ -27,8 +27,8 @@ class remove_carriage_returns_between_token_pairs(structure.Rule): acceptable prefixes ''' - def __init__(self, name, identifier, lTokens, bInsertSpace=False): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, bInsertSpace=False): + structure.Rule.__init__(self) self.solution = None self.phase = 1 self.lTokens = lTokens diff --git a/vsg/rules/remove_comments_from_end_of_lines_bounded_by_tokens.py b/vsg/rules/remove_comments_from_end_of_lines_bounded_by_tokens.py index 7094ba11..c23ac8a5 100644 --- a/vsg/rules/remove_comments_from_end_of_lines_bounded_by_tokens.py +++ b/vsg/rules/remove_comments_from_end_of_lines_bounded_by_tokens.py @@ -25,8 +25,8 @@ class remove_comments_from_end_of_lines_bounded_by_tokens(structure.Rule): acceptable prefixes ''' - def __init__(self, name, identifier, oStart, oEnd): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, oStart, oEnd): + structure.Rule.__init__(self) self.oStart = oStart self.oEnd = oEnd self.configuration_documentation_link = None diff --git a/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py b/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py index 491048f5..27c0c958 100644 --- a/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py +++ b/vsg/rules/remove_excessive_blank_lines_above_line_starting_with_token.py @@ -29,8 +29,8 @@ class remove_excessive_blank_lines_above_line_starting_with_token(blank_line.Rul Ignore lines with given token types ''' - def __init__(self, name, identifier, lTokens, iAllow=1, lOverrides=None): - blank_line.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, iAllow=1, lOverrides=None): + blank_line.Rule.__init__(self) self.solution = 'Remove blank lines above' self.lTokens = lTokens self.iAllow = iAllow diff --git a/vsg/rules/remove_excessive_blank_lines_below_line_ending_with_token.py b/vsg/rules/remove_excessive_blank_lines_below_line_ending_with_token.py index 76609250..e5cbacdd 100644 --- a/vsg/rules/remove_excessive_blank_lines_below_line_ending_with_token.py +++ b/vsg/rules/remove_excessive_blank_lines_below_line_ending_with_token.py @@ -29,8 +29,8 @@ class remove_excessive_blank_lines_below_line_ending_with_token(blank_line.Rule) Ignore lines with given token types ''' - def __init__(self, name, identifier, lTokens, iAllow=1, lOverrides=None): - blank_line.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, iAllow=1, lOverrides=None): + blank_line.Rule.__init__(self) self.solution = 'Remove blank lines below' self.lTokens = lTokens self.iAllow = iAllow diff --git a/vsg/rules/remove_lines_starting_with_token_between_token_pairs.py b/vsg/rules/remove_lines_starting_with_token_between_token_pairs.py index 4a84448e..57efcc44 100644 --- a/vsg/rules/remove_lines_starting_with_token_between_token_pairs.py +++ b/vsg/rules/remove_lines_starting_with_token_between_token_pairs.py @@ -23,8 +23,8 @@ class remove_lines_starting_with_token_between_token_pairs(structure.Rule): The tokens to check for a single space between ''' - def __init__(self, name, identifier, oRemoveToken, lTokens): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, oRemoveToken, lTokens): + structure.Rule.__init__(self) self.solution = None self.phase = 2 self.oRemoveToken = oRemoveToken diff --git a/vsg/rules/remove_spaces_before_token_rule.py b/vsg/rules/remove_spaces_before_token_rule.py index ca357540..e4b5d02b 100644 --- a/vsg/rules/remove_spaces_before_token_rule.py +++ b/vsg/rules/remove_spaces_before_token_rule.py @@ -22,9 +22,9 @@ class remove_spaces_before_token_rule(whitespace.Rule): The token where spaces will be removed before. ''' - def __init__(self, name, identifier, oToken, bIgnoreIfLineStart=False): + def __init__(self, oToken, bIgnoreIfLineStart=False): - whitespace.Rule.__init__(self, name, identifier) + whitespace.Rule.__init__(self) self.oToken = oToken self.bIgnoreIfLineStart = bIgnoreIfLineStart diff --git a/vsg/rules/remove_tokens.py b/vsg/rules/remove_tokens.py index 95367f15..f9d25b46 100644 --- a/vsg/rules/remove_tokens.py +++ b/vsg/rules/remove_tokens.py @@ -23,8 +23,8 @@ class remove_tokens(structure.Rule): ''' - def __init__(self, name, identifier, lTokens): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + structure.Rule.__init__(self) self.solution = None self.phase = 1 self.lTokens = lTokens diff --git a/vsg/rules/remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.py b/vsg/rules/remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.py index 1e65d10e..fbf63fb7 100644 --- a/vsg/rules/remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.py +++ b/vsg/rules/remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.py @@ -24,8 +24,8 @@ class remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace(structure.R The second token that defines the region ''' - def __init__(self, name, identifier, left_token, right_token): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, left_token, right_token): + structure.Rule.__init__(self) self.left_token = left_token self.right_token = right_token self.configuration_documentation_link = None diff --git a/vsg/rules/report_statement/rule_001.py b/vsg/rules/report_statement/rule_001.py index 5d53f20a..ab099673 100644 --- a/vsg/rules/report_statement/rule_001.py +++ b/vsg/rules/report_statement/rule_001.py @@ -22,5 +22,5 @@ class rule_001(remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace): ''' def __init__(self): - remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, 'report_statement', '001', token.label, token.label_colon) + remove_tokens_bounded_by_tokens_and_remove_trailing_whitespace.__init__(self, token.label, token.label_colon) self.solution = 'Remove Label' diff --git a/vsg/rules/report_statement/rule_002.py b/vsg/rules/report_statement/rule_002.py index 639c95ea..342feb7a 100644 --- a/vsg/rules/report_statement/rule_002.py +++ b/vsg/rules/report_statement/rule_002.py @@ -29,5 +29,5 @@ class rule_002(split_line_at_token_when_between_tokens): ''' def __init__(self): - split_line_at_token_when_between_tokens.__init__(self, 'report_statement', '002', lTokens, oStart, oEnd) + split_line_at_token_when_between_tokens.__init__(self, lTokens, oStart, oEnd) self.solution = "Place **severity** keyword on its own line." diff --git a/vsg/rules/report_statement/rule_100.py b/vsg/rules/report_statement/rule_100.py index bed6c41f..da29238d 100644 --- a/vsg/rules/report_statement/rule_100.py +++ b/vsg/rules/report_statement/rule_100.py @@ -26,4 +26,4 @@ class rule_100(Rule): report "FIFO width is limited to 16 bits."; ''' def __init__(self): - Rule.__init__(self, 'report_statement', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/report_statement/rule_101.py b/vsg/rules/report_statement/rule_101.py index 2f932db4..c08524da 100644 --- a/vsg/rules/report_statement/rule_101.py +++ b/vsg/rules/report_statement/rule_101.py @@ -28,4 +28,4 @@ class rule_101(Rule): severity FAILURE; ''' def __init__(self): - Rule.__init__(self, 'report_statement', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/report_statement/rule_300.py b/vsg/rules/report_statement/rule_300.py index 44466e80..3498fc39 100644 --- a/vsg/rules/report_statement/rule_300.py +++ b/vsg/rules/report_statement/rule_300.py @@ -28,4 +28,4 @@ class rule_300(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'report_statement', '300', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/report_statement/rule_400.py b/vsg/rules/report_statement/rule_400.py index 037727c1..82ce2250 100644 --- a/vsg/rules/report_statement/rule_400.py +++ b/vsg/rules/report_statement/rule_400.py @@ -50,7 +50,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, name="report_statement", identifier="400") + Rule.__init__(self) self.lStartTokens = [report_statement.report_keyword] self.lEndTokens = [report_statement.severity_keyword, report_statement.semicolon] self.indentAdjust = 2 diff --git a/vsg/rules/report_statement/rule_500.py b/vsg/rules/report_statement/rule_500.py index 894c0522..dfa1f949 100644 --- a/vsg/rules/report_statement/rule_500.py +++ b/vsg/rules/report_statement/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'report_statement', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/report_statement/rule_501.py b/vsg/rules/report_statement/rule_501.py index 6ec2bf5a..223374b6 100644 --- a/vsg/rules/report_statement/rule_501.py +++ b/vsg/rules/report_statement/rule_501.py @@ -27,5 +27,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'report_statement', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/reserved/rule_001.py b/vsg/rules/reserved/rule_001.py index cb5aa7ac..d1e0a34f 100644 --- a/vsg/rules/reserved/rule_001.py +++ b/vsg/rules/reserved/rule_001.py @@ -97,11 +97,11 @@ class rule_001(structure.Rule): .. code-block:: vhdl entity null is - end null; + end null; ''' def __init__(self): - structure.Rule.__init__(self, 'reserved', '001') + structure.Rule.__init__(self) self.configuration.append('standard') self.standard = 'all' self.fixable = False diff --git a/vsg/rules/return_statement/rule_300.py b/vsg/rules/return_statement/rule_300.py index bf775ae2..cbffe13e 100644 --- a/vsg/rules/return_statement/rule_300.py +++ b/vsg/rules/return_statement/rule_300.py @@ -27,4 +27,4 @@ class rule_300(Rule): ''' def __init__(self): - Rule.__init__(self, 'return_statement', '300', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/return_statement/rule_500.py b/vsg/rules/return_statement/rule_500.py index 48a1461d..5135ba97 100644 --- a/vsg/rules/return_statement/rule_500.py +++ b/vsg/rules/return_statement/rule_500.py @@ -27,5 +27,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'return_statement', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/selected_assignment/rule_001.py b/vsg/rules/selected_assignment/rule_001.py index 62ab0992..a7512c26 100644 --- a/vsg/rules/selected_assignment/rule_001.py +++ b/vsg/rules/selected_assignment/rule_001.py @@ -35,5 +35,5 @@ class rule_001(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '001', lTokens, bInsertSpace=True) + Rule.__init__(self, lTokens, bInsertSpace=True) self.solution = 'Removed carraige returns after with keyword' diff --git a/vsg/rules/selected_assignment/rule_002.py b/vsg/rules/selected_assignment/rule_002.py index c0cc4a65..d10237f2 100644 --- a/vsg/rules/selected_assignment/rule_002.py +++ b/vsg/rules/selected_assignment/rule_002.py @@ -35,4 +35,4 @@ class rule_002(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_003.py b/vsg/rules/selected_assignment/rule_003.py index 09f0a6dd..75e15777 100644 --- a/vsg/rules/selected_assignment/rule_003.py +++ b/vsg/rules/selected_assignment/rule_003.py @@ -35,5 +35,5 @@ class rule_003(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '003', lTokens, bInsertSpace=True) + Rule.__init__(self, lTokens, bInsertSpace=True) self.solution = 'Removed carraige returns after with keyword' diff --git a/vsg/rules/selected_assignment/rule_004.py b/vsg/rules/selected_assignment/rule_004.py index a9e96984..9d32d898 100644 --- a/vsg/rules/selected_assignment/rule_004.py +++ b/vsg/rules/selected_assignment/rule_004.py @@ -35,4 +35,4 @@ class rule_004(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '004', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_005.py b/vsg/rules/selected_assignment/rule_005.py index bfd87f91..ac328d46 100644 --- a/vsg/rules/selected_assignment/rule_005.py +++ b/vsg/rules/selected_assignment/rule_005.py @@ -33,5 +33,5 @@ class rule_005(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '005', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after assignment to the next line.' diff --git a/vsg/rules/selected_assignment/rule_006.py b/vsg/rules/selected_assignment/rule_006.py index 307888fa..0aac738f 100644 --- a/vsg/rules/selected_assignment/rule_006.py +++ b/vsg/rules/selected_assignment/rule_006.py @@ -30,5 +30,5 @@ class rule_006(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '006', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after the force keyword to the next line.' diff --git a/vsg/rules/selected_assignment/rule_007.py b/vsg/rules/selected_assignment/rule_007.py index 7d3e0a9b..e14bfef9 100644 --- a/vsg/rules/selected_assignment/rule_007.py +++ b/vsg/rules/selected_assignment/rule_007.py @@ -34,5 +34,5 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '007', lTokens, lTokenPairs) + Rule.__init__(self, lTokens, lTokenPairs) self.solution = 'Move code after the force mode keyword to the next line.' diff --git a/vsg/rules/selected_assignment/rule_008.py b/vsg/rules/selected_assignment/rule_008.py index 0c1fbe1b..d4b4e6d2 100644 --- a/vsg/rules/selected_assignment/rule_008.py +++ b/vsg/rules/selected_assignment/rule_008.py @@ -30,5 +30,5 @@ class rule_008(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '008', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after the guarded keyword to the next line.' diff --git a/vsg/rules/selected_assignment/rule_009.py b/vsg/rules/selected_assignment/rule_009.py index afa42116..b65ab441 100644 --- a/vsg/rules/selected_assignment/rule_009.py +++ b/vsg/rules/selected_assignment/rule_009.py @@ -35,5 +35,5 @@ class rule_009(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '009', lTokens, lTokenPairs) + Rule.__init__(self, lTokens, lTokenPairs) self.solution = 'Move code after the delay mechanism keyword to the next line.' diff --git a/vsg/rules/selected_assignment/rule_010.py b/vsg/rules/selected_assignment/rule_010.py index 881bd876..ad936eb2 100644 --- a/vsg/rules/selected_assignment/rule_010.py +++ b/vsg/rules/selected_assignment/rule_010.py @@ -33,4 +33,4 @@ class rule_010(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '010', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_011.py b/vsg/rules/selected_assignment/rule_011.py index d962f7d3..ab3b11ff 100644 --- a/vsg/rules/selected_assignment/rule_011.py +++ b/vsg/rules/selected_assignment/rule_011.py @@ -34,5 +34,5 @@ class rule_011(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '011', lTokens, bInsertSpace=True) + Rule.__init__(self, lTokens, bInsertSpace=True) self.solution = 'Removed carraige returns after when keyword' diff --git a/vsg/rules/selected_assignment/rule_012.py b/vsg/rules/selected_assignment/rule_012.py index 3a3fb295..3e2b68f2 100644 --- a/vsg/rules/selected_assignment/rule_012.py +++ b/vsg/rules/selected_assignment/rule_012.py @@ -30,5 +30,5 @@ class rule_012(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '012', lTokens) + Rule.__init__(self, lTokens) self.solution = 'Move code after the comma to the next line.' diff --git a/vsg/rules/selected_assignment/rule_100.py b/vsg/rules/selected_assignment/rule_100.py index d1a046dc..c4cf016e 100644 --- a/vsg/rules/selected_assignment/rule_100.py +++ b/vsg/rules/selected_assignment/rule_100.py @@ -36,4 +36,4 @@ class rule_100(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '100', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_101.py b/vsg/rules/selected_assignment/rule_101.py index 00d47ffa..25f7e9b0 100644 --- a/vsg/rules/selected_assignment/rule_101.py +++ b/vsg/rules/selected_assignment/rule_101.py @@ -36,4 +36,4 @@ class rule_101(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '101', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_102.py b/vsg/rules/selected_assignment/rule_102.py index 98297417..8e639114 100644 --- a/vsg/rules/selected_assignment/rule_102.py +++ b/vsg/rules/selected_assignment/rule_102.py @@ -36,4 +36,4 @@ class rule_102(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '102', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_103.py b/vsg/rules/selected_assignment/rule_103.py index 0848c5bb..adfc9b9b 100644 --- a/vsg/rules/selected_assignment/rule_103.py +++ b/vsg/rules/selected_assignment/rule_103.py @@ -36,4 +36,4 @@ class rule_103(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '103', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_104.py b/vsg/rules/selected_assignment/rule_104.py index d2db7eb7..ccd43a4b 100644 --- a/vsg/rules/selected_assignment/rule_104.py +++ b/vsg/rules/selected_assignment/rule_104.py @@ -34,4 +34,4 @@ class rule_104(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '104', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_105.py b/vsg/rules/selected_assignment/rule_105.py index 74f9bde1..43d595a2 100644 --- a/vsg/rules/selected_assignment/rule_105.py +++ b/vsg/rules/selected_assignment/rule_105.py @@ -31,4 +31,4 @@ class rule_105(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '105', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_106.py b/vsg/rules/selected_assignment/rule_106.py index 917b1913..2de5b71a 100644 --- a/vsg/rules/selected_assignment/rule_106.py +++ b/vsg/rules/selected_assignment/rule_106.py @@ -34,4 +34,4 @@ class rule_106(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '106', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_107.py b/vsg/rules/selected_assignment/rule_107.py index cb825c39..b1bfd56d 100644 --- a/vsg/rules/selected_assignment/rule_107.py +++ b/vsg/rules/selected_assignment/rule_107.py @@ -34,4 +34,4 @@ class rule_107(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '107', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_300.py b/vsg/rules/selected_assignment/rule_300.py index 77d71523..e4aab195 100644 --- a/vsg/rules/selected_assignment/rule_300.py +++ b/vsg/rules/selected_assignment/rule_300.py @@ -38,4 +38,4 @@ class rule_300(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '300', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/selected_assignment/rule_400.py b/vsg/rules/selected_assignment/rule_400.py index 36146b88..cd434a9d 100644 --- a/vsg/rules/selected_assignment/rule_400.py +++ b/vsg/rules/selected_assignment/rule_400.py @@ -36,7 +36,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '400', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.phase = 5 self.configuration.remove('align_left') self.configuration.remove('align_paren') diff --git a/vsg/rules/selected_assignment/rule_500.py b/vsg/rules/selected_assignment/rule_500.py index b27d2d81..d4922fc8 100644 --- a/vsg/rules/selected_assignment/rule_500.py +++ b/vsg/rules/selected_assignment/rule_500.py @@ -36,5 +36,5 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/selected_assignment/rule_501.py b/vsg/rules/selected_assignment/rule_501.py index 6905109f..d5dda07d 100644 --- a/vsg/rules/selected_assignment/rule_501.py +++ b/vsg/rules/selected_assignment/rule_501.py @@ -36,5 +36,5 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/selected_assignment/rule_502.py b/vsg/rules/selected_assignment/rule_502.py index 92d542da..0384d435 100644 --- a/vsg/rules/selected_assignment/rule_502.py +++ b/vsg/rules/selected_assignment/rule_502.py @@ -33,5 +33,5 @@ class rule_502(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '502', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/selected_assignment/rule_503.py b/vsg/rules/selected_assignment/rule_503.py index 6b2b939b..fc4b7eba 100644 --- a/vsg/rules/selected_assignment/rule_503.py +++ b/vsg/rules/selected_assignment/rule_503.py @@ -34,5 +34,5 @@ class rule_503(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '503', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/selected_assignment/rule_999.py b/vsg/rules/selected_assignment/rule_999.py index 6d29c4be..def6cdc9 100644 --- a/vsg/rules/selected_assignment/rule_999.py +++ b/vsg/rules/selected_assignment/rule_999.py @@ -36,7 +36,7 @@ class rule_001(Rule): ''' def __init__(self): - Rule.__init__(self, 'selected_assignment', '001') + Rule.__init__(self) self.lTokenPairs = lTokenPairs self.add_option(newLineAfterWithKeywordOption()) self.add_option(newLineBeforeSelectKeywordOption()) diff --git a/vsg/rules/separate_multiple_signal_identifiers_into_individual_statements.py b/vsg/rules/separate_multiple_signal_identifiers_into_individual_statements.py index 89ce6de7..29f117d2 100644 --- a/vsg/rules/separate_multiple_signal_identifiers_into_individual_statements.py +++ b/vsg/rules/separate_multiple_signal_identifiers_into_individual_statements.py @@ -29,8 +29,8 @@ class separate_multiple_signal_identifiers_into_individual_statements(structure. acceptable prefixes ''' - def __init__(self, name, identifier, lTokens, iAllow=2): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, iAllow=2): + structure.Rule.__init__(self) self.solution = 'Split signal declaration into individual declarations' self.lTokens = lTokens self.consecutive = iAllow diff --git a/vsg/rules/sequential/rule_001.py b/vsg/rules/sequential/rule_001.py index 9c025a4d..57c04b2c 100644 --- a/vsg/rules/sequential/rule_001.py +++ b/vsg/rules/sequential/rule_001.py @@ -34,4 +34,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'sequential', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/sequential/rule_002.py b/vsg/rules/sequential/rule_002.py index 8dd7133d..fd76eee2 100644 --- a/vsg/rules/sequential/rule_002.py +++ b/vsg/rules/sequential/rule_002.py @@ -34,4 +34,4 @@ class rule_002(Rule): rd_en <= '0'; ''' def __init__(self): - Rule.__init__(self, 'sequential', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/sequential/rule_003.py b/vsg/rules/sequential/rule_003.py index 974f36f4..8dc82bc9 100644 --- a/vsg/rules/sequential/rule_003.py +++ b/vsg/rules/sequential/rule_003.py @@ -30,5 +30,5 @@ class rule_003(Rule): rd_en <= '0'; ''' def __init__(self): - Rule.__init__(self, 'sequential', '003', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/sequential/rule_004.py b/vsg/rules/sequential/rule_004.py index f8c61ecd..5af40936 100644 --- a/vsg/rules/sequential/rule_004.py +++ b/vsg/rules/sequential/rule_004.py @@ -32,6 +32,6 @@ class rule_004(multiline_alignment_between_tokens): ''' def __init__(self): - multiline_alignment_between_tokens.__init__(self, 'sequential', '004', lTokenPairs) + multiline_alignment_between_tokens.__init__(self, lTokenPairs) self.phase = 5 self.subphase = 2 diff --git a/vsg/rules/sequential/rule_005.py b/vsg/rules/sequential/rule_005.py index 07e86dc2..ac811d9d 100644 --- a/vsg/rules/sequential/rule_005.py +++ b/vsg/rules/sequential/rule_005.py @@ -8,5 +8,5 @@ class rule_005(Rule): ''' def __init__(self): - Rule.__init__(self, 'sequential', '005') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been merged into process_400.') diff --git a/vsg/rules/sequential/rule_006.py b/vsg/rules/sequential/rule_006.py index 67fa1ab5..7cab9587 100644 --- a/vsg/rules/sequential/rule_006.py +++ b/vsg/rules/sequential/rule_006.py @@ -33,6 +33,6 @@ class rule_006(remove_lines_starting_with_token_between_token_pairs): ''' def __init__(self): - remove_lines_starting_with_token_between_token_pairs.__init__(self, 'sequential', '006', oRemoveToken, lTokens) + remove_lines_starting_with_token_between_token_pairs.__init__(self, oRemoveToken, lTokens) self.solution = 'Remove comments inside sequential assignment' self.fixable = False diff --git a/vsg/rules/sequential/rule_007.py b/vsg/rules/sequential/rule_007.py index d16d9059..a77a5944 100644 --- a/vsg/rules/sequential/rule_007.py +++ b/vsg/rules/sequential/rule_007.py @@ -29,5 +29,5 @@ class rule_007(insert_carriage_return_after_token_if_it_is_not_followed_by_a_com ''' def __init__(self): - insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, 'sequential', '007', lTokens) + insert_carriage_return_after_token_if_it_is_not_followed_by_a_comment.__init__(self, lTokens) self.solution = 'Move code after the ; to the next line.' diff --git a/vsg/rules/sequential/rule_008.py b/vsg/rules/sequential/rule_008.py index 5c9b578b..3b5d5541 100644 --- a/vsg/rules/sequential/rule_008.py +++ b/vsg/rules/sequential/rule_008.py @@ -40,4 +40,4 @@ class rule_008(Rule): ''' def __init__(self): - Rule.__init__(self, 'sequential', '008', lTokenPairs) + Rule.__init__(self, lTokenPairs) diff --git a/vsg/rules/sequential/rule_009.py b/vsg/rules/sequential/rule_009.py index c7f1acf4..d7d05964 100644 --- a/vsg/rules/sequential/rule_009.py +++ b/vsg/rules/sequential/rule_009.py @@ -32,6 +32,6 @@ class rule_009(Rule): ''' def __init__(self): - Rule.__init__(self, 'sequential', '009', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.simple_waveform_assignment.assignment self.semicolon = token.simple_waveform_assignment.semicolon diff --git a/vsg/rules/sequential/rule_400.py b/vsg/rules/sequential/rule_400.py index 48acdd08..cf9dfa96 100644 --- a/vsg/rules/sequential/rule_400.py +++ b/vsg/rules/sequential/rule_400.py @@ -38,7 +38,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'sequential', '400', lAlign, oStart, oEnd) + Rule.__init__(self, lAlign, oStart, oEnd) self.phase = 5 self.subphase = 3 self.solution = 'Align =>' diff --git a/vsg/rules/sequential/rule_401.py b/vsg/rules/sequential/rule_401.py index 6e43b17d..486e5e57 100644 --- a/vsg/rules/sequential/rule_401.py +++ b/vsg/rules/sequential/rule_401.py @@ -37,4 +37,4 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'sequential', '401', lTokenPairs) + Rule.__init__(self, lTokenPairs) diff --git a/vsg/rules/sequential/rule_402.py b/vsg/rules/sequential/rule_402.py index 927c6a3f..230d491c 100644 --- a/vsg/rules/sequential/rule_402.py +++ b/vsg/rules/sequential/rule_402.py @@ -38,5 +38,5 @@ class rule_402(Rule): ''' def __init__(self): - Rule.__init__(self, 'sequential', '402', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.simple_waveform_assignment.assignment diff --git a/vsg/rules/signal/rule_001.py b/vsg/rules/signal/rule_001.py index c0998b2b..131706de 100644 --- a/vsg/rules/signal/rule_001.py +++ b/vsg/rules/signal/rule_001.py @@ -35,4 +35,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'signal', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/signal/rule_002.py b/vsg/rules/signal/rule_002.py index 3af1ed7f..5e53d1cb 100644 --- a/vsg/rules/signal/rule_002.py +++ b/vsg/rules/signal/rule_002.py @@ -27,5 +27,5 @@ class rule_002(token_case): ''' def __init__(self): - token_case.__init__(self, 'signal', '002', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/signal/rule_003.py b/vsg/rules/signal/rule_003.py index 1d7dd7bc..d7505699 100644 --- a/vsg/rules/signal/rule_003.py +++ b/vsg/rules/signal/rule_003.py @@ -12,7 +12,7 @@ class rule_003(deprecated_rule.Rule): * `architecture_029 `_ ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'signal', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with the following rules:') self.message.append(' function_015') self.message.append(' package_019') diff --git a/vsg/rules/signal/rule_004.py b/vsg/rules/signal/rule_004.py index eec6dfab..4d634882 100644 --- a/vsg/rules/signal/rule_004.py +++ b/vsg/rules/signal/rule_004.py @@ -27,5 +27,5 @@ class rule_004(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'signal', '004', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/signal/rule_005.py b/vsg/rules/signal/rule_005.py index 3a1e4aa4..45319719 100644 --- a/vsg/rules/signal/rule_005.py +++ b/vsg/rules/signal/rule_005.py @@ -28,4 +28,4 @@ class rule_005(Rule): signal rd_en : std_logic; ''' def __init__(self): - Rule.__init__(self, 'signal', '005', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/signal/rule_006.py b/vsg/rules/signal/rule_006.py index beb8b6a6..cacd1c4b 100644 --- a/vsg/rules/signal/rule_006.py +++ b/vsg/rules/signal/rule_006.py @@ -28,5 +28,5 @@ class rule_006(Rule): signal rd_en : std_logic; ''' def __init__(self): - Rule.__init__(self, 'signal', '006', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/signal/rule_007.py b/vsg/rules/signal/rule_007.py index 18cc6144..3578bd89 100644 --- a/vsg/rules/signal/rule_007.py +++ b/vsg/rules/signal/rule_007.py @@ -27,6 +27,6 @@ class rule_007(existence_of_tokens_which_should_not_occur): ''' def __init__(self): - existence_of_tokens_which_should_not_occur.__init__(self, 'signal', '007', lTokens) + existence_of_tokens_which_should_not_occur.__init__(self, lTokens) self.solution = 'Remove default assignment.' self.configuration_documentation_link = None diff --git a/vsg/rules/signal/rule_008.py b/vsg/rules/signal/rule_008.py index b9633758..afc60609 100644 --- a/vsg/rules/signal/rule_008.py +++ b/vsg/rules/signal/rule_008.py @@ -30,6 +30,6 @@ class rule_008(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'signal', '008', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['s_'] self.solution = 'Signal identifiers' diff --git a/vsg/rules/signal/rule_010.py b/vsg/rules/signal/rule_010.py index 2727bec1..f83b84a6 100644 --- a/vsg/rules/signal/rule_010.py +++ b/vsg/rules/signal/rule_010.py @@ -7,5 +7,5 @@ class rule_010(deprecated_rule.Rule): The function of this rule has been moved to rule ieee_500. ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'signal', '010') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with rule ieee_500.') diff --git a/vsg/rules/signal/rule_011.py b/vsg/rules/signal/rule_011.py index ededb7e6..57aa5ccd 100644 --- a/vsg/rules/signal/rule_011.py +++ b/vsg/rules/signal/rule_011.py @@ -11,7 +11,7 @@ class rule_011(deprecated_rule.Rule): * type_014 ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'signal', '011') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been superceeded by the following rules:') self.message.append(' ieee_500') self.message.append(' subtype_002') diff --git a/vsg/rules/signal/rule_012.py b/vsg/rules/signal/rule_012.py index b672f744..82e7cdbf 100644 --- a/vsg/rules/signal/rule_012.py +++ b/vsg/rules/signal/rule_012.py @@ -34,7 +34,7 @@ class rule_012(alignment.Rule): ''' def __init__(self): - alignment.Rule.__init__(self, 'signal', '012') + alignment.Rule.__init__(self) self.subphase = 2 self.left_token = token.architecture_body.is_keyword self.right_token = token.architecture_body.begin_keyword diff --git a/vsg/rules/signal/rule_014.py b/vsg/rules/signal/rule_014.py index 6ed393dd..22bc02dc 100644 --- a/vsg/rules/signal/rule_014.py +++ b/vsg/rules/signal/rule_014.py @@ -81,4 +81,4 @@ class rule_014(Rule): ''' def __init__(self): - Rule.__init__(self, 'signal', '014', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) diff --git a/vsg/rules/signal/rule_015.py b/vsg/rules/signal/rule_015.py index 91d0aad2..0c0d89c5 100644 --- a/vsg/rules/signal/rule_015.py +++ b/vsg/rules/signal/rule_015.py @@ -32,4 +32,4 @@ class rule_015(separate_multiple_signal_identifiers_into_individual_statements): ''' def __init__(self): - separate_multiple_signal_identifiers_into_individual_statements.__init__(self, 'signal', '015', iAllow) + separate_multiple_signal_identifiers_into_individual_statements.__init__(self, iAllow) diff --git a/vsg/rules/signal/rule_016.py b/vsg/rules/signal/rule_016.py index 1362cb2d..9d1567cf 100644 --- a/vsg/rules/signal/rule_016.py +++ b/vsg/rules/signal/rule_016.py @@ -9,6 +9,6 @@ class rule_016(deprecated_rule.Rule): * `signal_017 `_ ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'signal', '016') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with the following rule:') self.message.append(' signal_017') diff --git a/vsg/rules/signal/rule_017.py b/vsg/rules/signal/rule_017.py index 14a29cb0..94504085 100644 --- a/vsg/rules/signal/rule_017.py +++ b/vsg/rules/signal/rule_017.py @@ -32,5 +32,5 @@ class rule_017(Rule): ''' def __init__(self): - Rule.__init__(self, 'signal', '017') + Rule.__init__(self) self.lTokenPairs = lTokenPairs diff --git a/vsg/rules/signal/rule_100.py b/vsg/rules/signal/rule_100.py index ed43723f..5c67f2ac 100644 --- a/vsg/rules/signal/rule_100.py +++ b/vsg/rules/signal/rule_100.py @@ -25,7 +25,7 @@ class rule_100(Rule): signal width : integer; ''' def __init__(self): - Rule.__init__(self, 'signal', '100') + Rule.__init__(self) self.disable = True self.left_token = token.signal_keyword self.right_token = token.identifier diff --git a/vsg/rules/signal/rule_101.py b/vsg/rules/signal/rule_101.py index 4aab76c9..e044462d 100644 --- a/vsg/rules/signal/rule_101.py +++ b/vsg/rules/signal/rule_101.py @@ -28,5 +28,5 @@ class rule_101(Rule): signal rd_en : std_logic := '1'; ''' def __init__(self): - Rule.__init__(self, 'signal', '101', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/signal/rule_102.py b/vsg/rules/signal/rule_102.py index 38800108..06a23bbc 100644 --- a/vsg/rules/signal/rule_102.py +++ b/vsg/rules/signal/rule_102.py @@ -28,4 +28,4 @@ class rule_102(Rule): signal rd_en : std_logic := '1'; ''' def __init__(self): - Rule.__init__(self, 'signal', '102', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/signal/rule_200.py b/vsg/rules/signal/rule_200.py index 0e33bbd6..ff1be4d2 100644 --- a/vsg/rules/signal/rule_200.py +++ b/vsg/rules/signal/rule_200.py @@ -35,6 +35,6 @@ class rule_200(Rule): ''' def __init__(self): - Rule.__init__(self, 'signal', '200', lTokens, lAllowTokens) + Rule.__init__(self, lTokens, lAllowTokens) self.disable = True self.configuration.remove('style') diff --git a/vsg/rules/signal/rule_400.py b/vsg/rules/signal/rule_400.py index 801e0226..39bdd996 100644 --- a/vsg/rules/signal/rule_400.py +++ b/vsg/rules/signal/rule_400.py @@ -33,7 +33,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'signal', '400', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.phase = 5 self.subphase = 3 self.bIgnoreStartParen = True diff --git a/vsg/rules/signal/rule_600.py b/vsg/rules/signal/rule_600.py index 2b1de7f4..dfec159f 100644 --- a/vsg/rules/signal/rule_600.py +++ b/vsg/rules/signal/rule_600.py @@ -30,6 +30,6 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'signal', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_s'] self.solution = 'Signal identifiers' diff --git a/vsg/rules/source_file/rule_001.py b/vsg/rules/source_file/rule_001.py index 1d7498e8..bb58fb72 100644 --- a/vsg/rules/source_file/rule_001.py +++ b/vsg/rules/source_file/rule_001.py @@ -19,7 +19,7 @@ class rule_001(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'source_file', '001') + structure.Rule.__init__(self) # These are filled out when creating a new rule self.fixable = False self.solution = 'File empty.' diff --git a/vsg/rules/spaces_before_and_after_tokens_when_bounded_by_tokens.py b/vsg/rules/spaces_before_and_after_tokens_when_bounded_by_tokens.py index d45925b0..53dbdfe5 100644 --- a/vsg/rules/spaces_before_and_after_tokens_when_bounded_by_tokens.py +++ b/vsg/rules/spaces_before_and_after_tokens_when_bounded_by_tokens.py @@ -25,8 +25,8 @@ class spaces_before_and_after_tokens_when_bounded_by_tokens(whitespace.Rule): The tokens to check for a single space between ''' - def __init__(self, name, identifier, lTokens, lBetween): - whitespace.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, lBetween): + whitespace.Rule.__init__(self) self.lTokens = lTokens self.spaces_before = 1 self.configuration.append('spaces_before') diff --git a/vsg/rules/split_line_at_token.py b/vsg/rules/split_line_at_token.py index c6629af5..53c77e33 100644 --- a/vsg/rules/split_line_at_token.py +++ b/vsg/rules/split_line_at_token.py @@ -23,8 +23,8 @@ class split_line_at_token(structure.Rule): object type to split a line at ''' - def __init__(self, name, identifier, lTokens): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + structure.Rule.__init__(self) self.lTokens = lTokens self.configuration_documentation_link = None diff --git a/vsg/rules/split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.py b/vsg/rules/split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.py index b8b640c6..fa193df0 100644 --- a/vsg/rules/split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.py +++ b/vsg/rules/split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.py @@ -32,8 +32,8 @@ class split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_ The end of the range ''' - def __init__(self, name, identifier, oToken, oSameLineToken, lTokenPair): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, oToken, oSameLineToken, lTokenPair): + structure.Rule.__init__(self) self.solution = None self.phase = 1 self.oToken = oToken diff --git a/vsg/rules/split_line_at_token_when_between_tokens.py b/vsg/rules/split_line_at_token_when_between_tokens.py index 1cf95657..3b00c537 100644 --- a/vsg/rules/split_line_at_token_when_between_tokens.py +++ b/vsg/rules/split_line_at_token_when_between_tokens.py @@ -30,8 +30,8 @@ class split_line_at_token_when_between_tokens(structure.Rule): The end of the range ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, oStart, oEnd): + structure.Rule.__init__(self) self.solution = None self.phase = 1 self.lTokens = lTokens diff --git a/vsg/rules/split_line_at_token_when_between_tokens_unless_token_is_found.py b/vsg/rules/split_line_at_token_when_between_tokens_unless_token_is_found.py index c8ea1e99..a331a721 100644 --- a/vsg/rules/split_line_at_token_when_between_tokens_unless_token_is_found.py +++ b/vsg/rules/split_line_at_token_when_between_tokens_unless_token_is_found.py @@ -30,8 +30,8 @@ class split_line_at_token_when_between_tokens_unless_token_is_found(structure.Ru The end of the range ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd, oStop): - structure.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, oStart, oEnd, oStop): + structure.Rule.__init__(self) self.solution = None self.phase = 1 self.lTokens = lTokens diff --git a/vsg/rules/subprogram_body/rule_201.py b/vsg/rules/subprogram_body/rule_201.py index 24654f69..0bb9e35e 100644 --- a/vsg/rules/subprogram_body/rule_201.py +++ b/vsg/rules/subprogram_body/rule_201.py @@ -42,4 +42,4 @@ class rule_201(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'subprogram_body', '201', lTokens, lAllowTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens, lAllowTokens) diff --git a/vsg/rules/subprogram_body/rule_202.py b/vsg/rules/subprogram_body/rule_202.py index cac3c8f8..9c753dfc 100644 --- a/vsg/rules/subprogram_body/rule_202.py +++ b/vsg/rules/subprogram_body/rule_202.py @@ -44,4 +44,4 @@ class rule_202(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'subprogram_body', '202', lTokens, lAllowTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens, lAllowTokens) diff --git a/vsg/rules/subprogram_body/rule_203.py b/vsg/rules/subprogram_body/rule_203.py index f8c8aaa8..f79e296c 100644 --- a/vsg/rules/subprogram_body/rule_203.py +++ b/vsg/rules/subprogram_body/rule_203.py @@ -32,4 +32,4 @@ class rule_203(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'subprogram_body', '203', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/subprogram_body/rule_204.py b/vsg/rules/subprogram_body/rule_204.py index a8654ce6..59051bf4 100644 --- a/vsg/rules/subprogram_body/rule_204.py +++ b/vsg/rules/subprogram_body/rule_204.py @@ -34,4 +34,4 @@ class rule_204(blank_line_above_line_starting_with_token): ''' def __init__(self): - blank_line_above_line_starting_with_token.__init__(self, 'subprogram_body', '204', lTokens) + blank_line_above_line_starting_with_token.__init__(self, lTokens) diff --git a/vsg/rules/subprogram_body/rule_205.py b/vsg/rules/subprogram_body/rule_205.py index 50c136c4..2aababd1 100644 --- a/vsg/rules/subprogram_body/rule_205.py +++ b/vsg/rules/subprogram_body/rule_205.py @@ -32,4 +32,4 @@ class rule_205(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'subprogram_body', '205', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/subprogram_body/rule_400.py b/vsg/rules/subprogram_body/rule_400.py index 91e31e0b..38bdb0af 100644 --- a/vsg/rules/subprogram_body/rule_400.py +++ b/vsg/rules/subprogram_body/rule_400.py @@ -46,7 +46,7 @@ class rule_400(align_tokens_in_region_between_tokens_unless_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, 'subprogram_body', '400', lAlign, oStart, oEnd, lUnless) + align_tokens_in_region_between_tokens_unless_between_tokens.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'Align identifer.' self.if_control_statements_ends_group = 'yes' self.case_control_statements_ends_group = 'yes' diff --git a/vsg/rules/subprogram_body/rule_401.py b/vsg/rules/subprogram_body/rule_401.py index 2ec6ae2a..5de3fa8f 100644 --- a/vsg/rules/subprogram_body/rule_401.py +++ b/vsg/rules/subprogram_body/rule_401.py @@ -36,6 +36,6 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'subprogram_body', '401', lAlign, oStart, oEnd, lUnless) + Rule.__init__(self, lAlign, oStart, oEnd, lUnless) self.solution = 'Align colon.' self.configuration.remove('separate_generic_port_alignment') diff --git a/vsg/rules/subtype/rule_001.py b/vsg/rules/subtype/rule_001.py index cc71e1b7..49b68c3e 100644 --- a/vsg/rules/subtype/rule_001.py +++ b/vsg/rules/subtype/rule_001.py @@ -36,4 +36,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'subtype', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/subtype/rule_002.py b/vsg/rules/subtype/rule_002.py index 297e3a5d..972c9b04 100644 --- a/vsg/rules/subtype/rule_002.py +++ b/vsg/rules/subtype/rule_002.py @@ -45,5 +45,5 @@ class rule_002(Rule): ''' def __init__(self): - Rule.__init__(self, 'subtype', '002', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) self.bIncludeDeclarativePartNames = True diff --git a/vsg/rules/subtype/rule_003.py b/vsg/rules/subtype/rule_003.py index 999c6425..d7505699 100644 --- a/vsg/rules/subtype/rule_003.py +++ b/vsg/rules/subtype/rule_003.py @@ -12,7 +12,7 @@ class rule_003(deprecated_rule.Rule): * `architecture_029 `_ ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'subtype', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with the following rules:') self.message.append(' function_015') self.message.append(' package_019') diff --git a/vsg/rules/subtype/rule_004.py b/vsg/rules/subtype/rule_004.py index 7e94e0c8..21c4a3c2 100644 --- a/vsg/rules/subtype/rule_004.py +++ b/vsg/rules/subtype/rule_004.py @@ -28,5 +28,5 @@ class rule_004(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'subtype', '004', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['st_'] diff --git a/vsg/rules/subtype/rule_100.py b/vsg/rules/subtype/rule_100.py index a6744dbb..e281cae1 100644 --- a/vsg/rules/subtype/rule_100.py +++ b/vsg/rules/subtype/rule_100.py @@ -23,7 +23,7 @@ class rule_100(Rule): subtype my_subtype is range 0 to 9; ''' def __init__(self): - Rule.__init__(self, 'subtype', '100') + Rule.__init__(self) self.disable = True self.left_token = token.subtype_keyword self.right_token = token.identifier diff --git a/vsg/rules/subtype/rule_500.py b/vsg/rules/subtype/rule_500.py index 21e40d75..261cbde0 100644 --- a/vsg/rules/subtype/rule_500.py +++ b/vsg/rules/subtype/rule_500.py @@ -31,5 +31,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'subtype', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/subtype/rule_501.py b/vsg/rules/subtype/rule_501.py index dd7fbc38..b8f1c865 100644 --- a/vsg/rules/subtype/rule_501.py +++ b/vsg/rules/subtype/rule_501.py @@ -31,5 +31,5 @@ class rule_501(token_case): ''' def __init__(self): - token_case.__init__(self, 'subtype', '501', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/subtype/rule_502.py b/vsg/rules/subtype/rule_502.py index d7de5605..1413b509 100644 --- a/vsg/rules/subtype/rule_502.py +++ b/vsg/rules/subtype/rule_502.py @@ -31,5 +31,5 @@ class rule_502(token_case): ''' def __init__(self): - token_case.__init__(self, 'subtype', '502', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/subtype/rule_600.py b/vsg/rules/subtype/rule_600.py index 43b5ffdd..fe3f5ebe 100644 --- a/vsg/rules/subtype/rule_600.py +++ b/vsg/rules/subtype/rule_600.py @@ -28,5 +28,5 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'subtype', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_st'] diff --git a/vsg/rules/token_case.py b/vsg/rules/token_case.py index 9385971d..e65fabdb 100644 --- a/vsg/rules/token_case.py +++ b/vsg/rules/token_case.py @@ -21,8 +21,8 @@ class token_case(case.Rule): The token types to check the case on. ''' - def __init__(self, name, identifier, lTokens): - case.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + case.Rule.__init__(self) self.solution = None self.phase = 6 self.case = 'lower' diff --git a/vsg/rules/token_case_formal_part_of_association_element_in_map_between_tokens.py b/vsg/rules/token_case_formal_part_of_association_element_in_map_between_tokens.py index 51daf287..e6d85c6a 100644 --- a/vsg/rules/token_case_formal_part_of_association_element_in_map_between_tokens.py +++ b/vsg/rules/token_case_formal_part_of_association_element_in_map_between_tokens.py @@ -25,8 +25,8 @@ class token_case_formal_part_of_association_element_in_map_between_tokens(case.R object type to apply the case check against ''' - def __init__(self, name, identifier, sMapType, oStart, oEnd): - case.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, sMapType, oStart, oEnd): + case.Rule.__init__(self) self.solution = None self.phase = 6 self.case = 'lower' diff --git a/vsg/rules/token_case_in_range_bounded_by_tokens.py b/vsg/rules/token_case_in_range_bounded_by_tokens.py index 8ca3c29a..281ce1c2 100644 --- a/vsg/rules/token_case_in_range_bounded_by_tokens.py +++ b/vsg/rules/token_case_in_range_bounded_by_tokens.py @@ -23,8 +23,8 @@ class token_case_in_range_bounded_by_tokens(rules.token_case): oEnd : token type ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - rules.token_case.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens, oStart, oEnd): + rules.token_case.__init__(self, lTokens=lTokens) self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/token_case_in_range_bounded_by_tokens_with_prefix_suffix.py b/vsg/rules/token_case_in_range_bounded_by_tokens_with_prefix_suffix.py index 7c03d386..92416995 100644 --- a/vsg/rules/token_case_in_range_bounded_by_tokens_with_prefix_suffix.py +++ b/vsg/rules/token_case_in_range_bounded_by_tokens_with_prefix_suffix.py @@ -23,8 +23,8 @@ class token_case_in_range_bounded_by_tokens_with_prefix_suffix(rules.token_case_ oEnd : token type ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - rules.token_case_with_prefix_suffix.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens, oStart, oEnd): + rules.token_case_with_prefix_suffix.__init__(self, lTokens=lTokens) self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/token_case_n_token_after_tokens_between_tokens.py b/vsg/rules/token_case_n_token_after_tokens_between_tokens.py index a0639536..10114985 100644 --- a/vsg/rules/token_case_n_token_after_tokens_between_tokens.py +++ b/vsg/rules/token_case_n_token_after_tokens_between_tokens.py @@ -29,8 +29,8 @@ class token_case_n_token_after_tokens_between_tokens(case.Rule): object type to apply the case check against ''' - def __init__(self, name, identifier, iToken, lTokens, oStart, oEnd, bLimitToVhdlKeywords=False): - case.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, iToken, lTokens, oStart, oEnd, bLimitToVhdlKeywords=False): + case.Rule.__init__(self) self.solution = None self.phase = 6 self.case = 'lower' diff --git a/vsg/rules/token_case_subtype_indication.py b/vsg/rules/token_case_subtype_indication.py index 299d6e1f..9fb6c562 100644 --- a/vsg/rules/token_case_subtype_indication.py +++ b/vsg/rules/token_case_subtype_indication.py @@ -22,8 +22,8 @@ class token_case_subtype_indication(rules.token_case): The token types to stop searching. ''' - def __init__(self, name, identifier, lTokens, lEndTokens): - rules.token_case.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens, lEndTokens): + rules.token_case.__init__(self, lTokens=lTokens) self.lEndTokens = lEndTokens def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/token_case_with_prefix_suffix.py b/vsg/rules/token_case_with_prefix_suffix.py index 1833dc72..d030ec13 100644 --- a/vsg/rules/token_case_with_prefix_suffix.py +++ b/vsg/rules/token_case_with_prefix_suffix.py @@ -19,8 +19,8 @@ class token_case_with_prefix_suffix(rules.token_case): The token types to check the case on. ''' - def __init__(self, name, identifier, lTokens): - rules.token_case.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens): + rules.token_case.__init__(self, lTokens=lTokens) self.configuration.append('prefix_exceptions') self.configuration.append('suffix_exceptions') self.configuration.append('case_exceptions') diff --git a/vsg/rules/token_does_not_exist_before_token.py b/vsg/rules/token_does_not_exist_before_token.py index 302401ac..cd35ea92 100644 --- a/vsg/rules/token_does_not_exist_before_token.py +++ b/vsg/rules/token_does_not_exist_before_token.py @@ -9,8 +9,8 @@ class Rule(structure.Rule): This rule checks if a token pair does not exist. ''' - def __init__(self, name, identifier, oFirstToken, oSecondToken): - structure.Rule.__init__(self, name, identifier) + def __init__(self, oFirstToken, oSecondToken): + structure.Rule.__init__(self) self.oFirstToken = oFirstToken self.oSecondToken = oSecondToken self.configuration_documentation_link = None diff --git a/vsg/rules/token_indent.py b/vsg/rules/token_indent.py index 78d071d4..1c893695 100644 --- a/vsg/rules/token_indent.py +++ b/vsg/rules/token_indent.py @@ -23,8 +23,8 @@ class token_indent(indent.Rule): token type to apply the indent rule ''' - def __init__(self, name, identifier, lTokens): - indent.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + indent.Rule.__init__(self) self.lTokens = lTokens def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/token_indent_between_tokens.py b/vsg/rules/token_indent_between_tokens.py index e249dc58..7d248677 100644 --- a/vsg/rules/token_indent_between_tokens.py +++ b/vsg/rules/token_indent_between_tokens.py @@ -7,8 +7,8 @@ class token_indent_between_tokens(Rule): Checks the indent of tokens. ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd, bInclusive=False): - Rule.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens, oStart, oEnd, bInclusive=False): + Rule.__init__(self, lTokens=lTokens) self.oStart = oStart self.oEnd = oEnd self.bInclusive = bInclusive diff --git a/vsg/rules/token_indent_unless_between_tokens.py b/vsg/rules/token_indent_unless_between_tokens.py index 510149f1..1498f6ae 100644 --- a/vsg/rules/token_indent_unless_between_tokens.py +++ b/vsg/rules/token_indent_unless_between_tokens.py @@ -7,8 +7,8 @@ class token_indent_unless_between_tokens(Rule): Checks the indent of tokens. ''' - def __init__(self, name, identifier, lTokens, lUnless): - Rule.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens, lUnless): + Rule.__init__(self, lTokens=lTokens) self.lUnless = lUnless def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/token_prefix.py b/vsg/rules/token_prefix.py index 13c746f3..46472efe 100644 --- a/vsg/rules/token_prefix.py +++ b/vsg/rules/token_prefix.py @@ -26,8 +26,8 @@ class token_prefix(naming.Rule): acceptable prefixes ''' - def __init__(self, name, identifier, lTokens): - naming.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + naming.Rule.__init__(self) self.lTokens = lTokens self.prefixes = None self.configuration.append('prefixes') diff --git a/vsg/rules/token_prefix_between_tokens.py b/vsg/rules/token_prefix_between_tokens.py index 37486e09..ee6b0f1b 100644 --- a/vsg/rules/token_prefix_between_tokens.py +++ b/vsg/rules/token_prefix_between_tokens.py @@ -26,8 +26,8 @@ class token_prefix_between_tokens(Rule): acceptable prefixes ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - Rule.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens, oStart, oEnd): + Rule.__init__(self, lTokens=lTokens) self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/token_suffix.py b/vsg/rules/token_suffix.py index eedd2250..677e443c 100644 --- a/vsg/rules/token_suffix.py +++ b/vsg/rules/token_suffix.py @@ -24,8 +24,8 @@ class token_suffix(naming.Rule): acceptable suffixes ''' - def __init__(self, name, identifier, lTokens): - naming.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + naming.Rule.__init__(self) self.lTokens = lTokens self.suffixes = None self.configuration.append('suffixes') diff --git a/vsg/rules/token_suffix_between_tokens.py b/vsg/rules/token_suffix_between_tokens.py index e13e88e7..2cf7d8c3 100644 --- a/vsg/rules/token_suffix_between_tokens.py +++ b/vsg/rules/token_suffix_between_tokens.py @@ -24,8 +24,8 @@ class token_suffix_between_tokens(Rule): acceptable suffixes ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - Rule.__init__(self, name=name, identifier=identifier, lTokens=lTokens) + def __init__(self, lTokens, oStart, oEnd): + Rule.__init__(self, lTokens=lTokens) self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/type_definition/rule_001.py b/vsg/rules/type_definition/rule_001.py index a7762289..976379ec 100644 --- a/vsg/rules/type_definition/rule_001.py +++ b/vsg/rules/type_definition/rule_001.py @@ -34,4 +34,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'type', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/type_definition/rule_002.py b/vsg/rules/type_definition/rule_002.py index a4c17292..c67e6645 100644 --- a/vsg/rules/type_definition/rule_002.py +++ b/vsg/rules/type_definition/rule_002.py @@ -28,5 +28,5 @@ class rule_002(token_case): ''' def __init__(self): - token_case.__init__(self, 'type', '002', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/type_definition/rule_003.py b/vsg/rules/type_definition/rule_003.py index 3785ac0c..d7505699 100644 --- a/vsg/rules/type_definition/rule_003.py +++ b/vsg/rules/type_definition/rule_003.py @@ -12,7 +12,7 @@ class rule_003(deprecated_rule.Rule): * `architecture_029 `_ ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'type', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with the following rules:') self.message.append(' function_015') self.message.append(' package_019') diff --git a/vsg/rules/type_definition/rule_004.py b/vsg/rules/type_definition/rule_004.py index 9b49457c..3829801e 100644 --- a/vsg/rules/type_definition/rule_004.py +++ b/vsg/rules/type_definition/rule_004.py @@ -28,7 +28,7 @@ class rule_004(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'type', '004', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.configuration.append('prefix_exceptions') self.configuration.append('suffix_exceptions') self.groups.append('case::name') diff --git a/vsg/rules/type_definition/rule_005.py b/vsg/rules/type_definition/rule_005.py index 3c92dc6d..d834bd4e 100644 --- a/vsg/rules/type_definition/rule_005.py +++ b/vsg/rules/type_definition/rule_005.py @@ -33,5 +33,5 @@ class rule_005(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'type', '005', lTokens) + token_indent.__init__(self, lTokens) self.solution = 'Ensure proper indentation.' diff --git a/vsg/rules/type_definition/rule_006.py b/vsg/rules/type_definition/rule_006.py index 98f3c28c..add476ad 100644 --- a/vsg/rules/type_definition/rule_006.py +++ b/vsg/rules/type_definition/rule_006.py @@ -26,4 +26,4 @@ class rule_006(Rule): type state_machine is (idle, write, read, done); ''' def __init__(self): - Rule.__init__(self, 'type', '006', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/type_definition/rule_007.py b/vsg/rules/type_definition/rule_007.py index 0aaab308..267a26c1 100644 --- a/vsg/rules/type_definition/rule_007.py +++ b/vsg/rules/type_definition/rule_007.py @@ -32,4 +32,4 @@ class rule_007(Rule): type state_machine is (idle, write, read, done); ''' def __init__(self): - Rule.__init__(self, 'type', '007', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/type_definition/rule_008.py b/vsg/rules/type_definition/rule_008.py index 48cd6671..c47b21c3 100644 --- a/vsg/rules/type_definition/rule_008.py +++ b/vsg/rules/type_definition/rule_008.py @@ -37,5 +37,5 @@ class rule_008(split_line_at_token_if_on_same_line_as_token_if_token_pair_are_no ''' def __init__(self): - split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.__init__(self, 'type', '008', oToken, oSameLineToken, lTokenPair) + split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.__init__(self, oToken, oSameLineToken, lTokenPair) self.solution = "Move closing parenthesis to the next line." diff --git a/vsg/rules/type_definition/rule_009.py b/vsg/rules/type_definition/rule_009.py index aff3db99..253dc52b 100644 --- a/vsg/rules/type_definition/rule_009.py +++ b/vsg/rules/type_definition/rule_009.py @@ -37,5 +37,5 @@ class rule_009(split_line_at_token_if_on_same_line_as_token_if_token_pair_are_no ''' def __init__(self): - split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.__init__(self, 'type', '009', oToken, oSameLineToken, lTokenPair) + split_line_at_token_if_on_same_line_as_token_if_token_pair_are_not_on_the_same_line.__init__(self, oToken, oSameLineToken, lTokenPair) self.solution = "Move enumerated type to the next line." diff --git a/vsg/rules/type_definition/rule_010.py b/vsg/rules/type_definition/rule_010.py index c87415d0..c0647c9e 100644 --- a/vsg/rules/type_definition/rule_010.py +++ b/vsg/rules/type_definition/rule_010.py @@ -31,4 +31,4 @@ class rule_010(previous_line): ''' def __init__(self): - previous_line.__init__(self, 'type', '010', lTokens) + previous_line.__init__(self, lTokens) diff --git a/vsg/rules/type_definition/rule_011.py b/vsg/rules/type_definition/rule_011.py index fcf0e39e..b3fd20bd 100644 --- a/vsg/rules/type_definition/rule_011.py +++ b/vsg/rules/type_definition/rule_011.py @@ -31,4 +31,4 @@ class rule_011(blank_line_below_line_ending_with_token): ''' def __init__(self): - blank_line_below_line_ending_with_token.__init__(self, 'type', '011', lTokens) + blank_line_below_line_ending_with_token.__init__(self, lTokens) diff --git a/vsg/rules/type_definition/rule_012.py b/vsg/rules/type_definition/rule_012.py index d45a4305..9e6e8c7e 100644 --- a/vsg/rules/type_definition/rule_012.py +++ b/vsg/rules/type_definition/rule_012.py @@ -35,4 +35,4 @@ class rule_012(token_indent_between_tokens): ''' def __init__(self): - token_indent_between_tokens.__init__(self, 'type', '012', lTokens, oStart, oEnd) + token_indent_between_tokens.__init__(self, lTokens, oStart, oEnd) diff --git a/vsg/rules/type_definition/rule_013.py b/vsg/rules/type_definition/rule_013.py index 1efcc753..33aedee5 100644 --- a/vsg/rules/type_definition/rule_013.py +++ b/vsg/rules/type_definition/rule_013.py @@ -31,5 +31,5 @@ class rule_013(token_case): ''' def __init__(self): - token_case.__init__(self, 'type', '013', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/type_definition/rule_014.py b/vsg/rules/type_definition/rule_014.py index 29038b3a..3c673b4a 100644 --- a/vsg/rules/type_definition/rule_014.py +++ b/vsg/rules/type_definition/rule_014.py @@ -34,6 +34,6 @@ class rule_014(Rule): ''' def __init__(self): - Rule.__init__(self, 'type', '014', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) self.bIncludeDeclarativePartNames = True self.bIncludeArchitectureBodyDeclarationsInSubprogramBody = True diff --git a/vsg/rules/type_definition/rule_015.py b/vsg/rules/type_definition/rule_015.py index f4575d49..be72139f 100644 --- a/vsg/rules/type_definition/rule_015.py +++ b/vsg/rules/type_definition/rule_015.py @@ -29,6 +29,6 @@ class rule_015(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'type', '015', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['t_'] self.solution = 'Type identifiers' diff --git a/vsg/rules/type_definition/rule_016.py b/vsg/rules/type_definition/rule_016.py index ff50e26c..9a6ac01e 100644 --- a/vsg/rules/type_definition/rule_016.py +++ b/vsg/rules/type_definition/rule_016.py @@ -37,4 +37,4 @@ class rule_016(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'type', '016', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/type_definition/rule_017.py b/vsg/rules/type_definition/rule_017.py index afbae825..f08bd37e 100644 --- a/vsg/rules/type_definition/rule_017.py +++ b/vsg/rules/type_definition/rule_017.py @@ -25,5 +25,5 @@ class rule_017(Rule): ''' def __init__(self): - Rule.__init__(self, 'type', '017', token.type_keyword, token.identifier) + Rule.__init__(self, token.type_keyword, token.identifier) self.solution = 'Ensure identifier is on the same line as the *type* keyword.' diff --git a/vsg/rules/type_definition/rule_018.py b/vsg/rules/type_definition/rule_018.py index 3ea0b13b..d4fefc62 100644 --- a/vsg/rules/type_definition/rule_018.py +++ b/vsg/rules/type_definition/rule_018.py @@ -24,6 +24,6 @@ class rule_018(Rule): ''' def __init__(self): - Rule.__init__(self, 'type', '018', token.identifier, token.is_keyword) + Rule.__init__(self, token.identifier, token.is_keyword) self.solution = 'Ensure *is* keyword is on the same line as the identifier.' self.subphase = 2 diff --git a/vsg/rules/type_definition/rule_100.py b/vsg/rules/type_definition/rule_100.py index 392d16c0..062c3ee2 100644 --- a/vsg/rules/type_definition/rule_100.py +++ b/vsg/rules/type_definition/rule_100.py @@ -27,5 +27,5 @@ class rule_100(Rule): type t_my_type is range -5 to 5; ''' def __init__(self): - Rule.__init__(self, 'type', '100', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.disable = True diff --git a/vsg/rules/type_definition/rule_200.py b/vsg/rules/type_definition/rule_200.py index 65d55860..3e770c9d 100644 --- a/vsg/rules/type_definition/rule_200.py +++ b/vsg/rules/type_definition/rule_200.py @@ -37,6 +37,6 @@ class rule_200(Rule): ''' def __init__(self): - Rule.__init__(self, 'type', '200', lTokens, lAllowTokens) + Rule.__init__(self, lTokens, lAllowTokens) self.disable = True self.configuration.remove('style') diff --git a/vsg/rules/type_definition/rule_400.py b/vsg/rules/type_definition/rule_400.py index 553ac8c6..5e64f219 100644 --- a/vsg/rules/type_definition/rule_400.py +++ b/vsg/rules/type_definition/rule_400.py @@ -39,7 +39,7 @@ class rule_400(align_tokens_in_region_between_tokens): ''' def __init__(self): - align_tokens_in_region_between_tokens.__init__(self, 'type', '400', lAlign, oStartToken, oEndToken) + align_tokens_in_region_between_tokens.__init__(self, lAlign, oStartToken, oEndToken) self.configuration.remove('case_control_statements_ends_group') self.configuration.remove('if_control_statements_ends_group') self.configuration.remove('loop_control_statements_ends_group') diff --git a/vsg/rules/type_definition/rule_500.py b/vsg/rules/type_definition/rule_500.py index cc9bcc2e..ebeb7822 100644 --- a/vsg/rules/type_definition/rule_500.py +++ b/vsg/rules/type_definition/rule_500.py @@ -27,5 +27,5 @@ class rule_500(token_case): ''' def __init__(self): - token_case.__init__(self, 'type', '500', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/type_definition/rule_501.py b/vsg/rules/type_definition/rule_501.py index b74a058f..ad271368 100644 --- a/vsg/rules/type_definition/rule_501.py +++ b/vsg/rules/type_definition/rule_501.py @@ -37,6 +37,6 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'type', '501', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) self.subphase = 2 self.bIncludeDeclarativePartNames = True diff --git a/vsg/rules/type_definition/rule_600.py b/vsg/rules/type_definition/rule_600.py index 2ceee60d..2b6810bc 100644 --- a/vsg/rules/type_definition/rule_600.py +++ b/vsg/rules/type_definition/rule_600.py @@ -29,6 +29,6 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'type', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_t'] self.solution = 'Type identifiers' diff --git a/vsg/rules/use_clause/rule_500.py b/vsg/rules/use_clause/rule_500.py index 1f8d7e7a..830351b8 100644 --- a/vsg/rules/use_clause/rule_500.py +++ b/vsg/rules/use_clause/rule_500.py @@ -31,6 +31,6 @@ class rule_500(Rule): ''' def __init__(self): - Rule.__init__(self, 'use_clause', '500', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/use_clause/rule_501.py b/vsg/rules/use_clause/rule_501.py index c8a059a2..a4cf8776 100644 --- a/vsg/rules/use_clause/rule_501.py +++ b/vsg/rules/use_clause/rule_501.py @@ -27,6 +27,6 @@ class rule_501(Rule): ''' def __init__(self): - Rule.__init__(self, 'use_clause', '501', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/use_clause/rule_502.py b/vsg/rules/use_clause/rule_502.py index c732bc8f..dd4455fe 100644 --- a/vsg/rules/use_clause/rule_502.py +++ b/vsg/rules/use_clause/rule_502.py @@ -27,6 +27,6 @@ class rule_502(Rule): ''' def __init__(self): - Rule.__init__(self, 'use_clause', '502', lTokens) + Rule.__init__(self, lTokens) self.groups.append('case::name') self.configuration.append('case_exceptions') diff --git a/vsg/rules/use_clause/rule_503.py b/vsg/rules/use_clause/rule_503.py index 9381d023..d8027990 100644 --- a/vsg/rules/use_clause/rule_503.py +++ b/vsg/rules/use_clause/rule_503.py @@ -27,5 +27,5 @@ class rule_503(token_case): ''' def __init__(self): - token_case.__init__(self, 'use_clause', '503', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/variable/rule_001.py b/vsg/rules/variable/rule_001.py index f1981572..86d78871 100644 --- a/vsg/rules/variable/rule_001.py +++ b/vsg/rules/variable/rule_001.py @@ -36,4 +36,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'variable', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/variable/rule_002.py b/vsg/rules/variable/rule_002.py index 54f9e2ce..7d39e891 100644 --- a/vsg/rules/variable/rule_002.py +++ b/vsg/rules/variable/rule_002.py @@ -27,5 +27,5 @@ class rule_002(token_case): ''' def __init__(self): - token_case.__init__(self, 'variable', '002', lTokens) + token_case.__init__(self, lTokens) self.groups.append('case::keyword') diff --git a/vsg/rules/variable/rule_003.py b/vsg/rules/variable/rule_003.py index 7d44b80c..d7505699 100644 --- a/vsg/rules/variable/rule_003.py +++ b/vsg/rules/variable/rule_003.py @@ -12,7 +12,7 @@ class rule_003(deprecated_rule.Rule): * `architecture_029 `_ ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'variable', '003') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with the following rules:') self.message.append(' function_015') self.message.append(' package_019') diff --git a/vsg/rules/variable/rule_004.py b/vsg/rules/variable/rule_004.py index 90304d67..1888bfd6 100644 --- a/vsg/rules/variable/rule_004.py +++ b/vsg/rules/variable/rule_004.py @@ -27,5 +27,5 @@ class rule_004(token_case_with_prefix_suffix): ''' def __init__(self): - token_case_with_prefix_suffix.__init__(self, 'variable', '004', lTokens) + token_case_with_prefix_suffix.__init__(self, lTokens) self.groups.append('case::name') diff --git a/vsg/rules/variable/rule_005.py b/vsg/rules/variable/rule_005.py index aac5c1fc..eb0e3e15 100644 --- a/vsg/rules/variable/rule_005.py +++ b/vsg/rules/variable/rule_005.py @@ -28,4 +28,4 @@ class rule_005(Rule): variable counter : integer; ''' def __init__(self): - Rule.__init__(self, 'variable', '005', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/variable/rule_006.py b/vsg/rules/variable/rule_006.py index 3885d373..84aaf59e 100644 --- a/vsg/rules/variable/rule_006.py +++ b/vsg/rules/variable/rule_006.py @@ -28,5 +28,5 @@ class rule_006(Rule): variable counter : integer; ''' def __init__(self): - Rule.__init__(self, 'variable', '006', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/variable/rule_007.py b/vsg/rules/variable/rule_007.py index 320cb832..a3e55e7a 100644 --- a/vsg/rules/variable/rule_007.py +++ b/vsg/rules/variable/rule_007.py @@ -25,5 +25,5 @@ class rule_007(existence_of_tokens_which_should_not_occur): ''' def __init__(self): - existence_of_tokens_which_should_not_occur.__init__(self, 'variable', '007', lTokens) + existence_of_tokens_which_should_not_occur.__init__(self, lTokens) self.solution = 'Remove default assignment.' diff --git a/vsg/rules/variable/rule_010.py b/vsg/rules/variable/rule_010.py index 659043f0..3d25875d 100644 --- a/vsg/rules/variable/rule_010.py +++ b/vsg/rules/variable/rule_010.py @@ -11,7 +11,7 @@ class rule_010(deprecated_rule.Rule): * type_014 ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'variable', '010') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been superceeded by the following rules:') self.message.append(' ieee_500') self.message.append(' subtype_002') diff --git a/vsg/rules/variable/rule_011.py b/vsg/rules/variable/rule_011.py index 5ca6b002..c26c4ef6 100644 --- a/vsg/rules/variable/rule_011.py +++ b/vsg/rules/variable/rule_011.py @@ -73,4 +73,4 @@ class rule_011(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable', '011', lTokens, lNames) + Rule.__init__(self, lTokens, lNames) diff --git a/vsg/rules/variable/rule_012.py b/vsg/rules/variable/rule_012.py index b9e4b953..2f376424 100644 --- a/vsg/rules/variable/rule_012.py +++ b/vsg/rules/variable/rule_012.py @@ -28,6 +28,6 @@ class rule_012(token_prefix): ''' def __init__(self): - token_prefix.__init__(self, 'variable', '012', lTokens) + token_prefix.__init__(self, lTokens) self.prefixes = ['v_'] self.solution = 'Variable identifiers' diff --git a/vsg/rules/variable/rule_017.py b/vsg/rules/variable/rule_017.py index 26efe67c..df2997a0 100644 --- a/vsg/rules/variable/rule_017.py +++ b/vsg/rules/variable/rule_017.py @@ -32,5 +32,5 @@ class rule_017(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable', '017') + Rule.__init__(self) self.lTokenPairs = lTokenPairs diff --git a/vsg/rules/variable/rule_100.py b/vsg/rules/variable/rule_100.py index e30e02a2..ec814b66 100644 --- a/vsg/rules/variable/rule_100.py +++ b/vsg/rules/variable/rule_100.py @@ -25,7 +25,7 @@ class rule_100(Rule): variable width : integer; ''' def __init__(self): - Rule.__init__(self, 'variable', '100') + Rule.__init__(self) self.disable = True self.left_token = token.variable_keyword self.right_token = token.identifier diff --git a/vsg/rules/variable/rule_400.py b/vsg/rules/variable/rule_400.py index 20bfbb7e..dd90a73f 100644 --- a/vsg/rules/variable/rule_400.py +++ b/vsg/rules/variable/rule_400.py @@ -33,7 +33,7 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable', '400', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.phase = 5 self.subphase = 3 self.bIgnoreStartParen = True diff --git a/vsg/rules/variable/rule_600.py b/vsg/rules/variable/rule_600.py index ce675c19..5f28f47d 100644 --- a/vsg/rules/variable/rule_600.py +++ b/vsg/rules/variable/rule_600.py @@ -28,6 +28,6 @@ class rule_600(token_suffix): ''' def __init__(self): - token_suffix.__init__(self, 'variable', '600', lTokens) + token_suffix.__init__(self, lTokens) self.suffixes = ['_v'] self.solution = 'Variable identifiers' diff --git a/vsg/rules/variable_assignment/rule_001.py b/vsg/rules/variable_assignment/rule_001.py index dbbbb7fc..d14e6e81 100644 --- a/vsg/rules/variable_assignment/rule_001.py +++ b/vsg/rules/variable_assignment/rule_001.py @@ -38,4 +38,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'variable_assignment', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/variable_assignment/rule_002.py b/vsg/rules/variable_assignment/rule_002.py index 1b48eab6..ff200982 100644 --- a/vsg/rules/variable_assignment/rule_002.py +++ b/vsg/rules/variable_assignment/rule_002.py @@ -31,4 +31,4 @@ class rule_002(Rule): count := counter + 1; ''' def __init__(self): - Rule.__init__(self, 'variable_assignment', '002', lTokens) + Rule.__init__(self, lTokens) diff --git a/vsg/rules/variable_assignment/rule_003.py b/vsg/rules/variable_assignment/rule_003.py index 2dbd3c12..879dc413 100644 --- a/vsg/rules/variable_assignment/rule_003.py +++ b/vsg/rules/variable_assignment/rule_003.py @@ -30,5 +30,5 @@ class rule_003(Rule): count := counter + 1; ''' def __init__(self): - Rule.__init__(self, 'variable_assignment', '003', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/variable_assignment/rule_004.py b/vsg/rules/variable_assignment/rule_004.py index 5ed37d84..a630be10 100644 --- a/vsg/rules/variable_assignment/rule_004.py +++ b/vsg/rules/variable_assignment/rule_004.py @@ -30,6 +30,6 @@ class rule_004(multiline_alignment_between_tokens): ''' def __init__(self): - multiline_alignment_between_tokens.__init__(self, 'variable_assignment', '004', lTokenPairs) + multiline_alignment_between_tokens.__init__(self, lTokenPairs) self.phase = 5 self.subphase = 2 diff --git a/vsg/rules/variable_assignment/rule_005.py b/vsg/rules/variable_assignment/rule_005.py index 5c99ee58..ac811d9d 100644 --- a/vsg/rules/variable_assignment/rule_005.py +++ b/vsg/rules/variable_assignment/rule_005.py @@ -8,5 +8,5 @@ class rule_005(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable_assignment', '005') + Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been merged into process_400.') diff --git a/vsg/rules/variable_assignment/rule_006.py b/vsg/rules/variable_assignment/rule_006.py index 4c2fe2c2..f6df517e 100644 --- a/vsg/rules/variable_assignment/rule_006.py +++ b/vsg/rules/variable_assignment/rule_006.py @@ -31,6 +31,6 @@ class rule_006(remove_lines_starting_with_token_between_token_pairs): ''' def __init__(self): - remove_lines_starting_with_token_between_token_pairs.__init__(self, 'variable_assignment', '006', oRemoveToken, lTokens) + remove_lines_starting_with_token_between_token_pairs.__init__(self, oRemoveToken, lTokens) self.solution = 'Remove comments inside variable assignment' self.fixable = False diff --git a/vsg/rules/variable_assignment/rule_007.py b/vsg/rules/variable_assignment/rule_007.py index 70f84d5a..f9e54485 100644 --- a/vsg/rules/variable_assignment/rule_007.py +++ b/vsg/rules/variable_assignment/rule_007.py @@ -40,4 +40,4 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable_assignment', '007', lTokenPairs) + Rule.__init__(self, lTokenPairs) diff --git a/vsg/rules/variable_assignment/rule_008.py b/vsg/rules/variable_assignment/rule_008.py index d153f499..54ede675 100644 --- a/vsg/rules/variable_assignment/rule_008.py +++ b/vsg/rules/variable_assignment/rule_008.py @@ -32,6 +32,6 @@ class rule_008(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable_assignment', '008', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.simple_variable_assignment.assignment self.semicolon = token.simple_variable_assignment.semicolon diff --git a/vsg/rules/variable_assignment/rule_400.py b/vsg/rules/variable_assignment/rule_400.py index 70382ef6..f69cc8ee 100644 --- a/vsg/rules/variable_assignment/rule_400.py +++ b/vsg/rules/variable_assignment/rule_400.py @@ -37,4 +37,4 @@ class rule_400(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable_assignment', '400', lTokenPairs) + Rule.__init__(self, lTokenPairs) diff --git a/vsg/rules/variable_assignment/rule_401.py b/vsg/rules/variable_assignment/rule_401.py index fd9282ae..5a1f5dee 100644 --- a/vsg/rules/variable_assignment/rule_401.py +++ b/vsg/rules/variable_assignment/rule_401.py @@ -38,5 +38,5 @@ class rule_401(Rule): ''' def __init__(self): - Rule.__init__(self, 'variable_assignment', '401', lTokenPairs) + Rule.__init__(self, lTokenPairs) self.assignment_operator = token.simple_variable_assignment.assignment diff --git a/vsg/rules/wait/rule_001.py b/vsg/rules/wait/rule_001.py index 84862c7c..ff55cb11 100644 --- a/vsg/rules/wait/rule_001.py +++ b/vsg/rules/wait/rule_001.py @@ -35,4 +35,4 @@ class rule_001(token_indent): ''' def __init__(self): - token_indent.__init__(self, 'wait', '001', lTokens) + token_indent.__init__(self, lTokens) diff --git a/vsg/rules/when/rule_001.py b/vsg/rules/when/rule_001.py index ab616672..d0a9a8dc 100644 --- a/vsg/rules/when/rule_001.py +++ b/vsg/rules/when/rule_001.py @@ -43,7 +43,7 @@ class rule_001(structure.Rule): ''' def __init__(self): - structure.Rule.__init__(self, 'when', '001') + structure.Rule.__init__(self) self.lMoveTokens = lMoveTokens self.lTokenPairs = lTokenPairs self.configuration_documentation_link = None diff --git a/vsg/rules/while_loop/rule_001.py b/vsg/rules/while_loop/rule_001.py index 206c3bc5..4f83e04c 100644 --- a/vsg/rules/while_loop/rule_001.py +++ b/vsg/rules/while_loop/rule_001.py @@ -8,5 +8,5 @@ class rule_001(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'while_loop', '001') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to iteration_scheme_300.') diff --git a/vsg/rules/while_loop/rule_002.py b/vsg/rules/while_loop/rule_002.py index 7f6b0250..3a9ea0c6 100644 --- a/vsg/rules/while_loop/rule_002.py +++ b/vsg/rules/while_loop/rule_002.py @@ -8,5 +8,5 @@ class rule_002(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'while_loop', '002') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been moved to loop_statement_302.') diff --git a/vsg/rules/whitespace/rule_001.py b/vsg/rules/whitespace/rule_001.py index 2e17cd5b..83876a5a 100644 --- a/vsg/rules/whitespace/rule_001.py +++ b/vsg/rules/whitespace/rule_001.py @@ -26,7 +26,7 @@ class rule_001(whitespace.Rule): def __init__(self): - whitespace.Rule.__init__(self, 'whitespace', '001') + whitespace.Rule.__init__(self) self.phase = 1 self.subphase = 0 self.solution = 'Remove trailing whitespace' diff --git a/vsg/rules/whitespace/rule_002.py b/vsg/rules/whitespace/rule_002.py index b8cb47fb..fefd7641 100644 --- a/vsg/rules/whitespace/rule_002.py +++ b/vsg/rules/whitespace/rule_002.py @@ -26,7 +26,7 @@ class rule_002(ws_group.Rule): def __init__(self): - ws_group.Rule.__init__(self, 'whitespace', '002') + ws_group.Rule.__init__(self) self.phase = 1 self.solution = 'Remove tab' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_003.py b/vsg/rules/whitespace/rule_003.py index fc7529a6..ec032c9e 100644 --- a/vsg/rules/whitespace/rule_003.py +++ b/vsg/rules/whitespace/rule_003.py @@ -22,6 +22,6 @@ class rule_003(remove_spaces_before_token_rule): ''' def __init__(self): - remove_spaces_before_token_rule.__init__(self, 'whitespace', '003', parser.semicolon) + remove_spaces_before_token_rule.__init__(self, parser.semicolon) self.solution = 'Remove spaces before semicolons.' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_004.py b/vsg/rules/whitespace/rule_004.py index a7e1b029..c7db4dd5 100644 --- a/vsg/rules/whitespace/rule_004.py +++ b/vsg/rules/whitespace/rule_004.py @@ -24,6 +24,6 @@ class rule_004(remove_spaces_before_token_rule): ''' def __init__(self): - remove_spaces_before_token_rule.__init__(self, 'whitespace', '004', parser.comma) + remove_spaces_before_token_rule.__init__(self, parser.comma) self.solution = 'Remove spaces before commas.' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_005.py b/vsg/rules/whitespace/rule_005.py index 09876cc2..99e01f4a 100644 --- a/vsg/rules/whitespace/rule_005.py +++ b/vsg/rules/whitespace/rule_005.py @@ -34,7 +34,7 @@ class rule_005(whitespace.Rule): ''' def __init__(self): - whitespace.Rule.__init__(self, 'whitespace', '005') + whitespace.Rule.__init__(self) self.solution = 'Remove spaces after open (.' self.iSpaces = 0 self.lTokens = [parser.open_parenthesis] diff --git a/vsg/rules/whitespace/rule_006.py b/vsg/rules/whitespace/rule_006.py index f5807df7..c3c6ecd1 100644 --- a/vsg/rules/whitespace/rule_006.py +++ b/vsg/rules/whitespace/rule_006.py @@ -26,6 +26,6 @@ class rule_006(remove_spaces_before_token_rule): ''' def __init__(self): - remove_spaces_before_token_rule.__init__(self, 'whitespace', '006', parser.close_parenthesis, bIgnoreIfLineStart=True) + remove_spaces_before_token_rule.__init__(self, parser.close_parenthesis, bIgnoreIfLineStart=True) self.solution = 'Remove spaces before close ).' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_007.py b/vsg/rules/whitespace/rule_007.py index 954677f1..7901fa43 100644 --- a/vsg/rules/whitespace/rule_007.py +++ b/vsg/rules/whitespace/rule_007.py @@ -27,5 +27,5 @@ class rule_007(Rule): ''' def __init__(self): - Rule.__init__(self, 'whitespace', '007', lTokens) + Rule.__init__(self, lTokens) self.number_of_spaces = '>=1' diff --git a/vsg/rules/whitespace/rule_008.py b/vsg/rules/whitespace/rule_008.py index 9494ebe0..476c73db 100644 --- a/vsg/rules/whitespace/rule_008.py +++ b/vsg/rules/whitespace/rule_008.py @@ -26,7 +26,7 @@ class rule_008(whitespace.Rule): ''' def __init__(self): - whitespace.Rule.__init__(self, 'whitespace', '008') + whitespace.Rule.__init__(self) self.solution = 'Remove spaces after std_logic_vector' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_010.py b/vsg/rules/whitespace/rule_010.py index 2a82743f..94774c32 100644 --- a/vsg/rules/whitespace/rule_010.py +++ b/vsg/rules/whitespace/rule_010.py @@ -25,6 +25,6 @@ class rule_010(n_spaces_before_and_after_tokens): ''' def __init__(self): - n_spaces_before_and_after_tokens.__init__(self, 'whitespace', '010', 1, lTokens) + n_spaces_before_and_after_tokens.__init__(self, 1, lTokens) self.solution = 'Ensure a single space before and after concat operator.' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_011.py b/vsg/rules/whitespace/rule_011.py index a56f41b5..5a4ccde6 100644 --- a/vsg/rules/whitespace/rule_011.py +++ b/vsg/rules/whitespace/rule_011.py @@ -39,6 +39,6 @@ class rule_011(n_spaces_before_and_after_tokens): ''' def __init__(self): - n_spaces_before_and_after_tokens.__init__(self, 'whitespace', '011', 1, lTokens, bNIsMinimum=True) + n_spaces_before_and_after_tokens.__init__(self, 1, lTokens, bNIsMinimum=True) self.solution = 'Ensure at least a single space before and after math operator.' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_012.py b/vsg/rules/whitespace/rule_012.py index a15a0681..ac5c0c5e 100644 --- a/vsg/rules/whitespace/rule_012.py +++ b/vsg/rules/whitespace/rule_012.py @@ -8,5 +8,5 @@ class rule_012(deprecated_rule.Rule): ''' def __init__(self): - deprecated_rule.Rule.__init__(self, 'whitespace', '012') + deprecated_rule.Rule.__init__(self) self.message.append('Rule ' + self.unique_id + ' has been replaced with whitespace_200.') diff --git a/vsg/rules/whitespace/rule_013.py b/vsg/rules/whitespace/rule_013.py index b8b32e2f..5109c7b7 100644 --- a/vsg/rules/whitespace/rule_013.py +++ b/vsg/rules/whitespace/rule_013.py @@ -27,6 +27,6 @@ class rule_013(n_spaces_before_and_after_tokens): ''' def __init__(self): - n_spaces_before_and_after_tokens.__init__(self, 'whitespace', '013', 1, lTokens, bNIsMinimum=True) + n_spaces_before_and_after_tokens.__init__(self, 1, lTokens, bNIsMinimum=True) self.solution = 'Ensure a single space before and after concat operator.' self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace/rule_200.py b/vsg/rules/whitespace/rule_200.py index ade39d0b..55e7b64d 100644 --- a/vsg/rules/whitespace/rule_200.py +++ b/vsg/rules/whitespace/rule_200.py @@ -31,7 +31,7 @@ class rule_200(Rule): ''' def __init__(self): - Rule.__init__(self, name='whitespace', identifier='200') + Rule.__init__(self) self.blank_lines_allowed = 1 self.configuration.append('blank_lines_allowed') self.configuration_documentation_link = None diff --git a/vsg/rules/whitespace_after_token.py b/vsg/rules/whitespace_after_token.py index 5370cbcc..baa8e3df 100644 --- a/vsg/rules/whitespace_after_token.py +++ b/vsg/rules/whitespace_after_token.py @@ -21,8 +21,8 @@ class Rule(WhitespaceRule): A list of tokens to check for a single space after. ''' - def __init__(self, name, identifier, lTokens): - WhitespaceRule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + WhitespaceRule.__init__(self) self.lTokens = lTokens def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/whitespace_after_tokens_in_between_tokens.py b/vsg/rules/whitespace_after_tokens_in_between_tokens.py index aeceb4ab..502b3e2f 100644 --- a/vsg/rules/whitespace_after_tokens_in_between_tokens.py +++ b/vsg/rules/whitespace_after_tokens_in_between_tokens.py @@ -21,8 +21,8 @@ class Rule(WhitespaceRule): A list of tokens to check for a single space after. ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - WhitespaceRule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, oStart, oEnd): + WhitespaceRule.__init__(self) self.lTokens = lTokens self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/whitespace_before_token.py b/vsg/rules/whitespace_before_token.py index caa54312..4c26aaa2 100644 --- a/vsg/rules/whitespace_before_token.py +++ b/vsg/rules/whitespace_before_token.py @@ -24,8 +24,8 @@ class Rule(WhitespaceRule): reference token check for a whitespace before ''' - def __init__(self, name, identifier, lTokens): - WhitespaceRule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + WhitespaceRule.__init__(self) self.lTokens = lTokens def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/whitespace_before_token_if_on_same_line_as_token.py b/vsg/rules/whitespace_before_token_if_on_same_line_as_token.py index 125a6e4a..1f3af60d 100644 --- a/vsg/rules/whitespace_before_token_if_on_same_line_as_token.py +++ b/vsg/rules/whitespace_before_token_if_on_same_line_as_token.py @@ -24,8 +24,8 @@ class Rule(WhitespaceRule): Token to use as an exclusion. ''' - def __init__(self, name, identifier): - WhitespaceRule.__init__(self, name=name, identifier=identifier) + def __init__(self): + WhitespaceRule.__init__(self) self.lTokens = [] self.oFirstToken = None self.oExceptToken = None diff --git a/vsg/rules/whitespace_before_tokens_in_between_tokens.py b/vsg/rules/whitespace_before_tokens_in_between_tokens.py index 02d2575c..035510c0 100644 --- a/vsg/rules/whitespace_before_tokens_in_between_tokens.py +++ b/vsg/rules/whitespace_before_tokens_in_between_tokens.py @@ -29,8 +29,8 @@ class Rule(WhitespaceRule): The end of the range ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - WhitespaceRule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, oStart, oEnd): + WhitespaceRule.__init__(self) self.lTokens = lTokens self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/whitespace_between_token_pairs.py b/vsg/rules/whitespace_between_token_pairs.py index f086d945..52d4cb18 100644 --- a/vsg/rules/whitespace_between_token_pairs.py +++ b/vsg/rules/whitespace_between_token_pairs.py @@ -24,8 +24,8 @@ class Rule(WhitespaceRule): The tokens to check for a single space between ''' - def __init__(self, name, identifier, lTokens): - WhitespaceRule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens): + WhitespaceRule.__init__(self) self.lTokens = lTokens def _get_tokens_of_interest(self, oFile): diff --git a/vsg/rules/whitespace_between_token_pairs_bounded_by_tokens.py b/vsg/rules/whitespace_between_token_pairs_bounded_by_tokens.py index 41b75035..ecb8c9c1 100644 --- a/vsg/rules/whitespace_between_token_pairs_bounded_by_tokens.py +++ b/vsg/rules/whitespace_between_token_pairs_bounded_by_tokens.py @@ -24,8 +24,8 @@ class Rule(WhitespaceRule): The tokens to check for a single space between ''' - def __init__(self, name, identifier, lTokens, oStart, oEnd): - WhitespaceRule.__init__(self, name=name, identifier=identifier) + def __init__(self, lTokens, oStart, oEnd): + WhitespaceRule.__init__(self) self.lTokens = lTokens self.oStart = oStart self.oEnd = oEnd diff --git a/vsg/rules/whitespace_between_tokens.py b/vsg/rules/whitespace_between_tokens.py index c09ce4dc..a77d21b1 100644 --- a/vsg/rules/whitespace_between_tokens.py +++ b/vsg/rules/whitespace_between_tokens.py @@ -29,8 +29,8 @@ class Rule(whitespace.Rule): The right token to check for a space between the left token ''' - def __init__(self, name, identifier): - whitespace.Rule.__init__(self, name=name, identifier=identifier) + def __init__(self): + whitespace.Rule.__init__(self) self.left_token = None self.right_token = None self.number_of_spaces = 1 diff --git a/vsg/rules/with_statement/rule_001.py b/vsg/rules/with_statement/rule_001.py index 79d33c7d..4f4f4dd2 100644 --- a/vsg/rules/with_statement/rule_001.py +++ b/vsg/rules/with_statement/rule_001.py @@ -9,5 +9,5 @@ class rule_001(deprecated_rule.Rule): def __init__(self): - deprecated_rule.Rule.__init__(self, 'with', '001') - self.message.append('Rule ' + self.unique_id + ' has been replaced by selected_assignment rules.') \ No newline at end of file + deprecated_rule.Rule.__init__(self) + self.message.append('Rule ' + self.unique_id + ' has been replaced by selected_assignment rules.') diff --git a/vsg/tests/rule/test_rule.py b/vsg/tests/rule/test_rule.py index 4c1f5f0f..2334f0d6 100644 --- a/vsg/tests/rule/test_rule.py +++ b/vsg/tests/rule/test_rule.py @@ -111,7 +111,9 @@ class testRuleMethods(unittest.TestCase): self.assertEqual(oRule._get_solution(1), 'Solution Line 1') def test_get_violations_w_vsg_output_method(self): - oRule = rule.Rule('xyz', '001') + oRule = rule.Rule() + oRule.name = 'xyz' + oRule.identifier = '001' oRule.solution = 'Solution' self.assertFalse(oRule.has_violations()) @@ -154,7 +156,8 @@ class testRuleMethods(unittest.TestCase): def test_deprecated_rule(self): - oRule = deprecated_rule.Rule('some_rule', '001') + oRule = deprecated_rule.Rule() + oRule.unique_id = 'some_rule_001' oRule.message = ['This has been deprecated.'] oConfig = config.New(command_line_args()) diff --git a/vsg/tests/rule_list/local_rules/rule_localized_001.py b/vsg/tests/rule_list/local_rules/rule_localized_001.py index 0adfad51..8d7f219c 100644 --- a/vsg/tests/rule_list/local_rules/rule_localized_001.py +++ b/vsg/tests/rule_list/local_rules/rule_localized_001.py @@ -5,7 +5,8 @@ from vsg import rule class rule_localized_001(rule.rule): def __init__(self): - rule.rule.__init__(self, 'localized', '001') + rule.rule.__init__(self) + self.name = 'localized' # Force the rule's name, because it can't be extracted from the module self.phase = 1 self.fixable = False # User must split the file self.solution = 'Split entity and architecture into seperate files.' diff --git a/vsg/tests/vsg/local_rules/rule_localized_001.py b/vsg/tests/vsg/local_rules/rule_localized_001.py index 02fddab3..31d78f7c 100644 --- a/vsg/tests/vsg/local_rules/rule_localized_001.py +++ b/vsg/tests/vsg/local_rules/rule_localized_001.py @@ -7,7 +7,8 @@ from vsg import violation class rule_001(rule.Rule): def __init__(self): - rule.Rule.__init__(self, 'localized', '001') + rule.Rule.__init__(self) + self.name = 'localized' # Force the rule's name, because it can't be extracted from the module self.phase = 1 self.fixable = False # User must split the file self.solution = 'Split entity and architecture into seperate files.'