Commit Graph

354 Commits

Author SHA1 Message Date
Jeremiah C Leary 6cd702dc0d Updates for issue #106
1)  Whitespace rules did not have their phase attribute set.
2017-12-04 20:30:22 -06:00
Jeremiah C Leary 98f9346c55 Updates for code coverage
1)  Simplified architecture_005 and architecture_006
2017-12-03 21:33:46 -06:00
Jeremiah C Leary d9bb061050 Updates for issue #104
1)  Created new attribute on the line class that holds line contents with comments.
      This will allow the classifiers to ignore anyting in comments.
  2)  Updated documentation:
      a)  Added instantiation_014 documentation
      b)  Updated architecture documentation
      Still trying out different options.
2017-12-03 21:10:30 -06:00
Jeremiah C Leary 6cae966696 Updates for issue #103
1)  Added std_ulogic to keyword list
2017-12-03 20:23:32 -06:00
Jeremiah C Leary 4b784bc31e Updates for issue #102
1)  Split architecture_010 into architecture_010 and architecture_024.
      architecture_010 checks for "architecture"
      architecture_024 check for architecture name
  2)  Added documentation for the two rules
2017-12-03 20:11:46 -06:00
Jeremiah C Leary 2264385db2 Attempting to setup document structure. 2017-12-03 17:07:59 -06:00
Jeremiah C Leary 5da712cfcc Updating documentation. 2017-12-03 16:48:47 -06:00
Jeremiah C Leary ff8df92265 Changing to read-the-docs theme. 2017-12-03 16:29:49 -06:00
Jeremiah C Leary 3b724bf109 Adding Sphinx documentation. 2017-12-03 16:25:55 -06:00
Jeremiah C Leary b9fa653cfe Preparing for release 0.4. 2017-12-03 10:54:15 -06:00
Jeremiah C Leary f0980171fe Updates for issue #45
1)  Updated the fix for port_018 so it will not flag user defined types.
2017-12-03 10:47:25 -06:00
Jeremiah C Leary af349bd8b2 Fixed bug in which fixes were applied multiple times.
This fix will reduce execution time.
2017-12-03 10:38:21 -06:00
Jeremiah C Leary 0df27ef020 Updates for issue #71
1)  Added classification for assert statements
  2)  Added indent rule
  3)  Added test for assert statements
2017-12-03 07:17:29 -06:00
Jeremiah C Leary 69f0a3fa5c Updates for code climate:
1)  Refactored library rules
  2)  Created single_space_after_rule
2017-12-03 06:29:33 -06:00
Jeremiah C Leary 9cedaa7e21 Updates for code climate
1)  Refactored two rules using functions from fix.py and check.py
2017-12-02 20:10:16 -06:00
Jeremiah C Leary 2d9755741a Updates for code coverage. 2017-12-02 19:33:28 -06:00
Jeremiah C Leary 65ab5066ff Updates for issue #95
1)  New test class indent_rule added
  2)  Added rule for indenting nulls in cases
2017-12-02 19:21:25 -06:00
Jeremiah C Leary 7da2f950de Updates for issue #99
1)  Removed unused self argument from split_line_[before|after] function.
2017-12-02 18:54:53 -06:00
Jeremiah C Leary 09d9de4473 Updates for issue #79
1)  Added function_006 to enforce a blank line above functions
  2)  Added function_007 to enforce a blank line below functions
2017-12-02 18:49:10 -06:00
Jeremiah C Leary 10b2cae01b Updates for issue #100:
1)  Entity ports starting with "use" were being classified as a library use statement.
      Classification has been fixed.
2017-12-02 18:31:42 -06:00
Jeremiah C Leary 5b57d1943e Style updates. 2017-12-02 18:15:21 -06:00
Jeremiah C Leary 7df558ee80 Configuring PEP8 and pycodestyle maximum line length. 2017-12-02 17:57:03 -06:00
Jeremiah C Leary 706a1c3825 Coding style updates for issue #97. 2017-12-02 17:50:34 -06:00
Jeremiah C Leary da64ac3da1 Updates for issue #97
1)  Rule_005 was not performing it's fix loop from the bottom.
      This resulted in modifying lines it should not have as it was changing lines.
2017-12-02 17:47:56 -06:00
Jeremiah C Leary a6b0cace48 Updates for code coverage:
1)  Moved write method from vhdlfile.py to write_vhdl_file in vsg.
      This seems like a more logical place for the write function.
2017-12-02 16:53:46 -06:00
Jeremiah C Leary b2d473e026 Updates for issue #94
1)  Added type_010 to check for blank lines above types
  2)  Added type_011 to check for blank lines below types
2017-12-02 16:46:54 -06:00
Jeremiah C Leary 28497a587d Updates for code climate:
1)  Refactored some rules to use keyword_alignment_rule class.
2017-12-02 16:29:59 -06:00
Jeremiah C Leary f5be815e61 Updates for code climate:
1)  Refactored all insert line rules to use new classes.
2017-12-02 13:01:51 -06:00
Jeremiah C Leary 29d9e75d41 Updates for code climate:
1)  Created rules for inserting lines above and below.
2017-12-02 11:12:22 -06:00
Jeremiah C Leary 0d933f04df Updates for code climate:
1)  Refactored code with suggestions from code climate
  2)  Moved change_word from fix.py to utilities.py
2017-12-02 06:59:54 -06:00
Jeremiah C Leary ef5e02b64a Refactoring for code climate.
1) Fixed style issues
 2) Refactored complex functions
2017-12-01 18:26:05 -06:00
Jeremiah C Leary 2662aadf41 Updates for issue #90
1)  Splitting classify into indivual files based on classes
2017-12-01 17:49:14 -06:00
Jeremiah C Leary 041158382f Updates for issue #90
1)  Created classify.py
  2)  Moved attribute classifications to their own functions within classify.py
2017-12-01 17:29:05 -06:00
Jeremiah C Leary 5cb2abdc1b Updates for issue #91
1)  Create update.py
  2)  Moved the update functions to update.py
2017-12-01 16:34:16 -06:00
Jeremiah C Leary 7865e92b3f Upadates for issue #91
1)  Refactored update_inside_attributes by moving individual updates to their own functions.
2017-12-01 16:29:40 -06:00
Jeremiah C Leary c6c01a1462 Updates for issue #91
1)  Refactored boolean flags out and used attributes from the line object
2017-12-01 16:07:19 -06:00
Jeremiah C Leary 6aa7ed577c Style updates. 2017-12-01 06:06:41 -06:00
Jeremiah C Leary cefa0b95c9 Updates for code climate
1)  Updated style for check.py and setup.py
  2)  Refactored rule_list.py
2017-12-01 06:02:33 -06:00
Jeremiah C Leary fe0fb074e9 Refactoring fix violations to not require _fix_violations in the rule if the rule is not fixable. 2017-12-01 05:39:58 -06:00
Jeremiah C Leary 6aee8bad9b Updates for issue #90
1) Moved _get_word and _get_first_word from rule.py to utilities.py
2017-11-30 06:33:49 -06:00
Jeremiah C Leary a960dc68cb Updates for issue #90
1)  Created utilities.py
  2)  Moved _split_line_before_word and _split_line_after_word from rule.py to utilities.py
2017-11-30 06:27:23 -06:00
Jeremiah C Leary 4a880fca23 Updates for issue #90
1)  Moved utils.py under tests directory as it was related only to tests.
2017-11-30 06:18:57 -06:00
Jeremiah C Leary dcfd6aa824 Updates for issue #90
1)  Moved _insert_blank_line_above and _insert_blank_line_below to fix.py
2017-11-29 06:57:16 -06:00
Jeremiah C Leary 618eeb135e Updates for issue #90
1)  move _remove_blank_lines_above and _remove_blank_lines_below to fix.py
2017-11-29 06:40:57 -06:00
Jeremiah C Leary 0d5a0695be Updates for issue #90
1)  Refactored fix.lower_case and fix.upper_case.
2017-11-28 20:51:30 -06:00
Jeremiah C Leary 7ed5a6c5dd Updates for issue #90
1)  moved enforce_one_space_after_word and enforce_one_space_before_word to fix.py
2017-11-28 20:41:11 -06:00
Jeremiah C Leary 4cbb53a76d Updates for issue #90
1)  Moved _fix_lower_case and _fix_upper_case to fix.py
2017-11-28 20:28:27 -06:00
Jeremiah C Leary 723ed891f7 Updates for issue #90
1)  moved _fix_multiline_alignment to fix.py
2017-11-28 20:14:01 -06:00
Jeremiah C Leary 6dd1bca851 Updates for issue #90
1)  moved _fix_keyword_alignment to fix.py
2017-11-28 20:09:42 -06:00
Jeremiah C Leary 3302988886 Updates for issue #90
1)  Moved _fix_indent to fix.py
2017-11-28 19:59:48 -06:00