-
Notifications
You must be signed in to change notification settings - Fork 60
vsg --fix should only write if the file needs changes #1407
Description
Is your feature request related to a problem? Please describe.
I'm using make-style logic in my project. Specifically, there's only a need to re-run analysis / elaboration / simulation if the underlying VHDL files changed.
However, if I just run a blanket vsg --fix all-my-files.vhd, the file timestamps will be touched even if there is nothing to do.
Describe the solution you'd like
Either with a new flag, or just with a change to the default behavior, running vsg --fix ... should only update the file timestamps if something changed.
Describe alternatives you've considered
I've also considered a hack, which is to copy all the files to a temporary directory and then run vsg --fix on them and only copy them back if they've really changed. And this can work as a workaround for sure.
I only file this issue because I suspect others will run into similar situations.
Additional context
N / A
Metadata
Metadata
Assignees
Labels
Projects
Status