Commit Graph

345 Commits

Author SHA1 Message Date
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
Jeremiah C Leary cdd8543428 Updates for issue #90
1)  Moved _is_single_space_after and _is_single_space_before to check.py
2017-11-28 19:49:58 -06:00
Jeremiah C Leary 3aec9ca446 Updates for issue #90
1)  Moved _is_lowercase and _is_uppercase to check.py
2017-11-28 19:43:58 -06:00
Jeremiah C Leary b7a568d537 Updates for issue #90
1)  Moved _check_multiline_alignment to check.py
2017-11-28 19:32:53 -06:00
Jeremiah C Leary eee146f5c4 Updates for issue #90
1)  Moving _check_keyword_alignment to check.py
2017-11-28 19:26:34 -06:00
Jeremiah C Leary 99319d04d2 Updates for issue #90
1)  Refactored add_keyword_alignment_violation to remove arguments
2017-11-28 19:14:12 -06:00
Jeremiah C Leary f1d7da2dd4 Updates for issue #90
1) Finished refactoring _check_keyword_alignment
2017-11-28 07:45:36 -06:00
Jeremiah C Leary 4c831c5295 Updates for issue #90
1)  Refactoring _check_keyword_alignment
2017-11-27 19:59:06 -06:00
Jeremiah C Leary 322d9f7da9 Updates for issue #90
1)  Refactored report_violations to reduce complexity
2017-11-27 19:31:49 -06:00
Jeremiah C Leary 8e44d865e1 Updates for issue #92
1)  The end of port definition in a component was being tagged with insideEntity
2017-11-27 19:24:00 -06:00