* Updates for issue #639
Addressing issue where function and procedure rules were identical.
1) Updated documentation
a) Added documentation for subprogram_body rules
b) Updated deprecated rule documentation
2) Updated tests
a) Removed deprecated rule tests
b) Added subprogram_body rules
c) Updated function and procedure rules to show the issue
3) Updated rules to ensure function rules operate on functions and procedure rules operate on procedures
a) function_013, procedure_008
b) function_015, procedure_010
c) function_012, procedure_401
d) function_502, procedure_502
e) function_004, procedure_503
f) function_013, procedure_504
g) function_506, procedure_506
4) Moved function and procedure rules to subprogram_body rules
a) function_201, procedure_201 --> subprogram_body_201
b) function_202, procedure_202 --> subprogram_body_202
c) function_203, procedure_203 --> subprogram_body_203
d) function_204, procedure_204 --> subprogram_body_204
e) function_007, procedure_205 --> subprogram_body_205
5) Deprecated rules
a) function_201, procedure_201
b) function_202, procedure_202
c) function_203, procedure_203
d) function_204, procedure_204
e) function_007, procedure_205
* Adding files which were missing from previous commit.
* Removing unused file.
* Updates for CodeClimate.
* Refactored filter_token_pairs to improve readability.
* Refactoring get_tokens_bounded_by_unless_betweent to improve readability.
* Removing unused code in get_tokens_bounded_by_unless_between function.
* Removing unused import.
Additional changes:
1) Added new base rule token_case_with_prefix_suffix
2) Changed required rules to use new base rule
3) Refactored shared logic into package
Alignment of colons were occuring before alignment of identifier.
1) Changed rule function_012 to run in subphase 2 after the alignment of the identifier
1) Added rule function_016 to handle return statements in functions
a) Updated documentation
b) Created tests
c) Added rule
2) Updated rules to match existing jcl style output
Adding rules to align declaration identifiers:
1) Updated documentation
2) Removed the following rules
file_003, constant_003, attribute_003, signal_003, subtype_003, type_003 and variable_003
3) Added new rules:
architecture_029, function_015, package_019, procedure_010 and process_037
4) Added tests for new rules
5) Updated classifiers to support new rules
Updated rules to use consistent violation dictionary:
1) Updated check.indent_of_comments_above to use the violation dictionary
2) Updated rules to use the violation dictionary
3) Updated tests
Updated function case rules to allow for configuration of either upper or lower case.
1) Updated documentation
2) Added tests
3) Updated rule function_005 so it can be either upper or lower case
Fixing function_003 violation for functions without parameters.
1) Added test to detect bug
2) Updated rule to only check if there are any parameters on the function.