diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5f46d329b7..1931cf5efa 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,56 +1,64 @@ { - // See https://go.microsoft.com/fwlink/?LinkId=733558 for the documentation about the tasks.json format - "problemMatcher": [], - "type": "shell", - "version": "2.0.0", - "tasks": [ - { - "label": "Ensure test_results directory", - "command": "mkdir -p ${workspaceFolder}/test_results", - "presentation": { - "echo": false, - "reveal": "silent", - "showReuseMessage": false, - } - }, - { - "label": "Pytest", - "command": "pytest --junitxml=${workspaceFolder}/test_results/pytest_results.xml", - "group": "test", - "dependsOn": ["Ensure test_results directory"], - }, - { - "label": "Pylint junit", - "command": "pylint --rcfile .pylintrc ./cli ./tests --output ${workspaceFolder}/test_results/pylint_results.xml", - "dependsOn": ["Ensure test_results directory"], - "group": "test", - }, - { - "label": "Pylint terminal", - "command": "pylint --rcfile .pylintrc ./cli ./tests --output-format text", - "group": "test", - }, - { - "label": "Ansible-lint junit", - "command": "ansible-lint --nocolor -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml > ${workspaceFolder}/test_results/ansiblelint_results.txt ; ansible-lint-to-junit-xml ${workspaceFolder}/test_results/ansiblelint_results.txt > ${workspaceFolder}/test_results/ansiblelint_results.xml", - "dependsOn": ["Ensure test_results directory"], - "group": "test", - }, - { - "label": "Ansible-lint terminal", - "command": "ansible-lint -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml", - "group": "test", - }, - { - "label": "Rubocop junit", - "command": "rubocop -c .rubocop.yml --require rubocop/formatter/junit_formatter --format RuboCop::Formatter::JUnitFormatter --out test_results/rubocop_results.xml", - "dependsOn": ["Ensure test_results directory"], - "group": "test", - }, - { - "label": "Rubocop terminal", - "command": "rubocop -c .rubocop.yml", - "group": "test", + // See https://go.microsoft.com/fwlink/?LinkId=733558 for the documentation about the tasks.json format + "problemMatcher": [], + "type": "shell", + "version": "2.0.0", + "tasks": [ + { + "label": "Ensure test_results directory", + "command": "mkdir -p ${workspaceFolder}/test_results", + "presentation": { + "echo": false, + "reveal": "silent", + "showReuseMessage": false, } - ] - } + }, + { + "label": "Pytest", + "command": "pytest --junitxml=${workspaceFolder}/test_results/pytest_results.xml", + "group": "test", + "dependsOn": [ + "Ensure test_results directory" + ], + }, + { + "label": "Pylint junit", + "command": "pylint --rcfile .pylintrc ./cli ./tests --output ${workspaceFolder}/test_results/pylint_results.xml", + "dependsOn": [ + "Ensure test_results directory" + ], + "group": "test", + }, + { + "label": "Pylint terminal", + "command": "pylint --rcfile .pylintrc ./cli ./tests --output-format text", + "group": "test", + }, + { + "label": "Ansible-lint junit", + "command": "ansible-lint --nocolor -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml > ${workspaceFolder}/test_results/ansiblelint_results.txt ; ansible-lint-to-junit-xml ${workspaceFolder}/test_results/ansiblelint_results.txt > ${workspaceFolder}/test_results/ansiblelint_results.xml", + "dependsOn": [ + "Ensure test_results directory" + ], + "group": "test", + }, + { + "label": "Ansible-lint terminal", + "command": "ansible-lint -q -c .ansible-lint -p ${workspaceFolder}/ansible/playbooks/*.yml", + "group": "test", + }, + { + "label": "Rubocop junit", + "command": "rubocop -c .rubocop.yml --require rubocop/formatter/junit_formatter --format RuboCop::Formatter::JUnitFormatter --out test_results/rubocop_results.xml", + "dependsOn": [ + "Ensure test_results directory" + ], + "group": "test", + }, + { + "label": "Rubocop terminal", + "command": "rubocop -c .rubocop.yml", + "group": "test", + } + ] +}