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

[INFRA] Add CodeChecker #3310

Merged
merged 2 commits into from
Nov 27, 2024
Merged

[INFRA] Add CodeChecker #3310

merged 2 commits into from
Nov 27, 2024

Conversation

eseiler
Copy link
Member

@eseiler eseiler commented Nov 26, 2024

CodeChecker runs various analysis tools. See https://github.com/Ericsson/codechecker

Currently, clang-tidy, clang static analyzer, and cppcheck are run.

Results are deployed to https://docs.seqan.de/codechecker/

In the future, we may want to set up the proper CodeChecker server, as it provides many more features.


codechecker.yaml

Contains command line options. This file is used by the seqan/actions/codechecker action.
Environment variables are expended by CodeChecker.

codechecker.skip.analyze

The list is evaluated top to button.
The first matching path is used for any given file.
- means do not analyze, + means do analyze.

Environment variables are not expended by CodeChecker. seqan/actions/codechecker replaces ${GITHUB_WORKSPACE} with its value for any .github/config/codechecker.skip* file.

The test directory is included because there wouldn't be any cpp files to build otherwise.

codechecker.skip.parse

Same as codechecker.skip.analyze, except that the test directory is excluded too.
This means that the report will only consist of files in include/seqan3 without the contrib directory.

@seqan-actions seqan-actions added lint [INTERNAL] signal for linting and removed lint [INTERNAL] signal for linting labels Nov 26, 2024
@seqan-actions
Copy link
Member

Documentation preview available at https://docs.seqan.de/preview/seqan/seqan3/3310

Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.13%. Comparing base (bfa237e) to head (913889a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3310   +/-   ##
=======================================
  Coverage   98.13%   98.13%           
=======================================
  Files         271      271           
  Lines       11954    11954           
  Branches      104      104           
=======================================
  Hits        11731    11731           
  Misses        223      223           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seqan-actions seqan-actions added lint [INTERNAL] signal for linting and removed lint [INTERNAL] signal for linting labels Nov 26, 2024
Copy link
Contributor

@SGSSGene SGSSGene left a comment

Choose a reason for hiding this comment

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

very cool 😎!

@eseiler eseiler merged commit f9ba6d6 into seqan:main Nov 27, 2024
42 checks passed
@eseiler eseiler deleted the infra/codechecker branch November 27, 2024 07:34
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.

3 participants