Emil Vanherp
6996435f80
change tests to use subprocess.check_output instead of mock
2021-01-22 15:21:41 +01:00
Emil Vanherp
a158fd2ac9
Distinguish between file errors
...
* Don't exit on file not found or other OSErrors, but continue (revert
from fc34afd4d0339e0b17d8f46e3bf527461beccf1a)
* Empty file, file not found, no permission and other
OSErrors are now reported differently.
2021-01-22 15:21:41 +01:00
Emil Vanherp
0971ca194c
Move read_vhdlfile to vhdlFile/utils
...
And exit with exit code 1 on file not found or any other OSError
2021-01-22 15:21:41 +01:00
Jeremiah Leary
6f040186ff
Merge pull request #523 from jeremiah-c-leary/issue-504
...
Merging documentation updates for issue #135 .
Work will continue on master.
2021-01-21 19:16:27 -06:00
Jeremiah Leary
70fca38f3e
Removing trailing blank line.
2021-01-19 20:16:05 -06:00
Jeremiah Leary
dacece1ce2
Updating documentation per review.
2021-01-19 19:55:47 -06:00
Jeremiah Leary
4079683827
Making options exclusive.
2021-01-19 18:32:44 -06:00
Jeremiah Leary
69b157fa91
Adding configuring previous line documentation.
2021-01-16 14:33:40 -06:00
Jeremiah Leary
5319bb90a0
Merge pull request #522 from Emilv2/speed_up
...
Speedup report_violations
2021-01-16 13:16:59 -06:00
Emil Vanherp
de2a3958f1
Speedup report_violations
...
Instead of getting violations on each line, get all violations
per rule and sort later by line.
Speedups up to ~50% when running vsg on many files.
2021-01-16 17:16:02 +01:00
Jeremiah Leary
94ed367369
Merge pull request #521 from Emilv2/gitignore
...
Add python build directory to gitignore
2021-01-15 13:52:16 -06:00
Emil Vanherp
fc5408ff80
Add python build directory to gitignore
2021-01-15 18:37:27 +01:00
Jeremiah Leary
0bec7656a2
Updates for issue #512 :
...
Added filename to output of parsing error message.
2021-01-13 19:13:53 -06:00
Jeremiah Leary
48508913b3
Merge branch 'master' of https://github.com/jeremiah-c-leary/vhdl-style-guide
2021-01-13 17:38:59 -06:00
Jeremiah Leary
53c78bbda6
Updates for issue #504 :
...
Refactoring to improve readability.
2021-01-13 17:37:57 -06:00
Jeremiah Leary
362537eb9c
Merge pull request #518 from Emilv2/small_fixes2
...
Some small fixes
2021-01-13 09:23:51 -06:00
Jeremiah Leary
1d25237282
Updates for issue #504
...
Adding option for blank line above rules to check for a blank line above comments.
1) Updated tests
2) Updated base rule and extractors
3) Updated documentation
2021-01-13 08:07:16 -06:00
Emil Vanherp
cf4b1f1032
specify exception
2021-01-13 12:21:44 +01:00
Emil Vanherp
072ebc9273
remove unused variable
2021-01-13 12:21:44 +01:00
Emil Vanherp
b092ad828d
remove unnecessary try except
...
argparse arguments are None by default and will not throw
AttributeError.
2021-01-13 12:21:44 +01:00
Jeremiah Leary
17a92c182e
Updates for issue #506
...
Refactoring to improve readability.
2021-01-12 08:44:56 -06:00
Jeremiah Leary
41080127d5
Updates for issue #506 :
...
Adding rule to indent multiline report statements.
1) Added tests
2) Added rule assert_400
2021-01-11 20:28:20 -06:00
Jeremiah Leary
d6e05f6d37
Merge pull request #517 from Emilv2/whitespace
...
Remove trailing whitespace
2021-01-11 17:21:37 -06:00
Emil Vanherp
a283911645
don't add trailing whitespace
2021-01-11 21:56:58 +01:00
Emil Vanherp
73420cdca2
remove trailing whitespace
2021-01-11 21:55:56 +01:00
Jeremiah Leary
42f8f24c5b
Updates for issue #515 :
...
Parser would fail on loop statements if preceeded by a simple procedure/function call.
1) Updated tests
2) Updated interation_scheme parser
2021-01-11 08:56:50 -06:00
Jeremiah Leary
d15993e8db
Updates for issue #509 :
...
Adding port rule to check for multiple identifiers on port declarations.
1) Added documentation
2) Added test
3) Added rule port_026
2021-01-09 15:35:16 -06:00
Jeremiah Leary
6ffd9b5636
Updates for issue #513
...
Adding documentation on supported pragmas.
2021-01-09 13:48:40 -06:00
Jeremiah Leary
ed3b214e40
Updates for issue #513
...
Adding support for pragmas vhdl_comp_on and vhdl_comp_off.
The VSG parser will ignore anything between those pragmas.
1) Added test
2) Added pragma token class
3) Added pragma parser
2021-01-09 13:36:27 -06:00
Jeremiah Leary
8086380440
Updates for issue #516 :
...
The file_logical_name was not being properly parsed.
1) Updated test to expose issue
2) Updated parser to handle file_logical_name expressions
2021-01-08 19:25:01 -06:00
Jeremiah Leary
f7b4aae56e
Updates for issue #514 :
...
Parser did not accept infinite loops.
1) Updated test to expose issue
2) Updated parser to allow for infinite loops
2021-01-08 17:26:28 -06:00
Jeremiah Leary
fa5acc0794
Updates for issue #511
...
Parsing of parenthesis in expressions and subtype indications were improved.
1) Updated tests
2) Ensured all calls to classify_until were lists
3) Updated expression and subtype_indication classifiers
2021-01-08 08:51:12 -06:00
Jeremiah Leary
9b7ba24e0b
Updates for issue #510 :
...
subtype_indication classifier was incorrectly handling the closing parenthesis.
1) Updated tests
2) Updated subtype_indication classifier
2021-01-05 19:36:40 -06:00
Jeremiah Leary
b9ff42e5b1
Updates for issue #508 :
...
Procedure declarations without a formal parameter list would fail to classify.
1) Updated test
2) Updated procedure and function classifiers
2021-01-04 17:58:21 -06:00
Jeremiah Leary
65c61ce01a
Updates for issue #505 :
...
Rules enforcing whitespace before a token would fail if it was the start of the line.
1) Updated whitespace_010 test
2) Updated code to ignore whitespace if token is the start of a line
2021-01-02 12:22:26 -06:00
Jeremiah Leary
0d0e35c986
Updates for issue #446 :
...
Updating documentation for rules entity_600 and architectecture_600 to fix minor errors.
2020-12-31 10:07:05 -06:00
Jeremiah Leary
e13adaf072
Updates for issue #429 :
...
Replacing : with colon in rule descriptions.
2020-12-30 14:39:28 -06:00
Jeremiah Leary
8d8169dbe3
Updates for issue #446 :
...
Adding rules to check for consisent capitalization of generic identifiers.
1) Added documentation
2) Added tests
3) Added rules
a) entity_600
b) architecture_600
2020-12-28 13:49:21 -06:00
Jeremiah Leary
0e4f4a4dca
Updates for issue #373 :
...
Fixing center alignment and indenting logic.
1) Updated tests
2) Updated rules
a) block_comment_001
b) block_comment_002
c) block_comment_003
2020-12-23 12:26:32 -06:00
Jeremiah Leary
73d446a4d1
Updates for issue #373 :
...
Fixing comment_010 violations due to rules aligning comments above keywords.
2020-12-22 18:51:31 -06:00
Jeremiah Leary
89bc825a9a
Updates for issue #373 :
...
Updating detection of headers and footers.
Added ability to allow for indented block comments.
1) Updated documentation
2) Updated tests
3) Updated rules:
a) block_comment_001
b) block_comment_002
c) block_comment_003
2020-12-22 12:26:40 -06:00
Jeremiah Leary
e604ad0d91
Updates for issue #501 :
...
Cleaning up documentation.
2020-12-22 09:30:06 -06:00
Jeremiah Leary
61de3b1e11
Updates for issue #501 :
...
Fixing issue in token map where it was returning a list with None if the end pair token was not found.
2020-12-22 09:11:57 -06:00
Jeremiah Leary
1a9da639d3
Updates for issue #503 :
...
Preprocessor commands were being replaced with empty strings.
2020-12-21 15:26:30 -06:00
Jeremiah Leary
585208ad61
Updates for issue #503 :
...
Adding ability to parse preprocessor commands embedded in VHDL code.
1) Added preprocessor token
2) Added preprocessor classifier
2020-12-21 14:15:48 -06:00
Jeremiah Leary
3a16f97c83
Updates for issue #373 :
...
Fixing centering logic when block comment is indented.
Added special case for Doxygen comments.
1) Updated documentation
2) Updated tests
3) Update rule block_comment_001
2020-12-21 12:11:17 -06:00
Jeremiah Leary
7b9f3327dc
Updates for issue #445 .
...
Adding indent_config.yaml to manifest so it will be included while installing.
2020-12-21 10:53:27 -06:00
Jeremiah Leary
10a2f645b6
Updates for issue #368 :
...
Adding rule to align colons in record type definitions.
1) Added documentation
2) Added test
3) Added rule type_400
2020-12-20 20:00:58 -06:00
Jeremiah Leary
805858d766
Updates for issue #445 :
...
Removing debug print message.
2020-12-20 18:20:13 -06:00
Jeremiah Leary
b778a030fd
Updates for issue #445 :
...
Removing unused file due to refactor.
2020-12-20 18:11:43 -06:00