def lint(self): lint_name = self._config.config['verifier']['lint']['name'] if lint_name == 'flake8': return flake8.Flake8(self._config) if lint_name == 'pre-commit': return precommit.PreCommit(self._config) if lint_name == 'rubocop': return rubocop.RuboCop(self._config) if lint_name == 'yamllint': return yamllint.Yamllint(self._config) if lint_name == 'ansible-lint': return ansible_lint.AnsibleLint(self._config)
def _instance(patched_config_validate, config_instance): return precommit.PreCommit(config_instance)