def build_args(self, settings):
        """Return args, transforming --ignore, --only, and --globals args into a format luacheck understands."""
        args = super().build_args(settings)
        try:
            index = args.index('--ignore')
            # Split the comma-separated arg after --ignore into separate elements
            vars = args[index + 1].split(',')
            args[index + 1:index + 2] = vars
        except ValueError:
            pass
        
        try:
            index = args.index('--only')
            vars = args[index + 1].split(',')
            args[index + 1:index + 2] = vars
        except ValueError:
            pass

        try:
            index = args.index('--globals')
            vars = args[index + 1].split(',')
            args[index + 1:index + 2] = vars
        except __HOLE__:
            pass
            
        return args
dataset/ETHPy150Open corvisa/SummitLinter/linter.py/SummitLinter.build_args