* Add linesep configuration option
Platform independent line ends are important to avoid conflicts.
Resolves: #1010
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Perform atomic write to files
Do not overwrite file as we may corrupt the file if something fails, instead
write into temporary location and move the result into the final destination.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Synchronize README command-line usage
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Support files as positional argument
Tools such as pre-commit and other tools expects the tools to accept the
input files as positional argument and not as options.
Let's support the two variants.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Support shallow git clone without tags
pre-commit uses shallow clone without tags, as this is not used to publish the
artifact, let's assume version '0' in this case.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Add pre-commit hooks support
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
---------
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* adds basic functionality to send file to stdin
* updates usage docs to reflect stdin and adds new vim editor configs
* Adds better handling with stdin. Safer checks
* removes output over stdout for vhdl file since that's out of scope
* shortens cmd line args line to pass that check on codeclimate
* removes trailing white space
* changes is to == to prevent warning
* updates vim rst to have the null ls config ignore stderr
When editing a file sometimes things can cause VSG to fail and print to
stderr. If this happens, without ignoring stderr it will create an error
message in nvim, which was obnoxious
* Updates for issue #847
Fixing globbing in the -f command line option.
* Adding tests for cmd_line_args file.
* Updating tests to work during CI testing.
* Updates for issue #596
Adding feature to output quality report.
1) Added tests
2) Added quality_report command line argument
3) Output quality report
* Removing extra blank line.
* Removing unused import
* Adding documentation for integration with CI servers.
* Refocusing CI documentation to the output which is generated.
* Improving documentation:
1) Made JUnit example smaller
2) Minor grammar updates
* Adding link from table to heading.
* Adding link from table to content in page.
* 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>
Adding validation for --backup command line argument.
1) Updated documentation to say --backup is only valid with --fix
2) Added tests
a) Testing --backup works with --fix
b) Testing --backup without --fix returns an error
3) Updated checking of --backup after parsing command line arguments