'Determines if the provided directory is a directory that could contain
a file that needs to be linted.
Arguments:
skip_dirs: The directories to be skipped.
directory: The directory to be linted.
Returns:
True if this directory should be linted for violations and False
otherwise.'

def _is_valid_directory(self, skip_dirs, directory):

    if is_skip_dir(skip_dirs, directory):
        return False
    return True
