Commit Graph

106 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 cf9b3b7791 Updates for issue #193
Build failed, but local tests passed.
Tracked problem down to not setting filename in vhdlFile object.
2019-02-24 13:29:10 -06:00
Jeremiah C Leary 183b9f5c18 Updates for issue #193
The class vhdlFile now takes a list instead of a file name.
This removes the responsibility of reading the file from the vhdlFile class.
Which allows for better integration into other tools.
2019-02-24 12:49:25 -06:00
Jeremiah C Leary 15d39274c3 Updates for issue #206
1)  Fixing Codacy issues
2019-02-24 09:42:29 -06:00
Jeremiah C Leary a51c390771 Updates for Codacy issues. 2019-02-17 09:49:32 -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 9a68c25937 Fixing issues identified by Codacy. 2018-12-18 08:43:16 -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 e8de82199d Updates for codacy issues. 2018-12-12 15:45:40 -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 19985ea81b Fixing code style issues. 2018-11-15 18:53:08 -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 33e81c896a Preparing for release 0.21
1)  Updated release number
  2)  Added/Updated comments
2018-11-01 21:04:31 -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
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 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 d6068f3fb9 Adding API documentation. 2017-12-29 07:14:36 -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