Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenFlipper-Free
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
ced979c5
Commit
ced979c5
authored
May 10, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run OpenFlipper cppcheck via gitlab
parent
8f913ee4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
0 deletions
+80
-0
.gitlab-ci.yml
.gitlab-ci.yml
+6
-0
CI/ci-cppcheck.sh
CI/ci-cppcheck.sh
+71
-0
tests/cppcheck-suppressions.txt
tests/cppcheck-suppressions.txt
+3
-0
No files found.
.gitlab-ci.yml
View file @
ced979c5
...
...
@@ -41,3 +41,9 @@ clang-c++98-Qt5:
tags
:
-
Linux
-
MultiThreads
cppcheck
:
script
:
"
CI/ci-cppcheck.sh"
tags
:
-
Linux
-
MultiThreads
CI/ci-cppcheck.sh
0 → 100755
View file @
ced979c5
#!/bin/bash
# Exit script on any error
set
-e
#=====================================
# Color Settings:
#=====================================
NC
=
'\033[0m'
OUTPUT
=
'\033[0;32m'
WARNING
=
'\033[0;93m'
echo
-e
"
${
OUTPUT
}
"
echo
"=============================================================================="
echo
"Running cppcheck"
echo
"=============================================================================="
echo
-e
"
${
NC
}
"
echo
"Please Wait ..."
# Run cppcheck and output into file
cppcheck
--enable
=
all
\
-j4
\
--quiet
\
-i
libs_required
\
-i
Plugin-MemInfo/procps
\
-i
Plugin-PoissonReconstruction
\
-i
build-release
\
-i
build-debug
\
-i
.svn
\
-i
.git
\
--force
\
-UDOXY_IGNORE_THIS
\
--suppress
=
unusedPrivateFunction
\
--suppress
=
ConfigurationNotChecked
\
--suppressions-list
=
tests/cppcheck-suppressions.txt
\
--suppress
=
missingIncludeSystem
\
-DOPENMESHDLLEXPORT
=
""
\
-Umin
-Umax
-UBMPOSTFIX
\
-DACGDLLEXPORT
=
""
\
.
#&> cppcheck.log
echo
-e
"
${
OUTPUT
}
"
echo
"=============================================================================="
echo
"CPPCHECK Messages"
echo
"=============================================================================="
echo
-e
"
${
NC
}
"
# Echo output to command line for simple analysis via gitlab
cat
cppcheck.log
COUNT
=
$(
wc
-l
< cppcheck.log
)
echo
-e
"
${
OUTPUT
}
"
echo
"=============================================================================="
echo
"CPPCHECK Summary"
echo
"=============================================================================="
echo
-e
"
${
NC
}
"
if
[
$COUNT
-gt
0
]
;
then
echo
-e
${
WARNING
}
echo
"Total CPPCHECK error Count is
$COUNT
, which is too High! CPPCHECK Run failed"
;
echo
-e
"
${
NC
}
"
exit
1
;
else
echo
"Total CPPCHECK error Count is
$COUNT
... OK"
fi
tests/cppcheck-suppressions.txt
View file @
ced979c5
...
...
@@ -36,3 +36,6 @@ redundantAssignment:OpenFlipper/LicenseManager/LicenseManagerActive.cc:310
// purgedConfiguration
purgedConfiguration
// Missing includes from system libraries
missingIncludeSystem
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment