Skip to content
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

Fixes #17032: Fix qa-test #265

Conversation

Fdall
Copy link
Contributor

@Fdall Fdall commented Apr 2, 2020

@Fdall Fdall requested a review from amousset April 2, 2020 08:46
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit b413dd2 into Normation:branches/rudder/6.0 Apr 2, 2020
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

find . -name '*.py' | grep -v share/python | grep -v zabbix | xargs -r pylint -E --disable=C,R,undefined-variable --persistent=n --init-hook="sys.path[0:0] = ['./centreon/share/python']"
find . -name '*.py' | xargs -r grep -L "#!/usr/bin/python3" | grep -v share/python | grep -v zabbix | xargs -r pylint -E --disable=C,R,undefined-variable --persistent=n --init-hook="sys.path[0:0] = ['./centreon/share/python']"
find . -name '*.py' | xargs -r grep -l "#\!/usr/bin/python3" | grep -v share/python | grep -v zabbix | xargs -r pylint3 -E --disable=C,R,undefined-variable --persistent=n
Copy link
Member

Choose a reason for hiding this comment

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

why a grep "#!" and a grep "#!"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well spotted, should be both with \ since in some cases, the shebang match can be interpreted

@Fdall
Copy link
Contributor Author

Fdall commented Apr 2, 2020

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.

4 participants