Jeremiah Leary
862b5aab77
Merge branch 'master' into issue-402
2020-07-27 20:52:53 -05:00
Jeremiah Leary
3aeca176d7
Updates for issue #414 :
...
Adding debug output capabilities:
1) Added --debug CLA
NOTE: Tests were not updated
NOTE: Documentation was not updated
(cherry picked from commit a88f44d8ad1fd0570c550b842a50e274aaf69046)
2020-07-18 12:13:59 -05:00
Jeremiah Leary
c57c7cc684
Fixing issue where nothing was always returned for the style.
2020-07-14 13:51:19 -05:00
Jeremiah Leary
d164cba484
Updates for issue #402 :
...
Adding rule severity feature:
1) Added documentation
2) Code updates
a) Added new module vsg.severity
b) Upated code to handle rule severities
3) Added tests vsg/tests/severity
2020-07-04 13:55:15 -05:00
Jeremiah Leary
48590eb9e5
Updates for issue #350 :
...
Removing base style.
Changing legacy style to jcl.
2020-06-22 20:36:33 -05:00
Jeremiah Leary
9c43fb19f1
Updates for Issue #350 :
...
Refactoring several functions in __main__ per pull request comments.
2020-06-06 21:30:01 -05:00
Jeremiah Leary
6d55f89e35
Updates for issue #350 :
...
Updates from latest review of pull request:
1) Fixed documentation
a) Removed disabled style
b) Renamed minimal to indent_only
c) Added documentation for indent_only
2) Code changes
a) Removed disabled style
b) Renamed minimal to indent_only
c) Refactors to improve readability
2020-06-06 20:56:05 -05:00
Jeremiah Leary
a1322167a4
Updates for issue #350 :
...
Refactored methods fix and check_rules on rule_list class to use defaults:
1) Updated methods fix and check_rules
2) Updated tests
2020-05-20 07:14:05 -05:00
Jeremiah Leary
7d7712a6e7
Updates for issue #350 :
...
Adding minimal style:
1) Added minimal configuration YAML file
2) Added Ability to skip phases via style configuration
3) Added style tests
2020-05-19 16:53:50 -05:00
Jeremiah Leary
a768837d0a
Updates for issue #350 :
...
Updating style types:
1) Changed minimal to disabled
2) Added base style
3) Updated documentation
2020-05-17 13:48:01 -05:00
Jeremiah Leary
7b6d7b9d6e
Updates for issue #350 :
...
Refactoring function names to improve readability.
2020-05-17 10:38:31 -05:00
Jeremiah Leary
7c09e09bc8
Updates for issue #350 :
...
Initial implementation of styles:
1) Added two incomplete styles
2) Added method to read styles
3) Added style argument
4) Fixed failing tests
2020-05-14 21:11:48 -05:00
Jeremiah C Leary
fac069ff1f
Merge branch 'master' of https://github.com/jeremiah-c-leary/vhdl-style-guide
2020-03-21 12:39:11 -05:00
Jeremiah C Leary
6c296bfbd4
Updates for issue #347
...
Fixed reporting of invalid configuration filename.
Added checking for invalid filenames specified in a configuration file.
2020-03-21 11:54:38 -05:00
Jeremiah C Leary
f7902a59d9
Attempting to reduce complexity in function update_command_line_arguments.
2020-03-21 09:24:35 -05:00
Jeremiah C Leary
e262ee20d9
Minor updates for codeclimate issues.
2020-03-21 09:19:33 -05:00
Jeremiah C Leary
2ebcb95d72
Updates for issue #344
...
Added ability to handle individual rule setting on globbed files.
2020-03-11 22:08:24 -05:00
Jeremiah C Leary
21212d98d5
Updates for issue #344
...
Fixed issue where file globbing was not working.
2020-03-11 21:06:06 -05:00
Jeremiah C Leary
b2c2228ba1
Updates for issue #344
...
Added ability to set rule individual rule configurations.
1) Updated documentation
2) Updated parsing of configuration files to handle individual rule configurations.
2020-02-28 07:24:26 -06:00
Jeremiah C Leary
4c962c9bc6
Updates for issue #339 :
...
The configuration of a single rule can be requested:
1) Added tests
2) Updated documentation
3) Updated code
2020-02-22 17:53:31 -06:00
Jeremiah C Leary
8e1fa8b172
Updates for issue #340 :
...
Fixed issue where VSG would crash if the -f option was not used in conjuction with -oc.
1) Updated code
2) Updated test
2020-02-22 09:33:32 -06:00
Will Kamp
3856fc884a
Catch Permission error on trying to write fixes back to a read only file. Also removed superfluous file.close().
...
file.close() automatically called when exiting the with statement.
2020-01-08 17:55:27 +13:00
Jeremiah C Leary
a18ae7e192
Updates for issue #253 :
...
Fixed update_exit_status function which was not presevering a failure when multiple files were processed.
2019-11-25 22:00:13 -06:00
Jeremiah C Leary
327f94cd01
Updates for issue #253 :
...
VSG will now set an exit code of 1 if any violations are detected.
Otherwise it will set an exit code of 0.
2019-11-25 21:45:56 -06:00
Jeremiah C Leary
6fe8bf4a03
Updates for issue #268 :
...
Added code to be more descriptive of configuration errors:
1) VSG will report if a configuration file could not be found
2) VSG will report why a configuration is invalid
2019-10-18 07:05:43 -05:00
Jeremiah C Leary
f62d0c68ac
Backing out exit status until test can be updated.
...
Issue #253
2019-10-13 20:15:41 -05:00
Jeremiah C Leary
c6ee2f3e6e
Updates for issue #253
...
Added setting of exit status based on if violations were detected.
If violations are detected, then the exit status will be 1.
Otherwise the exit status will be 0.
2019-10-13 11:45:20 -05:00
Jeremiah C Leary
3623151b5b
Updates for issue #246
...
1) Added version argument to display version.
2) Refactored version information to reside in a single file.
a) setup.py references this file
b) conf.py references this file
c) version argument references this file
2019-06-28 07:48:37 -05:00
Jeremiah C Leary
39ace2085b
Updates for issue #229 :
...
Reviewed documentation at https://msg.pyyaml.org/load and decided to update to full_load.
2019-04-29 20:29:00 -05:00
Jeremiah C Leary
e49349fc76
Codeclimate updates.
2019-04-10 21:28:55 -05:00
Jeremiah C Leary
599a0bb45b
Codeclimate updates.
2019-04-10 21:23:17 -05:00
Jeremiah C Leary
1d53fa7966
Updates for issue #223
...
Added local rules to output configuration.
Added current working directory to output configuration.
2019-03-24 21:29:49 -05:00
Jeremiah C Leary
381531d4a1
Updates for issue #223
...
Removing rule id from get_configuration.
Adding get_configuration to rule_list class.
Added writing of configuration to output json file.
2019-03-24 21:18:56 -05:00
Jeremiah C Leary
b70e83b017
Updates for codacy.
2019-03-23 08:13:49 -05:00
Jeremiah C Leary
aebe2de87f
Fixing style issues flagged by code climate.
2019-03-19 21:54:22 -05:00
Jeremiah C Leary
40206bbac0
Updates for issue #213
...
Adding documentation about YAML files.
2019-03-09 11:23:00 -06:00
Jeremiah C Leary
643c0a1992
Updates for issue #213
...
Adding support for YAML configurations:
1) Added tests
2) Added parsing of YAML files
2019-03-09 10:57:45 -06:00
Jeremiah C Leary
ddf6b89587
Updates for Codacy issues.
2019-03-02 09:13:33 -06:00
Jeremiah C Leary
27d86f58c4
Updates for issue #201
...
Globbing of 'file_list' in configurations are now supported.
2019-02-24 13:58:02 -06:00
Jeremiah C Leary
cf9b3b7791
Updates for issue #193
...
Build failed, but local tests passed.
Tracked problem down to not setting filename in vhdlFile object.
2019-02-24 13:29:10 -06:00
Jeremiah C Leary
183b9f5c18
Updates for issue #193
...
The class vhdlFile now takes a list instead of a file name.
This removes the responsibility of reading the file from the vhdlFile class.
Which allows for better integration into other tools.
2019-02-24 12:49:25 -06:00
Jeremiah C Leary
a51c390771
Updates for Codacy issues.
2019-02-17 09:49:32 -06:00
Jeremiah C Leary
cbf811d05b
Updates for issue #207
...
1) Changed exit function to use a number instead of EX_OK.
This was causing problems for Python 3.6
2019-02-17 09:37:07 -06:00
Jeremiah C Leary
e036ae8525
Updates for issue #169
...
Fixing code style issues.
2018-12-07 15:40:08 -06:00
Jeremiah C Leary
b7a471388a
Updates for issue #169
...
Added outputing of JUnit XML file if a configuration passed to VSG is invalid.
VSG will save a JUnit XML file with the given name and include a message indicating which configuration was invalid.
It will stop on the first invalid configuration passed to VSG.
1) Added feature to __main__.py
2) Added test
2018-12-07 15:35:49 -06:00
Jeremiah C Leary
5d218e42f5
Updates for issue #178
...
1) Added tests for multiple configurations
2) Updated code to fix issues found by tests
2018-11-16 22:06:07 -06:00
Jeremiah C Leary
8808c464ef
Updates for issue #178
...
1) Added parsing of multiple configurations
2018-11-16 19:31:03 -06:00
Ryan Fitzsimon
15ccb4923f
Don't use config file_list when file args supplied
...
Only use the file_list from the JSON configuration if no filename
arguments are supplied.
This allows local_rules and rule settings from a common configuration
file to be used when analysing only a single file.
This is particularly useful when VSG is being used as a checker by an
editor plugin such as Syntastic.
2018-10-31 23:37:17 +10:00
Ryan Fitzsimon
899b220f5b
Add os module import to __main__
...
This import wasn't kept in the move from bin/vsg to vsg/__main__.py,
but is still required when a configuration file is used.
2018-08-31 15:00:21 +10: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