Commit Graph

151 Commits

Author SHA1 Message Date
Jeremiah C Leary 7fd00cbd49 Updates for main vsg program:
1)  Added ability to load rules from local directory
2017-11-05 20:08:00 -06:00
Jeremiah C Leary 418fd72d7b Updates for for loop rules:
1)  Added indent rules for for loops
2017-11-05 15:34:21 -06:00
Jeremiah C Leary 4d1388c2d1 Updates for for loops:
1)  Fixed issue where "end loop" was not detected in nested for loops
2017-11-05 15:21:59 -06:00
Jeremiah C Leary 54a52cd628 Updates for variable rules:
1)  Adding variable rules
2017-11-05 14:54:27 -06:00
Jeremiah C Leary c3dc407048 Updates for variable rules:
1)  Adding variable rules
2017-11-05 14:09:03 -06:00
Jeremiah C Leary 066955a626 Updates for signal rules:
1)  Fixed uppercase rule catching generics in signal declarations
2017-11-05 09:06:57 -06:00
Jeremiah C Leary 9144d79512 Updates for generate rules:
1)  Added rule to enfore upper casing generate label
2017-11-05 08:49:53 -06:00
Jeremiah C Leary bcd22a5a72 Updates for instantiations:
1)  Fixed issue where instantiations were not detected inside generates
2017-11-05 08:40:03 -06:00
Jeremiah C Leary a1382a3474 Updates for generate rules:
1)  Added for generate detection
  2)  Added vertical spacing rule
2017-11-05 08:21:45 -06:00
Jeremiah C Leary e7d9540f74 Updates for generate rules:
1)  Added blank line rule
2017-11-04 18:50:47 -05:00
Jeremiah C Leary d094ad79f1 Updates for port and generate rules:
1)  Updated port rule to ignore capitalized generics in port declarations
  2)  Fixed indenting in generates
2017-11-04 18:40:19 -05:00
Jeremiah C Leary 560ff0445e Updates for type rules:
1)  Added basic rules for types
2017-11-04 13:56:45 -05:00
Jeremiah C Leary 024ce45a1b Updates for type and constant rules:
1)  Type rules apply to types in packages
  2)  Constant rules apply to constants in packages
2017-10-16 20:03:16 -05:00
Jeremiah C Leary 5a796324c5 Updates for type rules:
1)  Added type attributes to line class.
  2)  Populated type attributes in line class via vhdlFile class
2017-10-15 20:59:04 -05:00
Jeremiah C Leary c96bf8317b Updates for instantiation rules:
1)  Flagging instantiation ports with 0 or more than one space after the => operator.
2017-10-15 15:21:21 -05:00
Jeremiah C Leary c17fed570a Updates for instantiation rules:
1)  Multiple port assignments on a single line are flagged.
2017-10-15 13:17:04 -05:00
Jeremiah C Leary 9a24c677e0 Updates for comment rules:
1)  Flagging comments without a single space before them.
2017-10-15 12:13:45 -05:00
Jeremiah C Leary 82c9710355 Updates for function rules.
1)  Additional rules to handle functions.
2017-10-15 09:34:37 -05:00
Jeremiah C Leary d83c9c3512 Updates for for loop rules:
1)  Added attributes for for loops into line class
  2)  Added populating attributes into vhdlFile class
2017-10-15 08:02:13 -05:00
Jeremiah C Leary bc32304bd6 Updates to case and sequential rules after running against example code:
1)  Sequential will not flag lines in which there is not code after the <= operator
  2)  Cases are now detected inside functions
  3)  Code after => in case when lines are flagged
2017-10-14 13:26:35 -05:00
Jeremiah C Leary 8c832de9d7 Defaulting port prefix/suffix check to None. 2017-10-14 12:20:48 -05:00
Jeremiah C Leary fcf825890b Updates for if rules:
1)  If rules flag if else or elsif or endif do not begin their own lines.
2017-10-14 11:09:48 -05:00
Jeremiah C Leary e21443baaf Updates for if rules:
1)  Fixed issue when a case statement ends above a else keyword.
2017-10-08 20:14:39 -05:00
Jeremiah C Leary 21c2b803f5 Updates for instance rules:
1)  Fixed issue where function parameter was mistaken for an instance declaration.
2017-10-08 20:09:47 -05:00
Jeremiah C Leary c4bf737038 Update for function rules:
1)  Added first function rule for indentation
2017-10-08 14:35:25 -05:00
Jeremiah C Leary 1759dcbb05 Updates for generic rules:
1)  Multiple generics defined on a single line are flagged.
2017-10-08 14:21:35 -05:00
Jeremiah C Leary af26a0993b Updates for if rules:
1)  Code after else statement is flagged to be on the next line.
2017-10-08 14:08:18 -05:00
Jeremiah C Leary 6f714ff3e3 Updates for function rules:
1)  Added function attributes to line class
  2)  Added function attribute assignments to vhdlFile class
2017-10-08 11:41:07 -05:00
Jeremiah C Leary c155bf0b59 Updates for whitespace rules:
1)  Allow spaces between open parenthesis and numbers to allow aligning of "downto" ranges.
2017-10-08 07:26:07 -05:00
Jeremiah C Leary 6352da8b3a Updates for concurrent rules:
1)  Added rule to flag code after "else" keyword.
2017-10-08 07:15:57 -05:00
Jeremiah C Leary f909c944d1 Updates for if rules:
1)  Added rule to catch sequential assignments on same line as then keyword.
2017-10-08 07:06:07 -05:00
Jeremiah C Leary 2302960e03 Updated after another run against an example:
1)  Updated spacing around if and case keywords
  2)  Remove comments within multiline sequential statements
2017-10-07 19:48:13 -05:00
Jeremiah C Leary d4a8315af3 Updates after running on another example:
1)  Updated conflict between case and if rules
  2)  Updated concurrent rule for spacing after =>
  3)  Updated instantion to detect port assignments on same line as port map keyword
  4)  Update case to ensure sequential assignment is not on same line as when keyword
  5)  Updated port assignment to ensure at least one space before :
2017-10-07 18:44:08 -05:00
Jeremiah C Leary 40b23d6e5f Updates for generic rules:
1)  Added alignment of := operator.
2017-10-07 15:18:23 -05:00
Jeremiah C Leary ff6c3783ee Updates for generate rules:
1)  Basic rules to handle "if generate" commands

NOTE:  Need many more rules
2017-10-07 15:08:17 -05:00
Jeremiah C Leary 91e59c3688 Adding installation instructions. 2017-10-07 14:22:21 -05:00
Jeremiah C Leary 1e4573b71d Updates for distribution:
1)  Renamed application
  2)  Added application to setup.py
2017-10-07 09:07:58 -05:00
Jeremiah C Leary 7d892b4767 Fixed importing issues. 2017-10-07 07:13:01 -05:00
Jeremiah Leary ed5da4b30e Updates for generate rules:
1)  Added generate attributes to line class
  2)  Populated line class generate attributes with vhdlFile class
2017-10-05 22:27:02 -05:00
Jeremiah Leary 3fa6669412 Updates for rule renaming:
1)  Fixed filter on importing rules
2017-09-30 07:52:10 -05:00
Jeremiah Leary d890e70dd8 Updates for rule renaming:
1)  Renamed if rule to if_statement
2017-09-30 07:48:44 -05:00
Jeremiah Leary 8a2de57acd Updates for rule renaming:
1)  Removed rule_ from beginning of rule names
  2)  Renamed test directories

NOTE:  need to rename if rule to if_statement since if is a python keyword.
2017-09-30 07:44:27 -05:00
Jeremiah Leary f78c2b8f76 Updates after running on new examples. 2017-09-29 22:57:46 -05:00
Jeremiah Leary a6ea0758a8 Restructered directory using:
http://python-packaging.readthedocs.io/en/latest/index.html

as a reference
2017-09-29 21:57:28 -05:00
Jeremiah Leary c701bb76de Updates for package rules:
1)  Added package rules
  2)  Updated vhdlFile when running against examples
  3)  Bare bones package body checks
2017-09-29 18:34:39 -05:00
Jeremiah Leary 9ff53e0412 Updates for package rules:
1)  Added package attributes to line class
  2)  Added package attribute assignments to vhdlFile
  3)  Added indent tests to case, component and if rules
2017-09-29 10:54:35 -05:00
Jeremiah Leary baa0d35805 Updates to rules after running against examples. 2017-09-28 14:11:14 -05:00
Jeremiah Leary 95bb924133 Updated rule solution text after running against example. 2017-09-28 09:45:22 -05:00
Jeremiah Leary b5192c3395 Updates to instantion rules:
1)  Added rules for generic maps
2017-09-28 09:13:00 -05:00
Jeremiah Leary 2b2212cfbf Updates for generic rules:
1)  Fixed generic indenting in components.
2017-09-26 16:07:16 -05:00