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

2405: BaseTools/MuCodeQlQueries.qls: Removed unused static function query #1067

Conversation

makubacki
Copy link
Member

@makubacki makubacki commented Jul 25, 2024

Description

This is the Project Mu equivalent of the following edk2 commit:

1bb9f47

This commit can be squashed with the commit that adds MuCodeQlQueries.qls in the future.


This query seems to produce a rate of false positives with some common patterns in edk2 like passing function pointers for callback.

Due to the usage of STATIC instead of static particularly for functions, this query was rarely used in the past. It is removed here to prevent future false positives.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

  • CodeQL with a static function present in the code

Integration Instructions

  • N/A

@makubacki makubacki added the semver:patch Pull requests that should increment the release patch version label Jul 25, 2024
@makubacki makubacki requested review from os-d and apop5 July 25, 2024 18:48
@makubacki makubacki self-assigned this Jul 25, 2024
@github-actions github-actions bot added the impact:non-functional Does not have a functional impact label Jul 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (release/202405@507275b). Learn more about missing BASE report.

Additional details and impacted files
@@                Coverage Diff                @@
##             release/202405    #1067   +/-   ##
=================================================
  Coverage                  ?    1.35%           
=================================================
  Files                     ?     1436           
  Lines                     ?   359331           
  Branches                  ?     5355           
=================================================
  Hits                      ?     4858           
  Misses                    ?   354005           
  Partials                  ?      468           
Flag Coverage Δ
MdeModulePkg 0.40% <ø> (?)
MdePkg 5.41% <ø> (?)
NetworkPkg 0.55% <ø> (?)
UefiCpuPkg 4.75% <ø> (?)

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.

This is the Project Mu equivalent of the following edk2 commit:

1bb9f47

---

This query seems to produce a rate of false positives with some
common patterns in edk2 like passing function pointers for callback.

Due to the usage of `STATIC` instead of `static` particularly for
functions, this query was rarely used in the past. It is removed
here to prevent future false positives.

Signed-off-by: Michael Kubacki <[email protected]>
@makubacki makubacki force-pushed the 2405_remove_unused_static_query_fn branch from 001e1f0 to ff0a330 Compare July 25, 2024 23:10
@makubacki makubacki enabled auto-merge (squash) July 25, 2024 23:11
@makubacki makubacki merged commit d753ffc into microsoft:release/202405 Jul 25, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact:non-functional Does not have a functional impact semver:patch Pull requests that should increment the release patch version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants