-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add directory with Coverity stuff, uploaded modeling file
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Coverity settings/configuration | ||
|
||
We use Coverity scan for static code analysis. This directory contains | ||
[configuration](https://scan.coverity.com/projects/domjudge?tab=analysis_settings) | ||
that has also been uploaded toCoverity, but is also stored here for | ||
visibility and tracking. | ||
|
||
The file `modeling.c` is used to explicitly tell the analysis engine | ||
which code paths terminate execution and related things. | ||
|
||
The file `components.csv` lists which components we have configured | ||
and whether they are ignored (for external code) in the analysis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Component name Pattern Ignore in analysis | ||
Included standard libraries /usr/include/.* Yes | ||
External JS libraries /webapp/web/js/(ace/.*|flot/.*|jquery\..*\.js) No | ||
Generated cache files in var /webapp/var/cache/.* Yes | ||
Generated doc build files /doc/manual/build/.* Yes | ||
Symfony external resources /webapp/resources/.* Yes | ||
External PHP libraries /webapp/vendor/.* Yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* To be uploaded to scan.coverity.com as modeling file to exclude | ||
* false positives because it does not detect that error() always | ||
* terminates the program. | ||
*/ | ||
|
||
void error(int errnum, const char *format, ...) { | ||
__coverity_panic__(); | ||
} |