Commit Graph

1889 Commits

Author SHA1 Message Date
Jeremiah Leary 0d228d00a8 Updates for issue #450:
Adding support for open_paren_new_line option.

  1)  Added tests
  2)  Added code
2021-02-22 17:22:47 -06:00
Jeremiah Leary 0434eca997 Updates for issue #450:
Adding support for last_paren_new_line.

  1)  Added test
  2)  Added code to detect
2021-02-22 17:22:47 -06:00
Jeremiah Leary 5e4000dc83 Updates for issue #450:
Adding first attempt at detecting first_paren_new_line option.
Fixing still needs to be implemented.
2021-02-22 17:22:47 -06:00
Jeremiah Leary 0a50b02d0c Updates for issue #450:
Adding intial documentation for configuring multiline rules.
2021-02-22 17:22:47 -06:00
Jeremiah Leary fa3e1d9f1c Updates for issue #532:
Process classifer was not honoring the end of a block statement.

  1)  Updated tests to expose the issue
  2)  Updated process classifier
2021-02-13 09:27:55 -06:00
Jeremiah Leary a7e4788306 Updates for issue #504:
Fixing bug in the case there is a single block statement would result in a crash with an index error.
2021-02-12 13:03:36 -06:00
Jeremiah Leary 1b2b3ba11a
Merge pull request #530 from Emilv2/skip_tests
skip test instead of silently passing
2021-02-11 08:13:33 -06:00
Emil Vanherp 0a966fc7c6
skip test instead of silently passing 2021-02-11 12:23:14 +01:00
Jeremiah Leary f4afb2b878 Updates for issue #486:
Fixing issue with zip file installations under a git repo were reporting the git repo sha number.
2021-02-10 19:18:43 -06:00
Jeremiah Leary 9f4e3be1ed Updates for issue #528:
Setting permission tests so they do not run if you have root previliges.
2021-02-10 18:29:20 -06:00
Jeremiah Leary 5d43a912d5 Updates for issue #504:
Minor updates to documentation to improve clarity.
2021-02-09 20:53:01 -06:00
Jeremiah Leary 48d73dd51e Updates for issue #486:
Changing format of version when installing.

  1)  zip files with have the format:  3.0.0+zip.file
  2)  python setup.py install:  3.0.0.dev346
  3)  pip install: 3.0.0
2021-02-09 20:44:21 -06:00
Jeremiah Leary f3d9fc7988 Updates for issue #486:
Fixing issue if git is not installed, the current working directory was not being reset.
2021-02-09 07:37:12 -06:00
Jeremiah Leary 9a712dacec Updates for issue #486:
Reformatting version to be PEP 440 compliant.
2021-02-08 21:00:38 -06:00
Jeremiah Leary 9461a6d4f7 Updates for issue #487:
Changing README.md to README.rst to remove warning from installing.
2021-02-08 20:20:42 -06:00
Jeremiah Leary 6b134f56fb Updates for issue 486:
Updating version so it does not error out if git does not exist.
2021-02-08 19:52:52 -06:00
Jeremiah Leary 7c25a3df6b Updates for issue #486:
Fixing two version tests.
2021-02-07 20:45:57 -06:00
Jeremiah Leary 7a4fd205e3 Updates for issue #486:
Fixing version reporting with Git SHA.

  1)  Updating functions to version.py
      a)  get_git_sha
      b)  get_git_branch
  2)  Updated setup.py
      a)  Uses/generates file vsg/version_info.py depending on if it exists

NOTES:

version.py attempts to pull the latest version information from vsg/version_info.py.
If it exists it will use the version and sha in the file.
If it does not exist, version.py will pull the git sha from the local git repo.

When installing using setup.py, if the vsg/version_info.py exists then the version and sha in the file will be used.
If the file does not exist, then setup.py will pull the branch and sha from the git repo and build a unique version.
2021-02-07 20:11:37 -06:00
Jeremiah Leary f80239371f Updates for issue #504:
Updating rule block_201 to handle optional is and guard condition.

  1)  Added tests
  2)  Added new base rule
  3)  Added new extractors

Updated documentation to add warning about the possibility of conflicting rules.
2021-02-06 09:06:13 -06:00
Jeremiah Leary a02194674e Fixing issue where package_body rules were not being enforced. 2021-02-05 07:56:59 -06:00
Jeremiah Leary bff0a89635 Updates for issue #504:
Fixing link.
2021-02-05 07:56:32 -06:00
Jeremiah Leary b0eefd2c30 Updates for issue #504:
Reformatting documentation for blank line above/below rules.
2021-02-04 05:31:03 -06:00
Jeremiah Leary e8859a9074 Updates for issue #504:
Changing option names for previous_line and blank_line rules:

  1)  require_blank changed to require_blank_line
  2)  no_blank changed to no_blank_line
2021-02-03 19:20:29 -06:00
Jeremiah Leary cf55625c3d Updates for issue #504:
Fixing links in documentation.
2021-02-03 19:00:53 -06:00
Jeremiah Leary 97ef72e3d9
Merge pull request #519 from Emilv2/open_configuration
Merge similar functions
2021-02-02 21:05:32 -06:00
Jeremiah Leary 0ea8dd3407 Updates for issue #504:
Switching several rules to blank_line and previous_line:

  1)  Rules switched to blank_line
      component_016
      entity_016
      generic_001
      port_001
  2)  Rules switch to previous_line
      library_007
  3)  Updated documentation
2021-02-02 20:58:48 -06:00
Jeremiah Leary 2fb1fb3622 Updates for issue #504:
Fixing documentation.
2021-01-31 10:46:55 -06:00
Jeremiah Leary be6a672b05 Updates for issue #504:
Scrubbed blank line above and below rules and converted several to blank/no_blank only.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated rules
2021-01-30 20:28:22 -06:00
Jeremiah Leary c117fa55f6 Updates for issue #504:
Renaming blank_line_above_line_starting_with_token to previous_line to make room for dedicated blank_line_above_line_starting_with_token base rule.
2021-01-30 14:28:16 -06:00
Jeremiah Leary 58b1ad0492 Updates for issue #504:
Changing rules enforcing a blank line below to also allow for removal of line below.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated base rule blank_line_below_line_ending_with_token
2021-01-29 19:43:33 -06:00
Jeremiah Leary 66b633ab09 Updates for issue #504:
Switching instantiation_034 style option back to method.
2021-01-27 19:42:28 -06:00
Jeremiah Leary ae8ee436e9 Updates for issue #504:
Updating links to configuring previous line rules.
2021-01-25 19:55:41 -06:00
Jeremiah Leary 9d86051b78 Updates for issue #504:
Updating links.
2021-01-25 19:42:06 -06:00
Jeremiah Leary 44f69ffd3c Updates for issue #504:
Updating configurable element from method to style.

  1)  Updated documentation
  2)  Updated tests
  3)  Updated configurable item
2021-01-25 19:24:52 -06:00
Emil Vanherp 4251a309c4
Use yaml safe_load
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
Probably not really an issue, but we don't need features of full_load.
2021-01-25 17:43:32 +01:00
Jeremiah Leary 56c24073ab Adding missing file. 2021-01-23 15:44:38 -06:00
Jeremiah Leary 86dbf61b0f
Merge pull request #525 from Emilv2/fix_tests
Change tests to use subprocess.check_output
2021-01-23 15:39:48 -06:00
Jeremiah Leary 04cc85c114 Updates for issue #504:
Updated base rule blank_line_above_line_starting_with_token to include comments and blank lines.

  1)  Updated tests
  2)  Removed existing options allow_comments and blank_line_above_comment
  3)  Added option method
  4)  Updated base rule to use method
2021-01-23 13:20:01 -06:00
Emil Vanherp 1f5cd57e59
add integration tests to check summary output 2021-01-22 15:22:47 +01:00
Emil Vanherp 131caecbba
use exit code 1 when error is encountered 2021-01-22 15:22:47 +01:00
Emil Vanherp 6996435f80
change tests to use subprocess.check_output instead of mock 2021-01-22 15:21:41 +01:00
Emil Vanherp a158fd2ac9
Distinguish between file errors
* Don't exit on file not found or other OSErrors, but continue (revert
from fc34afd4d0339e0b17d8f46e3bf527461beccf1a)
* Empty file, file not found, no permission and other
OSErrors are now reported differently.
2021-01-22 15:21:41 +01:00
Emil Vanherp 0971ca194c
Move read_vhdlfile to vhdlFile/utils
And exit with exit code 1 on file not found or any other OSError
2021-01-22 15:21:41 +01:00
Jeremiah Leary cefb96ff10 Updates for issue #504:
Reverting blank line documentation to cover blank lines after rules.
2021-01-21 19:44:45 -06:00
Jeremiah Leary 69233c8e14 Updates for issue #504:
Updating documentation for all rules which will use the new previous line rule.
2021-01-21 19:40:08 -06:00
Jeremiah Leary 6f040186ff
Merge pull request #523 from jeremiah-c-leary/issue-504
Merging documentation updates for issue #135.
Work will continue on master.
2021-01-21 19:16:27 -06:00
Jeremiah Leary 70fca38f3e Removing trailing blank line. 2021-01-19 20:16:05 -06:00
Jeremiah Leary dacece1ce2 Updating documentation per review. 2021-01-19 19:55:47 -06:00
Jeremiah Leary 4079683827 Making options exclusive. 2021-01-19 18:32:44 -06:00
Jeremiah Leary 69b157fa91 Adding configuring previous line documentation. 2021-01-16 14:33:40 -06:00