Commit Graph

43 Commits

Author SHA1 Message Date
Jeremiah Leary 14f7564a4e Updates for new method:
1)  Added generic rules

NOTE:  splitting of entity rules into entity, port and generic rules is now complete.
2017-09-09 07:50:02 -05:00
Jeremiah Leary 8e5c233021 Updates for new method refactoring:
1)  Added three missing tests from the split of rule_entity into three
  seperate rules.
2017-09-08 17:10:43 -05:00
Jeremiah Leary c2a8dbf76c Updates for new method refactoring:
1)  Split rule_entity into rule_entity, rule_port and rule_generic
  2)  Refactored rule_entity
  3)  Refactored rule_port
  4)  Updated line and vhdlFile classes to support refactoring

NOTE:  rule_generic must still be refactored and added
2017-09-08 16:35:50 -05:00
Jeremiah Leary bd1c647dab Updates for entity rules:
1)  Added some entity attributes to the line object
2017-09-08 11:27:19 -05:00
Jeremiah Leary bc053a3675 Refactored entity rule tests. 2017-09-08 11:16:36 -05:00
Jeremiah Leary 2e63dbd183 Updates for new method:
1)  Refactored library rules
2017-09-08 10:12:38 -05:00
Jeremiah Leary a14937eddf Updates for new parsing method:
1)  Created line and vhdlFile classes and tests
2017-09-08 09:20:49 -05:00
Jeremiah Leary 4233aabc7f Updates for process rules:
1)  Initial pass at process rules
  2)  Added rules to rule_list
  3)  Refactored concurrent rules due to change in _insideProcess def
2017-09-07 17:12:13 -05:00
Jeremiah Leary 0f90902def Updates for concurrent statement rules:
1)  Adding concurrent statement rules
  2)  Added rules to rule list
2017-09-06 12:49:18 -05:00
Jeremiah Leary 99280dd1eb Updates for constant rules:
1)  Adding first pass at rules for constats
2017-09-05 21:04:06 -05:00
Jeremiah Leary 16f24feb84 Updates for signal rules:
1)  Added rule to check for alignment of colons in signal declarations
2017-09-05 18:12:57 -05:00
Jeremiah Leary 2a88c9a641 Updates for signal rules:
1)  Added checking of configurable prefixes

NOTE:  Still need to figure out how to configure them.
2017-09-05 15:37:12 -05:00
Jeremiah Leary 05d22acf4e Updates for signal rules:
1) Adding rules for signals
  2) Added rules to rule_list
2017-09-05 08:32:01 -05:00
Jeremiah Leary 5779ab31da Updates for architecture rules:
1)  Added new rules
  2)  Refactored architecture rules to enhance readability
  3)  Added architecture rules to rule_list
2017-09-04 20:21:54 -05:00
Jeremiah Leary fb7d6705a7 Changing description attribute to solution. 2017-09-04 20:20:16 -05:00
Jeremiah Leary 9fca695357 Adding more architecture rules. 2017-09-04 18:36:10 -05:00
Jeremiah Leary 8808279ae9 Refactoring:
1)  Added add_violation method to rule class
  2)  Modified rules to use the new method
2017-09-04 15:54:33 -05:00
Jeremiah Leary d8bead6040 Fixing minor issues after running on examples. 2017-09-02 21:16:31 -05:00
Jeremiah Leary 083f57103a Adding new entity rules to the list. 2017-09-02 21:06:17 -05:00
Jeremiah Leary 787e7aa095 Adding more entity rules. 2017-09-02 21:02:06 -05:00
Jeremiah Leary ebcdb14a45 Entity rule 23 compromise:
Will not check prefix or suffix on lines withe multiple ports.
Another rule will catch the multiple ports and when they are split onto
their own lines, then rule 23 will apply.
2017-08-30 20:42:47 -05:00
Jeremiah Leary 828eca47a5 Fixed end entity declaration and tests. 2017-08-30 20:33:24 -05:00
Jeremiah Leary 1a6095f1d8 Updates for rule_entity:
1)  Added check for multiple ports assigned on a single line
2017-08-28 21:21:17 -05:00
Jeremiah Leary 9a02eebd4e Updates for entity rules:
1)  Fixed checking of spaces before end keyword for entities
2017-08-28 20:57:51 -05:00
Jeremiah Leary d30a70b098 Updates for entity rules:
1)  Fixed copy paste errors for directions
  2)  Added configuration method for prefix and suffix port naming
2017-08-28 20:30:30 -05:00
Jeremiah Leary 4bafb80cfd Updates for entity rules:
1)  Added rules to check case of generic and port keywords
  2)  Added rule to check for default assignments of ports
2017-08-27 16:42:45 -05:00
Jeremiah Leary 2b39f10166 Updates after testing against real code:
1)  Updated several entity tests
  2)  Added all rules to rule list
2017-08-27 14:14:32 -05:00
Jeremiah Leary 051abdce7a Adding initial architecture rules. 2017-08-18 20:47:46 -05:00
Jeremiah Leary 34e150eb5a Adding rule for closing parenthesis in generics. 2017-08-17 18:16:38 -05:00
Jeremiah Leary 6169387ec1 Adding rules for generics. 2017-08-17 17:54:33 -05:00
Jeremiah Leary f8cf209fc2 Refactored rule_entity_tests to use an external test file. 2017-08-17 14:54:29 -05:00
Jeremiah Leary fd2b622154 Refactored rule_library_test to support external test file. 2017-08-17 12:49:15 -05:00
Jeremiah Leary 2eede473af Adding more entity rules. 2017-08-17 11:06:39 -05:00
Jeremiah Leary 2b5a12c086 Adding more entity rules.
Fixed comment in rule_library.py
2017-08-17 10:08:59 -05:00
Jeremiah Leary 4551c5798b Adding port spacing rules. 2017-08-14 19:59:00 -05:00
Jeremiah Leary e73e9f68cb Adding entity port rules. 2017-08-12 22:40:21 -05:00
Jeremiah Leary ad23aefa77 Adding first rules for entities. 2017-08-12 18:29:05 -05:00
Jeremiah Leary 63a5340b30 Adding library and use keyword rules. 2017-08-12 17:40:38 -05:00
Jeremiah Leary 2aadc98e77 Added two rules:
whitespace 003 - no spaces before semicolons
  whitespace 004 - no spaces before commas
2017-08-12 16:46:48 -05:00
Jeremiah Leary b6acb48ba5 Updating tests to reflect change in rule class for storing rule violations. 2017-08-12 16:38:11 -05:00
Jeremiah Leary 22692016d6 Updates to run on files:
1)  Added rule_list class to contain multiple rules
  2)  Rules no longer return a dictionary, they store the lines that
  failed in a list
  3)  Output was made to be similar to pep8

NOTE:  Tests were not updated, but will be on the next checkin.
2017-08-06 20:06:50 -05:00
Jeremiah Leary 301c27327e Updates for whitespace rule 002:
1)  Added whitespace rule 002
2017-07-31 22:12:54 -05:00
Jeremiah Leary d654eda708 Updates for whitespace rules:
1)  Adding rule class
  2)  Adding whitespace rule 001
2017-07-31 21:55:56 -05:00