From 74b1bfc8e8eaeb7a0a4e56328dca24ad976ad46c Mon Sep 17 00:00:00 2001 From: Jeremiah Leary Date: Tue, 11 May 2021 09:05:18 -0500 Subject: [PATCH] Updates for issue #580 Fixing issue where a file called out with -f was also in a configuration file_list would result in an exception. --- vsg/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vsg/config.py b/vsg/config.py index 8469caa6..ccecb522 100644 --- a/vsg/config.py +++ b/vsg/config.py @@ -185,10 +185,11 @@ def update_command_line_arguments(commandLineArguments, configuration): try: lFileNames = glob.glob(utils.expand_filename(sFilename), recursive=True) for sFileName in lFileNames: - if sFileName not in commandLineArguments: + if sFileName not in commandLineArguments.filename: commandLineArguments.filename.append(sFileName) except: commandLineArguments.filename = glob.glob(utils.expand_filename(sFilename), recursive=True) + if 'local_rules' in configuration: commandLineArguments.local_rules = utils.expand_filename(configuration['local_rules'])