* 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 #549
Refactoring concurrent_011 into base rule multiline_simple_structure.
* Refactoring concurrent_009 into base rule multiline_conditional_alignment.
* Fixing name and identifier.
* Refactoring rule constant_012 into base rule multiline_array_alignment.
* Adding rule variable_assignment_007.
* Adding rule variable_assignment_008
1) Refactored multiline_structure to be configurable
2) Added documentation
3) Added tests
* Adding rule variable_assignment_400.
* Adding rule variable_assignment_400.
* Updating Documentation
1) Adding files which were not being built
2) Fixed links
* Adding rule concurrent_012.
* Adding rule concurrent_401
* Adding rule sequential_008.
* Adding rule sequential_009.
* Adding rule sequential_401
* Adding rule sequential_402
* Fixing documentation
* Fixing table rendering.
* Changing multiline_alignment_between_tokens to not work on arrays.
* Updating rule concurrent_011 to not operate on arrays.
* Fixing documentation issues:
1) Renamed several rules to improve readability
2) Fixed warnings from sphynx
3) Fixing links
* Adding links to rules.
* Updating docstring with correct links to configuration documentation.
* Updating formatting to match current standards.
* Updating formatting to current standard.
* Changing depricated to deprecated.
* Removing unused documentation.
* Updating table to current standards.
* Updating to latest standard.
* Updating to current formatting standards.
* Updating multiline indent rule:
1) Updated documentation
2) Added align left no align paren on tests
3) Updated the following options:
a) align_left_yes_align_paren_yes
4) Updated docstrings to have correct links.
* Adding example for align_left_no_align_paren_yes.
* Updating documentation per comments.
* Updating documentation per comments.
* Removing option move_last_comment from multiline_structure base rule.
Added --json command line argument to output violations in JSON format.
1) Added tests
2) Added code to output violations in JSON format
3) Updated documentation
(cherry picked from commit a39839e6466e581900febfc0305ef87adc82b00f)
Added command line option --all_phases to allow VSG to not stop when a violation was found while analyzing a file.
(cherry picked from commit 43d4498815be9ed3187a34409ea06834d7b6dfce)