Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cppcheck suppresions set 59 #38747

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

adriazalvarez
Copy link
Contributor

Description of work

Summary of work

Fixes #xxxx.

Further detail of work

To test:


Reviewer

Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.

Code Review

  • Is the code of an acceptable quality?
  • Does the code conform to the coding standards?
  • Are the unit tests small and test the class in isolation?
  • If there is GUI work does it follow the GUI standards?
  • If there are changes in the release notes then do they describe the changes appropriately?
  • Do the release notes conform to the release notes guide?

Functional Tests

  • Do changes function as described? Add comments below that describe the tests performed?
  • Do the changes handle unexpected situations, e.g. bad input?
  • Has the relevant (user and developer) documentation been added/updated?

Does everything look good? Mark the review as Approve. A member of @mantidproject/gatekeepers will take care of it.

Gatekeeper

If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.

@@ -28,6 +28,7 @@ GNU_DIAG_OFF("unused-local-typedef")
// Seen with GCC 7.1.1 and Boost 1.63.0
GNU_DIAG_OFF("conversion")
// define overloaded functions
// cppcheck-suppress unknownMacro
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be an issue with cppcheck not being able to find boost macros, will create an issue for it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that situation occurred for us as well.

@@ -46,11 +46,13 @@ void export_Instrument() {
"represents the source")

.def("getComponentByName",
// cppcheck-suppress cstyleCast
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cstylecast used in all such exports, suspect it is not worth changing them all under the scope of this hackathon. Will raise an issue.

@github-actions github-actions bot added the Has Conflicts Used by the bot to label pull requests that have conflicts label Jan 29, 2025
Copy link

👋 Hi, @adriazalvarez,

Conflicts have been detected against the base branch. Please rebase your branch against the base branch.

@adriazalvarez adriazalvarez force-pushed the cpp_check_hackathon_set59 branch from a42d8c5 to 78e86f0 Compare January 29, 2025 15:51
@github-actions github-actions bot removed the Has Conflicts Used by the bot to label pull requests that have conflicts label Jan 29, 2025
@adriazalvarez adriazalvarez marked this pull request as ready for review January 30, 2025 07:46
@sf1919 sf1919 added the Maintenance Unassigned issues to be addressed in the next maintenance period. label Jan 30, 2025
@sf1919 sf1919 added this to the Release 6.13 milestone Jan 30, 2025
constParameterCallback:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/geometry/src/Exports/MeshObject.cpp:29
constParameterCallback:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/geometry/src/Exports/ReflectionGenerator.cpp:40
cstyleCast:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/geometry/src/Exports/UnitCell.cpp:175
iterateByValue:${CMAKE_SOURCE_DIR}/Framework/PythonInterface/mantid/kernel/src/Exports/ArrayProperty.cpp:52
Copy link
Contributor

@MohamedAlmaki MohamedAlmaki Jan 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this PR only addresses half of the set. Is that intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@warunawickramasingha was assigned to submit the other half. Sorry, I shouldn't have put it on review;

@adriazalvarez adriazalvarez marked this pull request as draft January 30, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Unassigned issues to be addressed in the next maintenance period.
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

4 participants