Jeremiah Leary
a3c5beedbd
Updates for issue #401 and #416 :
...
Added command line option --all_phases to allow VSG to not stop when a violation was found while analyzing a file.
(cherry picked from commit 43d4498815be9ed3187a34409ea06834d7b6dfce)
2020-12-06 10:43:30 -06:00
Jeremiah Leary
17f2c29942
Fixing headers on rule documentation.
2020-12-05 17:50:00 -06:00
Jeremiah Leary
8efd5a5098
Attempting to fix docs not building.
2020-12-05 17:37:52 -06:00
Jeremiah Leary
18507ef8c7
Updating version veriable name.
2020-12-05 16:23:14 -06:00
Jeremiah Leary
5619407cc6
Fixing test failues.
2020-12-05 16:14:34 -06:00
Jeremiah Leary
610c21d649
Updates for issue #451
...
1) Adding links in documentation to which rules use prefix and suffix rules.
2) Fixing documentation build issues
2020-12-05 16:02:23 -06:00
Jeremiah Leary
2579a5a0e7
Updates for issue #486 and #461 :
...
When requesting version using master, it would report the previous released version.
It would also report the SHA of the GIT repository it was currently executing in.
Both of these issues make it unclear which version of VSG you are using.
This update provides
1) Defaulting version to 'master'
2) Defaulting SHA to NA
The goal will be to hardcode the version and SHA when releasing to PYPI.
2020-12-05 11:01:12 -06:00
Jeremiah Leary
a7c7dda433
Adding more exceptions for detecting concurrent procedures.
2020-12-05 10:25:25 -06:00
Jeremiah Leary
26b3a7aea4
Rule constant_007 was flagging assignments that were on the same line.
...
1) Updated tests to expose issue
2) Updated code to handle issue
2020-12-04 18:06:58 -06:00
Jeremiah Leary
cd64cdeae0
Updates for issue #474
...
Adding rule function_017 to handle the case of function designators.
1) Added documentation
2) Added test
3) Added rule function_017
2020-12-04 17:03:00 -06:00
Jeremiah Leary
077858bc62
Updates for Issue #475 :
...
Rule constant_007 was flagging lines without assignments.
1) Updated tests to expose the issue
2) Updated rule to handle the issue correctly
a) Added new extract method to only grab the tokens required for the rule.
2020-12-04 14:46:00 -06:00
Jeremiah Leary
4721ae0322
Updates for Codacy flagged issues.
2020-12-04 13:27:19 -06:00
Jeremiah Leary
6a2a41b6c4
Refactoring rules to match current methodology:
...
1) Refactored removed fix method and updated _fix_violation method
2) Refactored analyze method into _get_tokens_of_interest and _analyze methods
2020-12-04 10:57:24 -06:00
Jeremiah Leary
f9982dac4d
Refactoring rules to improve consistent case performance.
...
1) Adding more exclusions to each rule
2020-12-04 09:20:22 -06:00
Jeremiah Leary
151b5e3f38
Refactoring consistent token case to improve performance.
...
1) Made loops more efficient
2) Pre analyzed the target values
2020-12-04 09:07:36 -06:00
Jeremiah Leary
7d9dd63031
Refactoring method get_tokens_starting_with_token_and_ending_with_one_of_possible+_tokens.
...
1) Moved method from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored to use token map
3) Removed Tokens from vsg.vhdlFile
4) Refactored constant_011 to use _get_token_of_interest
2020-12-03 19:27:19 -06:00
Jeremiah Leary
64881ab6e5
Refactoring method get_lines_with_length_that_exceed_column.
...
1) Moved from vsg.vhdlFile to vsg.vhdlFile.extract
2020-12-03 17:11:08 -06:00
Jeremiah Leary
4e16db01ef
Refactoring method get_interface_elements_between_tokens.
...
1) Moved from vsg.vhdlFile to vsg.vhdlFile.extract
2) Partially refactored to use token map
3) Refactored port_012 to new format
2020-12-03 16:54:57 -06:00
Jeremiah Leary
3bc58bb783
Refactoring method get_association_elements_between_tokens:
...
1) Moving from vsg.vhdlFile to vsg.vhdlFile.extract
2) Partial refactoring to use token map
3) Fixed generic_map_008 to use correct tokens
2020-12-03 14:02:47 -06:00
Jeremiah Leary
e84064751f
Refactoring method get_blank_lines_below_line_ending_with_token.
...
1) Moving from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored to use token map
2020-12-03 13:27:18 -06:00
Jeremiah Leary
17fdecf68f
Refactoring method get_token_and_n_tokens_after_it_when_between_tokens.
...
1) Moved from vsg.vhdlFile to vsg.vhdlFile.
2) Refactored to use token map.
2020-12-03 12:14:10 -06:00
Jeremiah Leary
e66dc5ccc5
Refactoring method get_token_and_n_tokens_after_it.
...
1) Moved from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored to use the token map
2020-12-03 11:42:20 -06:00
Jeremiah Leary
b533609db6
Refactoring extract method get_token_and_n_tokens_before_it_in_between_tokens.
...
1) Moved method from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored to use tokenMap
2020-12-03 09:26:03 -06:00
Jeremiah Leary
02ef9dcb90
Refactoring extract method.
...
1) Moved method from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored method to use token map
2020-12-03 08:53:53 -06:00
Jeremiah Leary
899f9b9f48
Refactoring extract method.
...
1) Move method from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored method to use token map
2020-12-02 20:24:25 -06:00
Jeremiah Leary
f6fba706e8
Refactoring get_token_from_line.
...
1) Move from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored to use token map
2020-12-02 17:42:06 -06:00
Jeremiah Leary
6d340d8d23
Refactoring get_tokens_between_tokens_inclusive_while_storing_value_from_token.
...
1) Moved from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored to use token map
2020-12-02 15:23:30 -06:00
Jeremiah Leary
a0d6bc4af1
Refactoring get_sequence_of_tokens_not_matching
...
1) Moved from vsg.vhdlFile to vsg.vhdlFile.extract
2) Refactored to use token map
2020-12-02 14:19:21 -06:00
Jeremiah Leary
125080f978
Refactoring vhdlFile.get_tokens_at_beginning_of_line_matching_between_tokens.
...
1) Moved from vsg.vhdlFile to vsg.vhdlFile.extract
2) Updated to use token map
2020-12-02 13:03:57 -06:00
Jeremiah Leary
93f3f2970a
Adding copy option to token map get_token_indexes method.
2020-12-02 10:25:38 -06:00
Jeremiah Leary
af9a75dc38
Improving performace from last commit.
2020-12-02 10:21:36 -06:00
Jeremiah Leary
8d88659179
Fixed issue with rule if_002.
...
The base rule remove_excessive_blank_lines_above_line_starting_with_token was able to alter the token map.
This was due to the token map not returning a copy of it's lists.
2020-12-02 10:14:24 -06:00
Jeremiah Leary
731ac81c7b
Refactoring get_tokens_at_beginning_of_line_matching.
...
1) Moved from vhdlFile to extract
2) Refactored to use token map
2020-12-01 22:00:29 -06:00
Jeremiah Leary
1b54fbf694
Refactoring get_tokens_bounded_by_token_when_between_tokens to use token map.
2020-12-01 20:57:01 -06:00
Jeremiah Leary
3bab5fb3c6
Refactoring get_tokens_bounded_by_token_when_between_tokens from vhdlFile to extract.
2020-12-01 20:05:16 -06:00
Jeremiah Leary
1627ca7455
Refactored extract function to use token map.
2020-12-01 19:25:00 -06:00
Jeremiah Leary
75a771340d
Refactoring get_tokens_matching_in_range_bounded_by_tokens from vhdlFile.py into extract.
2020-12-01 19:17:38 -06:00
Jeremiah Leary
9c0ba3f43f
Refactoring extract.get_blank_lines_above_line_starting_with_token to use token map.
2020-12-01 19:06:06 -06:00
Jeremiah Leary
89b336fbcf
Switching to local token class.
2020-12-01 19:05:47 -06:00
Jeremiah Leary
fc650d36c6
Refactoring extract rule to use token map.
2020-12-01 17:23:07 -06:00
Jeremiah Leary
b7188b4bc2
Refactoring extract function to use token map.
2020-12-01 16:58:43 -06:00
Jeremiah Leary
4478a2a3d5
Refactoring get_line_above_line_starting_with_tokens to use token map.
2020-12-01 13:52:43 -06:00
Jeremiah Leary
e4cbc65347
Refactoring extract.get_line_above_line_starting_with_token_with_hierarchy to use token map.
2020-12-01 13:40:08 -06:00
Jeremiah Leary
73a1c736c7
Refactoring additional extract functions to use token map.
2020-12-01 13:19:23 -06:00
Jeremiah Leary
afb8c9718a
Refactoring extract rules to use token map.
2020-12-01 12:57:01 -06:00
Jeremiah Leary
5e6dcd544d
Refactoring extract.get_line_preceeding_line to use token map.
...
1) Had to change remove_excessive_blank_lines_above_line_starting_with_token base rule.
2020-12-01 10:52:01 -06:00
Jeremiah Leary
927d055653
Refactoring extract.get_line_succeeding_line to use token map.
2020-12-01 09:17:26 -06:00
Jeremiah Leary
267e62ea5b
Refactoring extract function to improve readability.
2020-12-01 09:03:32 -06:00
Jeremiah Leary
14c83412ed
Refactoring extract.get_n_token_after_tokens to use the token map.
2020-12-01 09:00:34 -06:00
Jeremiah Leary
3095211e09
Adding unique_id docstring to ieee tokens.
2020-12-01 08:59:23 -06:00