* 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>
* Issue#1033:
* Removing unused classifier.
* Removing rule conditional_selected_signal_assignment_400
* Rule was conflicting with rule selected_assignment_400.
* Fixing issue with selected_assignments being considered an array.
* Issue#1030: Adding option to indent use_clauses depending on existence of library_clause.
* Updates for codeclimate.
* Adding tests for new configuration option.
* Adding documentation.
* Fixing syntax error in documentation.
* Issue#1006: Corrected code blocks in vim.rst.
* Issue#1006: Moved title to allow it to be found by reference.
* Issue#1006: Removed unused and incorrect link from links.rst.
* Issue#1006: Removed trailing whitespace from structure_optional_rule_group.rst
* Issue#1006: Corrected underline lengths in whitespace_rule_groups.rst
* Issue#1009: Updating multiline alignment rules to accept booleans for parameters.
* Adding boolean to yes/no conversions for other rules.
* Converting rule after_002 to use yes/no strings for options.
* Updating base rule align_tokens_in_region_between_tokens_unless_between_tokens to use yes/no.
* Updating base rule align_tokens_in_region_between_tokens_skipping_lines_starting_with_tokens to accept yes/no.
* Updating base rule align_tokens_in_region_between_tokens to accept yes/no.
* Updating rule case_generate_statement_400 to accept yes/no.
* Updating rule concurrent_006 to accept yes/no.
* Fixing default value for generate_statement_ends_group in concurrent_006.
* Updating rule concurrent_008 to accept yes/no.
* Updating base rule align_tokens_in_region_between_tokens_when_between_tokens_unless_between_tokens to support yes/no
* Updating base rule align_tokens_in_region_between_tokens_unless_between_tokens to accept yes/no.
* Setting False options to 'no' in base rule align_tokens_in_region_between_tokens_unless_between_tokens.
* Updating block_comment rules to accept yes/no.
* Updating rule concurrent_400 to accept yes/no.
* Updating rule process_034 to accept yes/no.
* Updating rule process_035 to accept yes/no
* Updating rule process_400 to accept yes/no.
* Updating rule sequential_400 to accept yes/no.
* Updating rule subprogram_body_400 to accept yes/no.
* Updating rule concurrent_007 to accept yes/no.
* Updating rule library_003 to accept yes/no.
* Updating rule signal_012 to accept yes/no
* Updates for codeclimate issues.
* Moving similar alignment helper functions to utils file.
* Codeclimate updates.
* Updating option documentation to current standard.
* Changing default True option to 'yes'
* Updating configuration documentation to current standards.
* Updating configuration documentation to latest standard.
* Updating configuration rules to current standard.
* Replacing occurances of True/False with "yes"/"no"
* Updating configuration documentation to latest standard.
* Fixing documentation tests.
* Support file configuration without scanning the file
Currently per file configuration is specified under `file_list`, the
`file_list` has side effect of scanning the file regardless of what files
provided in command-line.
Configuration should be able to specify per file configuration without adding
the file to the scan.
New implementation will look for the file under `file_rules` and merge it to
the existing `file_list` configuration to keep backward compatibility.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Adding tests for the new file_rules configuration option.
* Updating documentation for file_rules
* Removing trailing lines.
* Refactored configure_rules to improve readability.
---------
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Co-authored-by: Jeremiah Leary <jeremiah.c.leary@gmail.com>
Current implementation searches the file as provided by user or glob, this
name may be platform specific.
New implementation will always use '/' as separator, enabling the same
configuration to be used in any platform.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
* Issue#992: Added rules to structure::optional rule group.
* Issue#992: Updated documentation to reflect new structure::optional rule group rules.
* Issue#992: Updated/added tests to check new structure::optional rule group rules.
* Issue#992: Removed test files.
* Issue#992: Removed erroneous newline.
* 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
* Issue#981 Corrected None to "" in block comment example configurations.
* Issue#981 Updated empty string's double quotes to single quotes for consistency.
---------
Co-authored-by: JHertz5 <jukka.herzog@live.co.uk>
* Issue#929: Fixing issue with moving label and the postponed keyword.
* Refactoring per code climate.
* Removing unused parameter.
* Adding rule process_039 to enforce postponed on same line as process.
* Issue#918: Adding rules for function and procedure optional keywords.
* Combining left and right base rules.
* Refactoring to improve readability.
* Fixing issue with keyword not being inserted.
* Updates for issue #827
Changing behavior of comment_100:
1) block comments are ignored
2) Exceptions added to ignore rule
* Fixing style issue.
* Adding rule comment_101 to enforce whitespace after a comment pattern.
* Merging comment_101 into comment_100.
* Allowing patterns to be configurable.
* Updating documentation to current standards.
* Updating note.
* Moving Note into description for each option.
* Fixing grammar.
* Issue #864, #887 : Adding rule declarative_part_400 to align := in signal, variable and constant declarations.
* Ensuring alignment rules are performed in order.
* Updating minor issues flagged by codeclimate.
* Changing blank_line_ends_group to True.
* Updates for issue #846
Rules whitespace_012 and whitespace_200 were duplicates.
1) Moved whitespace_012 to whitespace_200.
2) Deprecated whitespace_012
* Adding missing documentation.