summaryrefslogtreecommitdiff
path: root/ale_linters/ansible
AgeCommit message (Collapse)Author
2023-09-14#4607 No conflicts with nvim-lspconfig by defaultw0rp
Default `g:ale_disable_lsp` to a new mode `'auto'` by default. With this setting applied, ALE will now check for the presence of nvim-lspconfig and automatically turn off particular LSP linters if already configured via nvim-lspconfig. For users that do not use `nvim-lspconfig`, everything should work as before.
2023-04-07Fix error from ansible-lint versions >=6.11.0. (#4492)SkrrtBacharach
* Fix error from ansible-lint versions >=6.11.0. The JSON output format of ansible-lint has changed since 6.11.0. Issue locations can have either a 'positions' or a 'lines' member, rather than just a 'lines' member as it was before. This fix checks which member is present, and passes that member name to subsequent dictionary lookups. The error was caused by the following change: https://github.com/ansible/ansible-lint/pull/2897 * Add ansible-lint test to check each type of ansible-lint issue json. * Change long single-line JSON in ansible test into multiline JSON. * Fix linting errors in ansible_lint.vim.
2022-12-06Handle empty answer of ansible-lint (#4373)Michael F. Schönitzer
* Handle empty answer of ansible-lint The variable a:lines might be empty if ansible-lint exited early, in that case json_decode would trow an error. * Use ales JSON decode function
2022-11-25Fix 4246 - Add ansible language-server (#4355)Horacio Sanson
2022-05-09Add support for ansible-lint 6.0.0 (#4189)Matt Perry
ansible-lint 6.0.0 removed the `--parseable-severity` option. Use the JSON output in its place. Fixes #4188
2021-07-31Do not use tempfiles for ansible lint (#3846)Henrik Farre
* Used %s instead of std in * Set lint_file to 1 for ansible-lint so it does not use temp files * Fix test for ansible-lint
2021-07-20Fix 3673 - Add nocolor option to ansible-lint (#3811)Horacio Sanson
Co-authored-by: Horacio Sanson <horacio@allm.inc>
2021-07-05Add stdin ("-") to the command-line arguments of ansible-lint >=5.0.0 (#3786)James Cherti
* Added an explicit stdin argument to ansible-lint >=5.0.0 (ansible_lint.vim). This commit fixes the issue "<<NO OUTPUT RETURNED>>": ``` :ALEInfo (finished - exit code 0) ['/bin/bash', '-c', ''ansible-lint'' --parseable-severity -x yaml < ''/tmp/vVyvn4B/7/test2.yml''] <<<NO OUTPUT RETURNED>>>' ``` Reason: Ansible-lint ignores stdin when "-" or "/dev/stdin" is not specified explicitly. Tested with: ansible-lint 5.0.12 using ansible 2.11.2 * Update ansible-lint tests.
2021-02-28Fix ansible-lint linter definition. (#3601)serapas
* Fix ansible-lint linter definition. Use ansible-lint's feature auto-detection instead of temporary file. For auto-detection to work, ansible project has to be also a git repository. Don't use yaml rules. These are checked by yamllint. Refactor pattern to work with ansible-lint >=5.0 version. Clean-up obsolete test cases. * Pull Request changes
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2018-10-18Allow custom executable for ansible linters (#1977)ix5
* Allow custom executable for ansible linters * Add ansible-lint tests * ansible-lint: simplify linter command * Rename linter "ansible" to "ansible_lint" * Add ansible-lint options to documentation * Add alias ansible-lint for ansible_lint
2017-12-13Fix #1216 - Suppress trailing whitespace warings for ansible-lint when the ↵w0rp
option is set
2017-11-15#852 - Capture error codes for ansible-lintw0rp
2017-08-08Ban use of ==# or ==? in the codebase, and prefer is# or is? insteadw0rp
2017-07-03Fix #216 - Filter out errors for other files for ansible-lintw0rp
2017-06-14Split up the flake8 and ansible-lint handlersw0rp
2017-04-24Break shared handlers up into their own files, and fix stylelint error handlingw0rp
2017-02-11Replace every stdin-wrapper script with the new %t formatting supportw0rp
2016-10-21Add support for dot-seperate linters, improve linter testsBjorn Neergaard
This PR first and formost implements support for dot-seperate filetypes, a very trivial change. This closes #132 But more importantly, this PR vastly improves the test quality for `ale#linter#Get`. It enables us to reset the state of ale's internal linter cache, to facilitate better testing, as well as making use of mocked linters instead of depending on linters on disk (which may change). In addition, a dummy linter is defined to test the autoloading behavior. Header guards were removed from all linters as: * A: ale won't try and load linters if they already exist in memory * B: we can't reset state for testing if they can't be loaded again
2016-10-20Document ansible-lintBjorn Neergaard
2016-10-20Add ansible-lint support and factor out PEP8 handlerBjorn Neergaard