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

Fix many, but not all, clang-tidy complaints #339

Merged
merged 10 commits into from
Aug 21, 2024
Merged

Fix many, but not all, clang-tidy complaints #339

merged 10 commits into from
Aug 21, 2024

Conversation

Anilm3
Copy link
Collaborator

@Anilm3 Anilm3 commented Aug 21, 2024

Fix as many clang-tidy warnings as possible and exclude false positives or warnings which can't currently be fixed without significant effort.

The lint job has now been fully enabled, so future PRs will be required to be compliant.

@pr-commenter
Copy link

pr-commenter bot commented Aug 21, 2024

Benchmarks

Benchmark execution time: 2024-08-21 14:33:06

Comparing candidate commit 2393ae3 in PR branch anilm3/fix-lint with baseline commit 7f58573 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 69.15888% with 33 lines in your changes missing coverage. Please review.

Project coverage is 84.57%. Comparing base (7f58573) to head (2393ae3).

Files Patch % Lines
src/object.cpp 60.37% 11 Missing and 10 partials ⚠️
src/transformer/common/utf8.cpp 77.77% 3 Missing and 1 partial ⚠️
src/condition/lfi_detector.cpp 40.00% 0 Missing and 3 partials ⚠️
src/parser/rule_override_parser.cpp 0.00% 2 Missing ⚠️
src/condition/shi_detector.cpp 0.00% 0 Missing and 1 partial ⚠️
src/condition/sqli_detector.cpp 66.66% 0 Missing and 1 partial ⚠️
src/condition/ssrf_detector.cpp 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #339      +/-   ##
==========================================
- Coverage   84.63%   84.57%   -0.07%     
==========================================
  Files         147      147              
  Lines        7004     7001       -3     
  Branches     3207     3235      +28     
==========================================
- Hits         5928     5921       -7     
- Misses        402      405       +3     
- Partials      674      675       +1     
Flag Coverage Δ
waf_test 84.57% <69.15%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Anilm3 Anilm3 marked this pull request as ready for review August 21, 2024 13:09
@Anilm3 Anilm3 requested a review from a team as a code owner August 21, 2024 13:09
@Anilm3 Anilm3 merged commit 0efe484 into master Aug 21, 2024
50 checks passed
@Anilm3 Anilm3 deleted the anilm3/fix-lint branch August 21, 2024 14:43
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