Commit Graph

86 Commits

Author SHA1 Message Date
Jeremiah C Leary 74778a393d Updates for issue #220:
Completed bug fix:

  1)  Added rule procedure_006
      a)  Added documentation
      b)  Added test
      c)  Added rule
  2)  Fixed misclassification of procedure parameters as variable assignments
      a)  Enhanced tests for procedures
      b)  Enhanced tests for variable_assignments
      c)  Fixed variable_assignment classifier to ignore component parameters
2019-03-23 07:29:22 -05:00
Jeremiah C Leary 65159fcb0b Updates for issue #220
Adding test case to procedure tests.

  1)  Updated meaning of isProcedureParameterEnd.
2019-03-22 17:52:04 -05:00
Jeremiah C Leary 6f7ae69e55 Updates for issue #220:
Invalid classification of procedure "begin" keyword as a process "begin" keyword.

  1)  Updated tests to include testcase
  2)  Updated code to handle testcase
2019-03-22 17:26:42 -05:00
Jeremiah C Leary f2f0ac5bc9 Updates for issue #181
Adding code tag classifier.
2019-03-10 11:09:02 -05:00
Jeremiah C Leary 47e14761f9 Updates for issue #214:
1)  Restricted classification of file keyword to include a space afterwards.
  2)  Updated tests
2019-03-09 09:59:01 -06:00
Jeremiah C Leary 48563434cd Updates to address codeclimate issues. 2019-03-02 09:29:53 -06:00
Jeremiah C Leary a974530bb5 Updates for issue #204
Added rule to handle generate label and generate keyword not on the same line:

  1)  Added generate_015 to flag label and keyword not on the same line
  2)  Added tests
  3)  Added documentation
  4)  Improved classification of generates to detect label and keyword not on the same line

NOTE:  This is currently not fixable.
2019-03-02 08:57:01 -06:00
Jeremiah C Leary 3f094345a2 Updates for issue #208
1)  Added "when" attributes to line object
  2)  Added classification of "when" constructs
  3)  Added tests
2019-02-17 09:28:19 -06:00
Jeremiah C Leary 5f5eee4571 Updates for issue #203
Made process detection ignore commented out code.

  1)  Updated test
  2)  Updated classifier
2019-02-11 18:13:50 -06:00
Jeremiah C Leary 436d5c7bb7 Updates for issue #198
Fixed issue when signal names starting with "end_" were classified as an architecture end:

  1)  Added test
  2)  Updated classification
2019-02-05 16:34:07 -06:00
Jeremiah C Leary ec35a15d3a Updates for issue #191
Added rules case_019 and case_020 to remove labels on case statements:

  1)  Added rule case_019
  2)  Added rule case_020
  3)  Added documentation
  4)  Added tests
  5)  Fixed mis-classification of cases with labels
2018-12-12 19:03:15 -06:00
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