Commit Graph

75 Commits

Author SHA1 Message Date
Jeremiah C Leary 3123a1ff7f Updates for issue #188
Added feature to ensure a blank line before the first "if" statement unless there is a comment.

  1)  Added tests
  2)  Added documentation
  3)  Updated tests to match new rule
2018-12-12 09:54:25 -06:00
Jeremiah C Leary 3af2b46496 Updates for issue #109:
Blank line after "end if" keyword is now enforced.

  1)  Added test case
  2)  Updated documentation
  3)  Added rule
2018-12-03 19:53:51 -06:00
Jeremiah C Leary c031527690 Updates for issue #186
1)  Made end architecture more restrictive.
  2)  Updated tests
2018-12-03 19:26:57 -06:00
Jeremiah C Leary 317c728d6e Adding wait_001 rule to handle indenting of wait statements.
1)  Added tests
  2)  Added docmentation
  3)  Added rule
2018-12-01 11:03:11 -06:00
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 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 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 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 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 a8b4213a1f Fixing code coverage issues with classifying function returns. 2018-11-15 18:30:50 -06: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
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
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
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
Ryan Fitzsimon 7570c18be7 Tighten requirements for classification as signal
Require the "signal" keyword to be followed by whitespace.

This prevents lines beginning with identifiers made up of "signal"
and some suffix (such as "signal1" or "signal_a") from being classified
as signals.
2018-09-04 18:05:26 +10:00
Ryan Fitzsimon 79456cf1a2 Use explicit relative imports
Implicit relative imports are not supported in Python 3 (see pep-0404).

Using explicit relative imports also helps avoid name clashes.
2018-08-31 11:24:13 +10:00
Jeremiah C Leary 49baadebbe Updates for issue #137:
1)  Fixed mis-classifying of library use statements with "record" in the name as a record.
2018-05-05 10:04:31 -05:00
Jeremiah C Leary a142f78ef2 Updates for issue #133:
1)  Updated classification of functions.
  2)  Updated tests
2017-12-30 12:27:23 -06:00
Jeremiah C Leary b432e2994e Fixing code style issue. 2017-12-30 09:36:17 -06:00
Jeremiah C Leary 4710c436b7 Updates for issue #132:
1)  Updated classification of procedures
  2)  Updated tests
  3)  Added procedure_005 rule
  4)  Updated documentation
2017-12-30 09:31:22 -06:00
jcleary cef1a0a7a0 Updating classifiers to handle more conditions. 2017-12-29 21:03:16 -06:00
jcleary 4c807163ec Fixing classification of generate keyword. 2017-12-29 16:27:39 -06:00
Jeremiah C Leary 3130c98063 Code style updates. 2017-12-29 07:43:28 -06:00
Jeremiah C Leary fdb45d79ae Refactoring classifiers and several rules. 2017-12-28 06:57:39 -06:00
Jeremiah C Leary 606866d85d Refactoring classifiers. 2017-12-27 15:34:38 -06:00
Jeremiah C Leary dd88efba0d Refactored classifiers and function_009. 2017-12-27 15:00:41 -06:00
Jeremiah C Leary f61ca71212 Updates for issue #126
1)  Added classification for multiline constants
  2)  Added constant_012 rule
  3)  Added tests
  4)  Added documentation
2017-12-27 14:18:13 -06:00
Jeremiah C Leary a0033246c7 Updates for issue #129
1)  Added classification of procedures
   2)  Added procedure rules 001, 002, 003, and 004.
   3)  Added tests
   4)  Added documentation
2017-12-27 11:56:25 -06:00
Jeremiah C Leary 528b6df6b3 Adding classifying of record types if the keyword **record** is on the next line. 2017-12-26 15:40:56 -06:00
Jeremiah C Leary 59531d93f4 Fixed issue where record type assignments were classified as instantiations. 2017-12-26 10:02:48 -06:00
Jeremiah C Leary 0992486845 Updates for code coverage:
1)  Removed unused code in subtype classification.
2017-12-26 08:37:51 -06:00
Jeremiah C Leary 8b18201fe7 Updates for issue #129
1)  Added ability to correctly classify nested generates.
  2)  Added tests
2017-12-26 08:00:31 -06:00
Jeremiah C Leary 41510950d9 Updates for issue #128
1)  Function parameters are no longer classified as signals or constants
  2)  Functions in packages are now classified
  3)  Updated tests
2017-12-26 07:23:56 -06:00
Jeremiah C Leary 838045702b Removing debug print. 2017-12-26 07:01:30 -06:00
Jeremiah C Leary 0dc3336e65 Fixed issue where parenthesis in comments were throwing off the parenthesis counters. 2017-12-26 06:58:48 -06:00
Jeremiah C Leary 86ec8e697e Updates for issue #84
1) Added function_008 and function_009
  2) Added tests
  3) Added documentation
2017-12-25 12:45:01 -06:00
Jeremiah C Leary 1145cda18f Updates for issue #124
1)  Added file statement attributes to line.py
  2)  Added file statement classifier
  3)  Added file statement rules
  4)  Added tests
  5)  Added documentation
2017-12-25 11:24:06 -06:00
Jeremiah C Leary e09f02c492 Updating style issues to address Codacy issues. 2017-12-25 10:01:14 -06:00
Jeremiah C Leary 03636fe358 Updates for issue #123
1)  Added attribute attributes to line.py
  2)  Added attribute classifier
  3)  Added attribute rules
  4)  Added tests
  5)  Added documentation
2017-12-25 09:50:45 -06:00
Jeremiah C Leary ec85925bdc Updates for issue #121:
1)  Added attributes specific to enumerated types
  2)  Updated rules accordingly
  3)  Updated tests
2017-12-24 16:54:15 -06:00
Jeremiah C Leary b85d8c84c0 Refactored type rules into type_definition rules to address Codacy issue. 2017-12-24 06:59:07 -06:00
Jeremiah C Leary af3549def7 Updates for issue #125:
1)  a space between the ) and ; was not classified as the closing of an instantiation.
2017-12-23 16:13:40 -06:00
Jeremiah C Leary fb09a153a7 Refactored process rules. 2017-12-23 13:36:08 -06:00
Jeremiah C Leary c8580148cc Refactored classify files. 2017-12-23 08:55:28 -06:00
Jeremiah C Leary a9b5e71255 Fixing style issues. 2017-12-22 13:22:07 -06:00
Jeremiah C Leary 40ca454f2f Updates for issue #120
1)  Added type_012
  2)  Fixed type_008, which was causing issue
  3)  Added tests
  4)  Added documentation
2017-12-21 18:15:58 -06:00
Jeremiah C Leary 515913197c Updates for issue #119
1)  Added array type classification
  2)  Prevented type_008 from moving closing ); to next line
  3)  Updated tests
2017-12-21 13:18:12 -06:00