grundprinzip / gerrit-check Goto Github PK
View Code? Open in Web Editor NEWLine annotations for syntax checkers for Gerrit
License: Apache License 2.0
Line annotations for syntax checkers for Gerrit
License: Apache License 2.0
There should be an easy way, e.g. via an external file, to configure the options / command line arguments passed to the individual checkers.
gerrit-check package in pip https://pypi.org/project/gerrit-check/ is out of date with master branch. It missed all fixes.
I have this error when running the gerrit-check command:
Traceback (most recent call last): File "/usr/local/bin/gerrit-check", line 9, in <module> load_entry_point('gerrit-check==0.1.1', 'console_scripts', 'gerrit-check')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/usr/local/lib/python2.7/dist-packages/gerritcheck/check.py", line 18, in <module> from flake8.engine import get_style_guide ImportError: No module named engine
I installed gerrit-check using pip.
Python version 2.7.6
Ubuntu 14.04.5 LTS
I have the same error when installing it on windows.
Using gerrit-check, I get frequent false positives about struct members being unused, even though they are clearly being used in .cpp implementation files, and checking those files directly will not find an issue.
It turns out that the way check.py includes header files for passing to cppcheck is wrong.
In fact this is confirmed on http://stackoverflow.com/questions/36825903/cppcheck-claims-that-a-field-is-not-used-while-it-is-in-another-file
Header files should not be explicitly checked, but are implicitly checked.
Therefore check.py, line 28 should be changed to not include .h and .hpp files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.