Commit Graph

13 Commits

Author SHA1 Message Date
Jeremiah Leary 65a8641c2e
#874 (#875): Suppressing stderr for argparse tests. 2022-11-19 09:54:31 -06:00
Hector Fernandez 630f64e650
wrong"-f " filepath returns OK (#649)
* Added check for input files.

* Created custom ArgumentParser to return ErrorCode 1 when it fails.

* Modified test to fit the new behavior.

* Reduced complexity.

* Added type check to "configuration" parameter too.

* Fixed unit tests.

Co-authored-by: Hector Fernandez <hector.fernandez@gtd.eu>
2021-12-11 08:20:28 -06:00
Emil Vanherp 0a966fc7c6
skip test instead of silently passing 2021-02-11 12:23:14 +01: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
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 42520ffe87 Refactoring rule source_file_001 for new parser. 2020-11-03 07:36:51 -06:00
Jeremiah C Leary 265a097a50 Updates for issue #335
Updated source_file rules to use violation dictionary for violation list.

  1)  Updated code
  2)  Updated tests
2020-02-16 22:41:44 -06:00
Jeremiah C Leary 1948b70444 Updates for Codacy issues:
Removing trialing whitespaces.
2019-03-10 12:19:16 -05: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 33e81c896a Preparing for release 0.21
1)  Updated release number
  2)  Added/Updated comments
2018-11-01 21:04:31 -05:00
Jeremiah C Leary 937ff79e13 Updates for issue #168
1)  Added handling of files being passed that do not exist
  2)  Updated documentation
  3)  Updated tests
2018-09-22 09:07:25 -05:00