Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix error from ansible-lint versions >=6.11.0.#4492

Merged
hsanson merged 4 commits intodense-analysis:masterdense-analysis/ale:masterfrom
SkrrtBacharach:ansible_lint_fixSkrrtBacharach/ale:ansible_lint_fixCopy head branch name to clipboard
Apr 7, 2023
Merged

Fix error from ansible-lint versions >=6.11.0.#4492
hsanson merged 4 commits intodense-analysis:masterdense-analysis/ale:masterfrom
SkrrtBacharach:ansible_lint_fixSkrrtBacharach/ale:ansible_lint_fixCopy head branch name to clipboard

Conversation

@SkrrtBacharach
Copy link
Copy Markdown
Contributor

@SkrrtBacharach SkrrtBacharach commented Apr 3, 2023

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:
ansible/ansible-lint#2897

@SkrrtBacharach
Copy link
Copy Markdown
Contributor Author

SkrrtBacharach commented Apr 3, 2023

I'm not really sure how to add tests for this, or if it's even possible.

EDIT: read :help ale-dev and it's clearer now, WIll look at adding tests.

@hsanson
Copy link
Copy Markdown
Contributor

hsanson commented Apr 6, 2023

There seems to be linter issues. Please fix those.

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:
ansible/ansible-lint#2897
@SkrrtBacharach
Copy link
Copy Markdown
Contributor Author

There seems to be linter issues. Please fix those.

Should be fixed now.

Copy link
Copy Markdown
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@hsanson hsanson merged commit 57254db into dense-analysis:master Apr 7, 2023
mnikulin pushed a commit to mnikulin/ale that referenced this pull request Nov 12, 2023
* 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:
ansible/ansible-lint#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.