mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 05:35:42 +09:00
This commit introduces a new API server based on the gRPC/Protobuf. The API follow the design of the existing xml-rpc to ease the transition to the new server and support the current state management engine. Both API servers can be run in parallel. Main changes: - Decouple Generic and XMLRPC specific logic and add gRPC classes. - Source code re-structure to include logic for each server - New compilation options to generate gRPC stubs - Client code for C++, Ruby, Python and Go co-authored-by: Jan Orel <jorel@opennebula.io> co-authored-by: Pavel Czerny <pczerny@opennebula.io> co-authored-by: MarioRobres <mrobres@opennebula.io>
25 lines
1.1 KiB
Bash
Executable File
25 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script uses static analysis tool CppCheck to find issues in C++ code
|
|
|
|
# As first step it's doing just basic checks, we should solve them and
|
|
# consider adding more with flag --enable:
|
|
# - performance - should be added first, shows minor performance issues
|
|
# - information
|
|
# - warning - adds lot of issues: uninitialized variable, redundant condition,
|
|
# index out of range, ...
|
|
# - style - adds lot of low priority issues
|
|
# - all - all check, too many errors
|
|
|
|
# To disable specific error messages use cppcheck-suppressions.xml file
|
|
|
|
SOURCES="src"
|
|
INCLUDES="-I include -I src/monitor/include"
|
|
DEFINES="-DSQLITE_DB -DMYSQL_DB -DSYSTEMD"
|
|
ENABLE="--enable=performance,information,warning,portability,style,missingInclude"
|
|
IGNORE="-i .xmlrpc_test/ -i src/sunstone/ -i src/svncterm_server/ -i src/fireedge -i src/parsers -i src/vmm/LibVirtDriverKVM.cc -i src/rm/grpc/src"
|
|
SUPRESS="--inline-suppr --suppress-xml=share/smoke_tests/config/cppcheck-suppressions.xml"
|
|
OTHERS="--std=c++17 --error-exitcode=2 -q -j 4"
|
|
|
|
cppcheck $SOURCES $INCLUDES $DEFINES $IGNORE $ENABLE $SUPRESS $OTHERS
|