-
-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make our custom pylint plugin use the AST #5332
Merged
cognifloyd
merged 21 commits into
StackStorm:master
from
st2sandbox:pylint-plugins-use-ast
Oct 19, 2021
Merged
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c2a0d12
Fix pylint plugin to rely on ast instead of __import__()
cognifloyd 75de9f5
finish pylint api_models plugin so it uses AST only
cognifloyd 9f0fdc7
drop unused import
cognifloyd a07029d
Merge branch 'master' into pylint-plugins-use-ast
cognifloyd e79b443
pylint plugin: add overview of plugin documentation
cognifloyd 5ecab18
pylint plugin: reduce indentation
cognifloyd 1891fb7
pylint plugin: Add comments explaining our use of AST
cognifloyd 071e160
pylint_plugins: reformat with black
cognifloyd 595d3d6
Merge branch 'master' into pylint-plugins-use-ast
cognifloyd 538d51d
pylint plugin: drop comment header
cognifloyd d4f0440
use the var name SKIPLIST
cognifloyd 455f20a
pylint plugin: better use of astroid API
cognifloyd 70973e0
pylint plugin: more accurate use of cls.locals
cognifloyd 5ede946
pylint plugin: Add tests for api_models plugin
cognifloyd 6553164
pylint plugin: Add license block to new file
cognifloyd 34fa4a1
makefile fix
cognifloyd 3c98617
Merge branch 'master' into pylint-plugins-use-ast
cognifloyd ae2783e
makefile fix
cognifloyd 2d5d3b6
Add pylint test for api_models pylint plugin
cognifloyd 75e18a0
reformat with black
cognifloyd d67c7a6
Merge branch 'master' into pylint-plugins-use-ast
cognifloyd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In writing tests, I realized that we were modifying the AST incorrectly in the original plugin. This is the correct way to do it.