def lint(self): lint_name = self._config.config['verifier']['lint']['name'] if lint_name == 'flake8': return flake8.Flake8(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 ansible_lint.AnsibleLint(config_instance)