-
Notifications
You must be signed in to change notification settings - Fork 581
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
bears/c_languages: Add OClintBear #2149
base: master
Are you sure you want to change the base?
Conversation
tests/c_languages/OClintBearTest.py
Outdated
valid_files=(bad_file, good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-max-priority-1=2'}) | ||
|
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.
The code does not comply to PEP8.
Origin: PEP8Bear, Section: autopep8
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmp_di5qvhc/tests/c_languages/OClintBearTest.py
+++ b/tmp/tmp_di5qvhc/tests/c_languages/OClintBearTest.py
@@ -34,4 +34,3 @@
valid_files=(bad_file, good_file),
invalid_files=(),
settings={'oclint_cli_options': '-max-priority-1=2'})
-
tests/c_languages/OClintBearTest.py
Outdated
valid_files=(bad_file, good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-max-priority-1=2'}) | ||
|
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.
W391 blank line at end of file
Origin: PycodestyleBear (W391), Section: autopep8
.
bears/c_languages/OClintBear.py
Outdated
@staticmethod | ||
def create_arguments(filename, file, config_file, | ||
oclint_cli_options: str=''): | ||
|
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.
The code does not comply to PEP8.
Origin: PEP8Bear, Section: autopep8
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmp_di5qvhc/bears/c_languages/OClintBear.py
+++ b/tmp/tmp_di5qvhc/bears/c_languages/OClintBear.py
@@ -21,7 +21,6 @@
@staticmethod
def create_arguments(filename, file, config_file,
oclint_cli_options: str=''):
-
"""
:param oclint_cli_options: Any other flags you wish to pass to oclint.
"""
9053241
to
a012a49
Compare
tests/c_languages/OClintBearTest.py
Outdated
OClintBear, | ||
valid_files=(bad_file, good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-max-priority-1=2'}) |
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.
Line contains following spacing inconsistencies:
- No newline at EOF.
Origin: SpaceConsistencyBear, Section: python
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmphvy4zy6p/tests/c_languages/OClintBearTest.py
+++ b/tmp/tmphvy4zy6p/tests/c_languages/OClintBearTest.py
@@ -33,4 +33,4 @@
OClintBear,
valid_files=(bad_file, good_file),
invalid_files=(),
- settings={'oclint_cli_options': '-max-priority-1=2'})+ settings={'oclint_cli_options': '-max-priority-1=2'})
tests/c_languages/OClintBearTest.py
Outdated
OClintBear, | ||
valid_files=(bad_file, good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-max-priority-1=2'}) |
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.
The code does not comply to PEP8.
Origin: PEP8Bear, Section: autopep8
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmphvy4zy6p/tests/c_languages/OClintBearTest.py
+++ b/tmp/tmphvy4zy6p/tests/c_languages/OClintBearTest.py
@@ -33,4 +33,4 @@
OClintBear,
valid_files=(bad_file, good_file),
invalid_files=(),
- settings={'oclint_cli_options': '-max-priority-1=2'})+ settings={'oclint_cli_options': '-max-priority-1=2'})
tests/c_languages/OClintBearTest.py
Outdated
OClintBear, | ||
valid_files=(bad_file, good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-max-priority-1=2'}) |
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.
W292 no newline at end of file
Origin: PycodestyleBear (W292), Section: autopep8
.
8c6a7fa
to
ff5d0ef
Compare
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.
Always run coala before making a PR.
ff5d0ef
to
f064731
Compare
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.
It is failing because test coverage couldn't reach to 100% means you are missing some cases.
@khanchi97 yeah, but it could be also because there is no |
86a6ad3
to
201b40b
Compare
tests/c_languages/OClintBearTest.py
Outdated
GoLintBear, | ||
valid_files=(good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-disable-rule=GOtoStatement'}) |
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.
Line contains following spacing inconsistencies:
- No newline at EOF.
Origin: SpaceConsistencyBear, Section: python
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmp4o5fabpp/tests/c_languages/OClintBearTest.py
+++ b/tmp/tmp4o5fabpp/tests/c_languages/OClintBearTest.py
@@ -32,4 +32,4 @@
GoLintBear,
valid_files=(good_file),
invalid_files=(),
- settings={'oclint_cli_options': '-disable-rule=GOtoStatement'})+ settings={'oclint_cli_options': '-disable-rule=GOtoStatement'})
tests/c_languages/OClintBearTest.py
Outdated
GoLintBear, | ||
valid_files=(good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-disable-rule=GOtoStatement'}) |
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.
The code does not comply to PEP8.
Origin: PEP8Bear, Section: autopep8
.
The issue can be fixed by applying the following patch:
--- a/tmp/tmp4o5fabpp/tests/c_languages/OClintBearTest.py
+++ b/tmp/tmp4o5fabpp/tests/c_languages/OClintBearTest.py
@@ -32,4 +32,4 @@
GoLintBear,
valid_files=(good_file),
invalid_files=(),
- settings={'oclint_cli_options': '-disable-rule=GOtoStatement'})+ settings={'oclint_cli_options': '-disable-rule=GOtoStatement'})
tests/c_languages/OClintBearTest.py
Outdated
GoLintBear, | ||
valid_files=(good_file), | ||
invalid_files=(), | ||
settings={'oclint_cli_options': '-disable-rule=GOtoStatement'}) |
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.
W292 no newline at end of file
Origin: PycodestyleBear (W292), Section: autopep8
.
2ca29f5
to
0a212ea
Compare
Adds `OClintBear` that provides static code analysis for C, C++ and Objective-C. Closes coala#1953
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.
Read about pytest coverage and add some test cases ;P and rebase as well ;)
Adds
OClintBear
that provides static code analysis for C, C++ andObjective-C.
Closes #1953
For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!
Checklist
them.
individually. It is not sufficient to have "fixup commits" on your PR,
our bot will still report the issues for the previous commit.) You will
likely receive a lot of bot comments and build failures if coala does not
pass on every single commit!
After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.
Please consider helping us by reviewing other peoples pull requests as well:
cobot mark wip <URL>
to get it outof the review queue.
The more you review, the more your score will grow at coala.io and we will
review your PRs faster!