Commit Graph

35 Commits

Author SHA1 Message Date
Alon Bar-Lev c22a86025f style: apply black
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev 5b4bae04aa style: apply isort
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev b8c49b5946 style: python encoding
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
mwensing 27ba5318cd
Issue#914: fixing endless loop in Windows (see issue #914) (#915)
Co-authored-by: Marius Wensing <marius.wensing@cern.ch>
2023-04-01 08:39:51 -05:00
Jeremiah Leary f8f5f77c58
Updates for issue #651 (#662)
* Updates for issue #651

Initial attempt at adding rule groups.

  1)  Updated documentation
  2)  Added indent group
  3)  Added tests

* Addressing CodeClimate issues.

* Additional code climate updates.

* Renaming depricated to deprecated.

Adding tests to improve code coverage.

* Adding length group and updating documentation.

* Adding indent labels to rule documentation.

* Adding blank_line group.

* Minor documentation update.

* Adding more rules to the blank_line group.

* Adding blank_line label to blank line rules in documentation.

* Adding whitespace rule group

* Adding case group.

* Adding structure rule group:

  1)  Addings structure rule group object
  2)  Updated base rules which should utilize the rule group

* Adding more base rules to the whitespace rule group.

* Adding more base rules to the case rule group.

* Adding naming rule group:

  1)  Added naming rule group
  2)  Assigned base rules to the naming rule group

* Adding alignment rule group:

  1)  Added alignment rule group
  2)  Added base rules to alignment rule group

* Assigning more rules to rule groups.

* Adding last rule to a rule group.
Fixing error introduced into whitespace_001

* Assigning sub groups to architecture rules.

* Updating after rules documentation to add rule group.

* Adding rule group to assert rule documentation

* Updating attribute_declaration rules rule group.

* Adding program to generate rule documentation:

  1)  Added bin/vsg_rule_doc_gen
  2)  Added tests
  3)  Copied existing documentation into rule doc strings for the following rule classes:
      a)  after
      b)  architecture
      c)  assert_statement
      d)  attribute
      e)  attribute_declaration
      f)  attribute_specification
      g)  block
  4)  Partially update deprecated rules to they could be processed

* Converting block_comment documentation.

* Converting case_rule documentation.

* Converting comment rule documentation.

* Converting component documentation to doc strings.

* Converting concurrent rule documentation to doc strings.

* Convert constant docs to doc strings.

* Converting context rule doc to doc strings.

* Fixing failing tests.

* Converting context reference doc to doc strings.

* Converting entity doc rules to doc strings.

* Converting entity_specification rule doc to doc strings.

* Converting exit_statement rule doc to doc strings.

* Converting file_statement rule docs into doc strings.

* Converting for_loop rule doc to doc strings.

* Converting function rule doc to doc strings.

* Converting generate rules doc to doc strings.

* Converting generic rule doc to doc strings.

* Converting generic_map rule doc to doc strings.

* Converting if rule docs to doc strings.

* Converting instantiation rule doc to doc strings.

* Converting length rule doc to doc strings.

* Converting library rule doc to doc strings.

* Convert loop_statement rule doc to doc strings.

* Converting package rule docs to doc strings.

* Converting package_body rule doc to doc strings.

* Converting port rule doc to doc strings.

* Converting port_map rules doc to doc strings.

* Converting procedure rule doc to doc strings.

* Converting procedure_call rule doc to doc strings.

* Converting process rule doc to doc strings.

* Converting range rule doc to doc strings.

* Converting report_statement rule doc to doc strings.

* Converting sequential rule doc to doc strings.

* Converting signal rule doc to doc strings.

* Converting source_file rule doc to doc strings.

* Converting subprogram_body rule doc to doc strings.

* Converting subtype rule doc to doc strings.

* Converting type rule doc to doc strings.

* Converting variable rule doc to doc strings.

* Converting variable_assignment rule doc to doc strings.

* Converting wait rule doc to doc strings.

* Converting when rule doc to doc strings.

* Converting while_loop rule doc to doc strings.

* Converting whitespace rule doc to doc strings.

* Converting with rule doc to doc strings.

* Fixing tests due to further refinements of rule groups.

* Removing generated doc files after tests.

* Updating documentation to include rule group information.

* Removing trailing whitespace.

* Minor formatting fixes for documentation.

* Fixing issues for codacy.

* Skipping currently failing tests so I can address coding issues.

* Removing unused libraries.

* Minor formatting issues resolved.

* WIP:  Setting desired test input.

NOTE:  tests fail as I need to implement fixes.

* Improving testing of rule groups.

* Enhancing test so it will pass.

* Updates for codacy.
2022-01-01 17:46:43 -06:00
Jeremiah Leary 1b1b59c055 Adding script to output parser results without having to setup a test. 2020-12-15 10:51:30 -06:00
Ryan Fitzsimon 2bd8858e21 Move main logic into module
Create a __main__ module and move the main() function into it.

Replace launch script with a wrapper that sets the python path, then
calls vsg.__main__.main().
2018-08-31 11:24:22 +10:00
Ryan Fitzsimon 84161db59f Use /bin/usr/env in shebang to find python 2018-08-30 20:57:00 +10:00
Jeremiah C Leary a19100a342 Updates for issue #159:
1)  Added shortened versions of most command line options.
2018-08-28 06:00:38 -05:00
Jeremiah C Leary f89b7e9391 Updates for issue #153:
1)  Added backup command line option
2018-07-30 22:07:22 -05:00
Jeremiah C Leary edcea7f577 Updates for issue #151:
1)  Added new command line parameter to support multiple outputs
      a)  vsg
      b)  syntastic
  2)  Updated documentation
  3)  Updated tests
2018-06-28 21:56:40 -05:00
Jeremiah C Leary 69e569c992 Updates for issue #149:
1) Added command line option --fix_phase which will apply fixes up to and including that phase.
     Analysis will then be ran on all remaining phases.
  2) Updated tests
2018-06-20 19:47:49 -05:00
Jeremiah C Leary 135df97296 Updates for issue #145:
1)  Added 'local_rules' parsing to configuration file
2018-05-19 08:26:30 -05:00
Jeremiah C Leary 6d823b5c2e Updates for issue #13:
1)  Added junit generation to bin/vsg
  2)  Minor updates to junit.py
  3)  Updated tests
  4)  Added extraction of junit testcase from rule list
2018-05-19 07:56:43 -05:00
Jeremiah C Leary 740d800957 Removing debug print statement. 2018-05-18 05:39:15 -05:00
Jeremiah C Leary c3eeef5110 Updates for issue #131:
1)  Added "file_list" parsing in configuration file
  2)  Added ability to expand environment variables
  3)  Updated documentation
2018-05-17 05:52:41 -05:00
Jeremiah C Leary 022ab27c77 Updates for #131:
1)  -f command line argument can now take multiple files
2018-05-17 05:06:12 -05:00
Jeremiah C Leary 9044941d92 Updating to use rule_list instead of list. 2017-12-24 06:59:43 -06:00
Jeremiah C Leary 76dc37edd1 Adding reference to read the docs documentation in the vsg script file. 2017-12-10 18:44:04 -06:00
Jeremiah C Leary bf92c91551 Updates for codestyle. 2017-12-08 19:48:15 -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 3769a7ff61 Updates for issue #20:
1)  Added more fixes for indents.
2017-11-17 22:15:07 -06:00
Jeremiah C Leary 9d73d5dd47 Updates for issue #20:
1)  Adding fix option to vsg script
2017-11-17 20:43:05 -06:00
Jeremiah C Leary 7fc62c7746 Added ability to read JSON file and disable rules. 2017-11-09 20:24:09 -06:00
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 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 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 b2f4d955e5 Updates to main program:
1)  Violations are now reported as sequential lines
2017-09-24 21:46:02 -05:00
Jeremiah Leary d88481c884 Updates for rule loading refactoring:
1)  Added function to load base rules so as rules are added they do
  not need to be added to the rule_list class.  This will also support
  user local rules eventually.
  2)  Moved rules to their own directory
  3)  Updated tests to handle new location of rules
2017-09-22 09:58:50 -05:00
Jeremiah Leary 5507c3321c Updated program so it can executed from anywhere, instead of from bin. 2017-09-22 08:05:10 -05:00
Jeremiah Leary 543e3620c3 Updates for new method:
1)  Updated bug in architecture rules after running against examples
  2)  Updated rule list to handle split of entity rules into entity, port, and generic rules
  3)  Updated main program to handle new method
2017-09-10 22:09:24 -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 d7d8fa2106 Added filename argument and code to read the file given. 2017-08-06 18:45:25 -05:00
Jeremiah Leary 0d25af4316 Adding shell of main program. 2017-08-06 18:22:28 -05:00