source bash-toolbox/init.sh

include base.comparator.BaseComparator

include command.validator.CommandValidator

include formatter.Formatter

include logger.Logger

include props.reader.util.PropsReaderUtil

include string.util.StringUtil
include string.validator.StringValidator

_main(){
	Logger logProgressMsg "validating_formatting_rules"

	local skipVariableValidation=$(PropsReaderUtil
		readProps $(pwd)/formatter.properties ignore_local_variables)
	local files=($(find * -type f -iname "*.sh"))
	local tasks=($(CommandValidator
		getValidFunctions bash-toolbox/formatter/Formatter.sh))

	for file in ${files[@]}; do
		for task in $(StringUtil strip tasks Formatter); do
			if [[ ${task} == enforceLocalVariables &&
				! ${skipVariableValidation} =~ ${file} ]]; then

				Formatter ${task} ${file}
			else
				Formatter ${task} ${file}
			fi
		done
	done

	Logger logCompletedMsg
}

_main
source bash-toolbox/init.sh

include base.comparator.BaseComparator

include command.validator.CommandValidator

include formatter.Formatter

include logger.Logger

include props.reader.util.PropsReaderUtil

include string.util.StringUtil
include string.validator.StringValidator

_main(){
	Logger logProgressMsg "validating_formatting_rules"

	local skipVariableValidation=$(PropsReaderUtil
		readProps $(pwd)/formatter.properties ignore_local_variables)
	local files=($(find * -type f -iname "*.sh"))
	local tasks=($(CommandValidator
		getValidFunctions bash-toolbox/formatter/Formatter.sh))

	for file in ${files[@]}; do
		for task in $(StringUtil strip tasks Formatter); do
			if [[ ${task} == enforceLocalVariables &&
				${skipVariableValidation} =~ ${file} ]]; then

				continue
			else
				Formatter ${task} ${file}
			fi
		done
	done

	Logger logCompletedMsg
}

_main
Update logic for skipping variable scope validation
Update logic for skipping variable scope validation
