CI: create lint jobs
As seen in #6 (closed)
Other ideas for analysis" jobs: cpplint
I guess you will need to to run indent
and astyle
after 3.28. As it is now, a MR wont be accepted. E.g.:
gjs/jsapi-util.cpp:703: Extra space before ( in function call [whitespace/parens] [4]
gjs/jsapi-util.cpp:704: { should almost always be at the end of the previous line [whitespace/braces] [4]
gjs/jsapi-util.cpp:720: Extra space before ( in function call [whitespace/parens] [4]
gjs/jsapi-util.cpp:749: Extra space before ( in function call [whitespace/parens] [4]
gjs/jsapi-util.cpp:750: { should almost always be at the end of the previous line [whitespace/braces] [4]
gjs/jsapi-util.cpp:756: Extra space before ( in function call [whitespace/parens] [4]
gjs/jsapi-util.cpp:757: { should almost always be at the end of the previous line [whitespace/braces] [4]
gjs/jsapi-util.cpp:765: Using C-style cast. Use reinterpret_cast<GjsContext *>(...) instead [readability/casting] [4]
gjs/jsapi-util.cpp:790: { should almost always be at the end of the previous line [whitespace/braces] [4]
gjs/jsapi-util.cpp:796: Extra space before ( in function call [whitespace/parens] [4]
gjs/jsapi-util.cpp:831: { should almost always be at the end of the previous line [whitespace/braces] [4]
gjs/jsapi-util.cpp:427: Add #include <string> for string [build/include_what_you_use] [4]
Done processing gjs/jsapi-util.cpp
Total errors found: 3737
[root@c5f74807e271 saved]# echo $?
1