summaryrefslogtreecommitdiff
path: root/tools/run_cppcheck.sh
Commit message (Collapse)AuthorAgeFilesLines
* CI: Generate compile database without running MesonPhilip Chimento2020-12-031-3/+7
| | | | | Ninja has a compdb task which just generates the compile database, which is what we need here.
* maint: Add copyright notices based on major file contributorsPhilip Chimento2020-11-301-0/+1
| | | | | | | | | | | | Based on looking at the git logs, add copyright notices to files which were missing them, assuming the copyright belongs to people who made major contributions to each file. Some assumptions were made as to who to assign the copyright to, such as, what copyright assignment did the contributor make in other files added in the same commit? What email address did they use to make the commit? What copyright assignment did they make in other commits using the same email address?
* CI: Add cppcheck config filePhilip Chimento2020-11-221-1/+1
| | | | | | | This is needed because we are about to upgrade to a newer version of cppcheck than the one on the DockerHub image. It ships a "library file" for the GNOME platform, enabling some extra checks when using GLib and GTK APIs. It also requires configuration of some of the macros that we use.
* CI: Avoid cppcheck false positivesPhilip Chimento2020-11-221-0/+1
| | | | | | | | | | Various changes to avoid false positives in cppcheck. The 'alternative int' specifier isn't known to cppcheck so always run the checks as if it is not defined. Cppcheck has trouble deducing the type of one 'auto' variable, so just replace it with its real type.
* CI: Activate GNOME-specific rules in cppcheckPhilip Chimento2020-11-221-1/+1
| | | | | Cppcheck ships a "library file" for the GNOME platform, enabling some extra checks when using GLib and GTK APIs.
* maint: Add dual MIT/LGPL license to all GJS files that didn't have onePhilip Chimento2020-10-041-0/+1
| | | | | | This adds a SPDX-License-Identifier comment to all files that are part of GJS, part of its unit tests, or auxiliary tools. (Except for some files like the debugger scripts that don't support comments.)
* build: Port cppcheck target to use compilation databasePhilip Chimento2019-10-121-0/+6
Using Meson, we get a compilation database in the build directory, which makes it much easier to run cppcheck. We remove the 'make cppcheck' target from the Autotools makefile and instead add a new tools/run_cppcheck.sh script to use the compilation database generated by Meson.