Skip to content

Feature/ full project analysis - #117

Merged
davidramnero merged 6 commits into
mainfrom
feature/-full-project-analysis
Sep 14, 2026
Merged

davidramnero merged 6 commits into
mainfrom
feature/-full-project-analysis

Conversation

@davidramnero

@davidramnero davidramnero commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Full analysis is available if a project file is set. This can be done through a UI element in the bottom bar. This function required a new function, separate from the regular function for analysing a specific document. Due to this the PR contains a lot of changes to keep things DRY, extracting a lot of shared functionality between the regular analysis and the full analysis into helper functions.

Due to this extensive diff I have done thorough testing. Below is a list of everything I have tested and deemed to work as intended:

Tested:

  • Regular and full analysis with project=compile_commands.json
  • Regular and full analysis with project=project-file.cppcheck
  • Regular analysis without project file
  • Adding suppression to project file
  • Multi-location warnings appearing as intended
  • Hiding specific warnings and warning types
  • Filtering for severity
  • Inline comments

@danmar danmar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Regular and full analysis with project=compile_commands.json

Regular and full analysis with project=project-file.cppcheck
Regular analysis without project file
Adding suppression to project file
Multi-location warnings appearing as intended
Hiding specific warnings and warning types
Filtering for severity
Inline comments

would it be straight forward to write some tests for some of these?

would it be possible to write tests for src/helpers/*.ts functions?

@davidramnero
davidramnero merged commit 7234b5e into main Sep 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants