예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
def _instance(patched_config_validate, config_instance):
    return rubocop.RuboCop(config_instance)