-
Notifications
You must be signed in to change notification settings - Fork 77
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
Vulture #215
Conversation
I am concerned with the amount reported. Thinking of starting with 100% confidence instead of 60. |
@glicht with 100% confidence level we will lose the whole point of vulture, as you can see there are only 3 alerts with 100% confidence, and most of the reports are actual dead code |
We have over 100 reported integrations/scripts. Need to discuss how we go about this. I am not sure how easy the whitelisting is. I really don't like that they don't have inline comments. See: jendrikseipp/vulture#182 . I suggest taking one of the reported issues and creating a whitelist. |
@glicht please see this commit, which include unused vars and whitelisting of reports that came up in GmailSingleUser |
I think we have enough linters. Lets discuss further if we want another one |
@glicht updated confidence level to 100 |
demisto_sdk/commands/lint/linter.py
Outdated
""" | ||
lint_files = self._get_lint_files() | ||
python_exe = 'python2' if py_num < 3 else 'python3' | ||
cmd_args = [python_exe, '-m', 'vulture', lint_files, '--min-confidence 100'] |
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.
Let's get the confidence level from an environment variable (with a default of 100). That way if a developer wants to run it with a lower confidence level she can simply set an environment variable.
Hello there, vulture dev here. Just an update: Vulture now supports |
@RJ722 cool, we have been waiting for this feature |
Added Vulture to linter
Running example
I've set the confidence level to 60 in order to catch things like:
Might lead to some false positives, but we can whitelist them