cppcheck generates a tool warning on every tool feedback page when expected .h files are not present in a submission.
Actual behaviour
When uploading files or directories which have .h dependencies which are not included in the directory, cppcheck generates a correct error. However, it shows this for every tool feedback page, including when selecting specific tools like clang or gcc. It should only be showing in the "all" and "cppcheck" pages.
Example:
cppcheck | information | Cppcheck cannot find all the include files (use --check-config for details) | "" | "" | ""
Steps to reproduce
Navigate to the programming tool upload page.
Enable the cpp tool and any number of other tools. Pick at least 1 other tool. The options don't seem to be relevant to this bug.
Upload a folder or file which needs a .h file to compile, but omit the .h file.
Click "View Feeback"
Click on the "Click to expand" message at the top. The error should be visible along with all other tools.
Change the tool in the dropdown bar at the top of the page to any non-cpp tool.
Repeat step 5. cppcheck will generate a warning despite not being selected as the tool displaying feedback.
Bug Report
Description
cppcheck generates a tool warning on every tool feedback page when expected .h files are not present in a submission.
Actual behaviour
When uploading files or directories which have .h dependencies which are not included in the directory, cppcheck generates a correct error. However, it shows this for every tool feedback page, including when selecting specific tools like clang or gcc. It should only be showing in the "all" and "cppcheck" pages.
Example: cppcheck | information | Cppcheck cannot find all the include files (use --check-config for details) | "" | "" | ""
Steps to reproduce
System information
IFS Version
v0.0.3 dev
Browser
Please tick the affected browsers.