-
Notifications
You must be signed in to change notification settings - Fork 40
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
cpplint parser does not recognize any violations from cpplint report #68
Comments
There are working example reports here: https://github.com/tomasbjerre/violations-lib/tree/master/src/test/resources/cpplint It looks like it is the time at the start |
Sorry,I click "Close and comment" button in mistake. So I reopened it. |
I install it like this: Use it like:
This command was run at the cpp-file here: |
Today I had some tries. But if I use |
If I run that I get the same result as I previously posted:
|
Here is my report, seems there is no problem on create cpplint.xml.
|
Perhaps you can package the cpplint.xml in a file, perhaps a zip-file, and attach it. That should ensure I am testing with your exact file. |
cpplint.zip |
cpplint_one.zip |
Found it! Will release it soon as possible. |
Corrected in 2.25 of Violation Comments to Gitlab Plugin. Open issue if still not working. |
Thanks so much for your great help. |
Hi,
I use Violations Comments to GitLab plugin with cpplint. But the plugin find 0 violations.
cpplint.xml is located directly in the workspace with below content:
17:24:17 src/utility/utility.h:15: Tab found; better to use spaces [whitespace/tab] [1]
17:24:17 src/utility/utility.h:17: Tab found; better to use spaces [whitespace/tab] [1]
17:24:17 src/utility/utility.h:30: Tab found; better to use spaces [whitespace/tab] [1]
below is the ViolationConfig
17:24:18 gitLabUrl: http://gitlab.xxxx.domain
17:24:18 projectId: 33938
17:24:18 mergeRequestIid: 163
17:24:18 apiToken: true
17:24:18 apiTokenCredentialsId: false
17:24:18 ignoreCertificateErrors: true
17:24:18 apiTokenPrivate: true
17:24:18 authMethodHeader: true
17:24:18 createCommentWithAllSingleFileComments: true
17:24:18 createSingleFileComments: false
17:24:18 commentOnlyChangedContent: true
17:24:18 maxNumberOfViolations:99999
17:24:18 minSeverity: INFO
17:24:18 keepOldComments: true
17:24:18 shouldSetWip: true
17:24:18 commentTemplate:
17:24:18 proxyUri:
17:24:18 proxyUser: no
17:24:18 proxyPassword: no
17:24:18 CPPLINT with pattern .*cpplint.xml$
17:24:18 Running Violation Comments To GitLab
17:24:18 Merge request: 163
17:24:18 Workspace: F:\Jenkins\workspace\static_check
17:24:18 Found 0 violations from ViolationConfig [pattern=.*cpplint.xml$, parser=CPPLINT, reporter=CPPLint].
One more thing, I tried Pylint, which can works correctly and can comments successfully to GitLab. So there should be no proxy, connection issue itself.
I googled from the internet, but cannot find any valuable to fix it.
Any idea what the problem might be? Or anything I configured wrong?
The text was updated successfully, but these errors were encountered: