Commit Graph

662 Commits

Author SHA1 Message Date
Jeremiah C Leary 2ac0e8ee8e Updates for issue #184
Added support for processs without sensitivity lists.
2018-12-01 10:09:17 -06:00
Jeremiah C Leary e2970f2023 Updates for issue #184
1)  Added type_013 rule to check for lowercase "is" keyword
  2)  Added test
  3)  Updated documentation
2018-11-29 21:40:50 -06:00
Jeremiah C Leary de63c043aa Updates for issue #184
1)  Added case_018 to check for lower case "case" keyword in "end case"
  2)  Fixed documentation for case_017
  3)  Added strip semicolon function to utilities
  4)  Updated lower case rule to strip semicolons
2018-11-29 21:26:58 -06:00
Jeremiah C Leary f8e2bc0e13 Updates for issue #184
1)  Added case_017 rule to check for lowercase end keyword in end case.
2018-11-29 21:01:23 -06:00
Jeremiah C Leary 04d960a6b9 Updates for issue #184
1)  Added case_016 to check for lowercase when keyword
2018-11-29 20:49:45 -06:00
Jeremiah C Leary 2b92cd1830 Updates for issue #184
1)  Added case_015 to check for lowercase is keyword
  2)  Refactored lower_case_rule.py to check every word in a non commented line instead of just the first.
2018-11-29 20:33:58 -06:00
Jeremiah C Leary 2788662c4d Updates for issue #184
Added case_014 to check for lowercase "case" keyword.
2018-11-29 20:10:36 -06:00
Jeremiah C Leary a479b22c3d Updates for issue #182
1)  Updated test to detect generics and ports starting with "process"
  2)  Restricted classifier to look for the whole word "process"
2018-11-29 19:49:10 -06:00
Jeremiah C Leary 9658a2d2f3 Preparing for release 0.25 2018-11-26 20:47:28 -06:00
Jeremiah C Leary d6470d0911 Updates for issue #180
Adding rule component_020:

  1)  Added test for comment alignment in component declarations
  2)  Added rule to detect and fix alignment of comments
  3)  Added documentation
2018-11-26 20:36:30 -06:00
Jeremiah C Leary 1796569713 Updates for issue #180
Adding instantiation_029:

  1)  Added test for aligning comments in instantiation declaration
  2)  Added instantiation_029
  3)  Updated documentation
2018-11-26 20:18:43 -06:00
Jeremiah C Leary ec71d25e1a Preparing for release 0.24. 2018-11-19 18:58:38 -06:00
Jeremiah C Leary d72bd1a1a6 Updates for issue #179
1)  Adding more conditions to tests to flesh out more places where types should not be classified.
2018-11-19 18:54:59 -06:00
Jeremiah C Leary 096abf9547 Preparing for release 0.23 2018-11-19 09:16:57 -06:00
Jeremiah C Leary 243880e87f Updates for issue #178
1)  Updating documentation to show correct boolean usage in JSON examples.
2018-11-16 22:10:01 -06:00
Jeremiah C Leary 5d218e42f5 Updates for issue #178
1)  Added tests for multiple configurations
  2)  Updated code to fix issues found by tests
2018-11-16 22:06:07 -06:00
Jeremiah C Leary 8808c464ef Updates for issue #178
1)  Added parsing of multiple configurations
2018-11-16 19:31:03 -06:00
Jeremiah C Leary 3dc50cc876 Updates for issue #178
1)  Adding documentation for multi configuration option.
2018-11-16 18:52:20 -06:00
Jeremiah C Leary 4bf0c3bb21 Updates for issue #177
ports with names starting with "type" in instantiations are not classified as a type.
2018-11-16 16:58:39 -06:00
Jeremiah C Leary 837aa36b10 Preparing for release 0.22 2018-11-15 19:30:49 -06:00
Jeremiah C Leary d1703a5f3b Updating README to match read the docs documentation. 2018-11-15 19:25:56 -06:00
Jeremiah C Leary 701c54558c Updates for issue #176
1)  Fixed mis classification of ports as types if they started with "type"
  2)  Updated tests
2018-11-15 19:15:02 -06:00
Jeremiah C Leary 19985ea81b Fixing code style issues. 2018-11-15 18:53:08 -06:00
Jeremiah C Leary 45d19397e8 Modifying if statement tests to validate rule 029 fix. 2018-11-15 18:48:07 -06:00
Jeremiah C Leary 03b6c37505 Adding more tests to improve code coverage for whitespace rule 009. 2018-11-15 18:37:12 -06:00
Jeremiah C Leary a8b4213a1f Fixing code coverage issues with classifying function returns. 2018-11-15 18:30:50 -06:00
Jeremiah Leary 5aa92fbeba
Fixed spelling. 2018-11-13 06:31:54 -06:00
Jeremiah Leary e5ccaa32a6
Merge pull request #175 from jeremiah-c-leary/add-code-of-conduct-1
Create CODE_OF_CONDUCT.md
2018-11-01 23:26:28 -05:00
Jeremiah Leary 699910c370
Create CODE_OF_CONDUCT.md 2018-11-01 23:25:42 -05:00
Jeremiah C Leary 33e81c896a Preparing for release 0.21
1)  Updated release number
  2)  Added/Updated comments
2018-11-01 21:04:31 -05:00
Jeremiah Leary b56bc14260
Merge pull request #173 from ryanfitzsimon/prefer_file_args
Don't use config file_list when file args supplied
2018-11-01 20:15:08 -05:00
Jeremiah Leary ea4c8dcda1
Merge pull request #174 from ryanfitzsimon/seq_equal
Use assertSequenceEqual to compare list and range
2018-11-01 20:14:33 -05:00
Jeremiah C Leary 75f42f7cb3 Updates for issue #171
1)  Added whitespace rule 009 and whitespace rule 010 for spaces around concatentation operators.
2)  Added tests
3)  Added documentation
2018-11-01 20:11:42 -05:00
Jeremiah C Leary 95b6f907c8 Updates for issue #172
Fixed mis-classification of less than or equal to (<=) in concurrent statements:

  1)  Updated tests
2018-11-01 19:21:41 -05:00
Ryan Fitzsimon abe1cb1247 Use assertSequenceEqual to compare list and range
Using assertEqual was causing the check to fail under Python 3, where
range() returns an object rather than a list.
2018-10-31 23:45:44 +10:00
Ryan Fitzsimon 15ccb4923f Don't use config file_list when file args supplied
Only use the file_list from the JSON configuration if no filename
arguments are supplied.

This allows local_rules and rule settings from a common configuration
file to be used when analysing only a single file.

This is particularly useful when VSG is being used as a checker by an
editor plugin such as Syntastic.
2018-10-31 23:37:17 +10:00
Jeremiah C Leary 0a4b99b3e5 Preparing for release 0.20wq 2018-09-22 09:25:53 -05:00
Jeremiah C Leary 738ff06054 Fixing documentation warnings. 2018-09-22 09:19:52 -05:00
Jeremiah C Leary 937ff79e13 Updates for issue #168
1)  Added handling of files being passed that do not exist
  2)  Updated documentation
  3)  Updated tests
2018-09-22 09:07:25 -05:00
Jeremiah C Leary 25dee56a37 Updates for issue #167
1)  Fixed setting failures to something other than 0 in JUNIT file when no failures were detected.
2018-09-17 20:19:00 -05:00
Jeremiah C Leary ce8a1ec582 Preparing for release 0.18 2018-09-13 22:32:06 -05:00
Jeremiah C Leary fb27c4434a Updates for issue #166:
1)  Fixed classification of "begin" keyword in comments
  2)  Updated tests
  3)  Split vhdlFile process tests into their own file
2018-09-13 22:28:22 -05:00
Jeremiah C Leary 846054db02 Allowing for instances to be declared in blocks. 2018-09-13 22:07:23 -05:00
Jeremiah Leary 1c9d189d37
Merge pull request #165 from ryanfitzsimon/block_support
Block support
2018-09-13 05:28:39 -05:00
Ryan Fitzsimon ace1736767 Simplify block test
Use list comprehensions rather than iterating and appending.

Don't worry about limiting the number of lines considered in
test_block_indent_assignment(). The other tests don't do this and the
comparison will work as expected even if the lists are different sizes.

Remove unnecessary comments. It is obvious that the result of a list
comprehension will be a list and that assertEqual will compare its two
arguments.
2018-09-13 15:49:50 +10:00
Ryan Fitzsimon dc68862ad1 Allow varied constant indentation levels
Use the previous indent level for constants instead of always setting
it to 1.
2018-09-13 15:49:42 +10:00
Ryan Fitzsimon 591ab27a7e Add type and constant to the block unit test
Add an array type and constant to the block unit test input file to
increase the range of scenarios covered.

Change the entity name from "ENTITY" to "BLOCK_EXAMPLE" so that it does
not conflict with the keyword.

Add an entity declaration so that the file is a valid standalone VHDL
design.
2018-09-13 15:49:30 +10:00
Jeremiah C Leary 510ba10e8c Updates for issue #161
Adding initial support for blocks:

  1)  block structures are now detected
  2)  indenting enforced

NOTE:  extensive testing of structures within a block have not been tested.
2018-09-12 20:53:05 -05:00
Jeremiah C Leary 7ea93f7238 Updates for issue #164
1)  Added more restrictions on detecting record keyword
  2)  Updated tests
2018-09-12 19:51:31 -05:00
Jeremiah Leary 645da4f40b
Merge pull request #160 from ryanfitzsimon/master
Add initial support for Python 3 and Windows
2018-09-12 16:14:01 -05:00