diff --git a/.vscode/settings.json b/.vscode/settings.json index 001175b7e14..4096db18e1a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,18 +1,11 @@ { - "[markdown]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[python]": { - "editor.codeActionsOnSave": { - "source.fixAll": true - }, - "editor.formatOnSave": true - }, - "editor.formatOnSave": true, - "evenBetterToml.formatter.alignComments": false, - "evenBetterToml.formatter.allowedBlankLines": 2, - "files.exclude": { - "*.egg-info": true, + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.formatOnSave": true, + "evenBetterToml.formatter.allowedBlankLines": 2, + "files.exclude": { + "*.egg-info": true, ".pytest_cache": true, ".tox": true, "__pycache__": true, @@ -23,13 +16,12 @@ "grammarly.files.include": [ "**/*.txt", "**/*.md" - ], - "grammarly.hideUnavailablePremiumAlerts": true, - "grammarly.showExamples": true, - "prettier.enable": true, - "python.analysis.exclude": [ - "build" - ], + ], + "grammarly.hideUnavailablePremiumAlerts": true, + "grammarly.showExamples": true, + "python.analysis.exclude": [ + "build" + ], "python.formatting.provider": "black", "python.linting.flake8Args": [ "--ignore=E501,W503" @@ -45,8 +37,15 @@ "yaml.completion": true, "yaml.customTags": [ "!encrypted/pkcs1-oaep scalar", - "!vault scalar" - ], - "yaml.format.enable": false, - "yaml.validate": true -} + "!vault scalar" + ], + "yaml.format.enable": false, + "yaml.validate": true, + "evenBetterToml.formatter.alignComments": false, + "[python]": { + "editor.codeActionsOnSave": { + "source.organizeImports": true, + "source.fixAll": true + } + } + } \ No newline at end of file diff --git a/src/ansiblelint/rules/complexity.py b/src/ansiblelint/rules/complexity.py index 0c9d00cdcae..297c57a7117 100644 --- a/src/ansiblelint/rules/complexity.py +++ b/src/ansiblelint/rules/complexity.py @@ -21,7 +21,7 @@ class ComplexityRule(AnsibleLintRule): description = "There should be limited tasks executed inside any file" severity = "MEDIUM" tags = ["experimental", "idiom"] - version_added = "v6.15.0 (last update)" + version_added = "v6.17.2 (last update)" _re_templated_inside = re.compile(r".*\{\{.*\}\}.*\w.*$") def matchplay(self, file: Lintable, data: dict[str, Any]) -> list[MatchError]: