Repository Analysis

tianocore/edk2

EDK II

3.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tianocore/edk2, a C project with 6,105 GitHub stars. SynthScan v2.0 examined 2,591,250 lines of code across 6575 source files, recording 9673 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 3.9 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.9
Adjusted Score
3.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.1K
Stars
C
Language
2.6M
Lines of Code
6.6K
Files
9.7K
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 140MEDIUM 297LOW 9235

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 9673 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block7445 hits · 6840 pts
SeverityFileLineSnippetContext
LOWpip-requirements.txt1## @fileCOMMENT
LOWedksetup.sh1#COMMENT
LOWPcAtChipsetPkg/PcAtChipsetPkg.ci.yaml1## @fileCOMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c161 TimerDriverGenerateSoftInterruptCOMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c201///COMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c301 // Count number of ticksCOMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c321COMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c361 HpetEnable (TRUE);COMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c541 //COMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c621 // Save the new timer periodCOMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c701 Tpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);COMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c781 // Make sure the Timer Architectural Protocol is not already installed in the systemCOMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c901 }COMMENT
LOWPcAtChipsetPkg/HpetTimerDxe/HpetTimer.c921 // Configure the selected HPET Timer with settings common to both MSI mode and I/O APIC modeCOMMENT
LOWPcAtChipsetPkg/Include/Register/IoApic.h21#define IO_APIC_IDENTIFICATION_REGISTER_INDEX 0x00COMMENT
LOWPcAtChipsetPkg/Include/Register/Hpet.h21///COMMENT
LOWPcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeController.h1/** @fileCOMMENT
LOWPcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeController.h21#include <Library/MemoryAllocationLib.h>COMMENT
LOWPcAtChipsetPkg/Library/AcpiTimerLib/AcpiTimerLib.c61COMMENT
LOWPcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c1/** @fileCOMMENT
LOWPcAtChipsetPkg/Library/SerialIoLib/SerialPortLib.c21#define IR_CONTROL_OFFSET 0x02COMMENT
LOWPcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c281 //COMMENT
LOWPcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c301 // Clear RTC flag registerCOMMENT
LOWPcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h41//COMMENT
LOWPcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.h61//COMMENT
LOW…yptoPkg/Test/UnitTest/Library/BaseCryptLib/HashTests.c21//COMMENT
LOW…/Library/BaseCryptLib/Pkcs7AttachedContentSignatures.h1/** @fileCOMMENT
LOW…ptoPkg/Test/UnitTest/Library/BaseCryptLib/MlDsaTests.c21COMMENT
LOW…ptoPkg/Test/UnitTest/Library/BaseCryptLib/MlDsaTests.c181 // Test MlDsaSetPrivKey with wrong sizeCOMMENT
LOW…ptoPkg/Test/UnitTest/Library/BaseCryptLib/EdDsaTests.c201 //COMMENT
LOW…yptoPkg/Test/UnitTest/Library/BaseCryptLib/X509Tests.c21// openssl x509 -req -in inter.req -out inter.cert -CA ca.cert -CAkey ca.key -sha256 -days 3650 -set_serial 1 -extensionCOMMENT
LOW…/Test/UnitTest/Library/BaseCryptLib/BlockCipherTests.c281 // These are commented out as these functions have been deprecated, but they have been left in for future referenceCOMMENT
LOW…/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLib.h1/** @fileCOMMENT
LOWCryptoPkg/Include/Library/BaseCryptLib.h21#define CRYPTO_NID_SHA256 0x0001COMMENT
LOWCryptoPkg/Include/Library/BaseCryptLib.h41COMMENT
LOWCryptoPkg/Include/Library/BaseCryptLib.h61COMMENT
LOWCryptoPkg/Include/Library/BaseCryptLib.h2501 //COMMENT
LOW…toPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c101COMMENT
LOW…toPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c321COMMENT
LOW…toPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyCommon.c901COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptRsaBasic.c121 }COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c461 // Read DER-encoded X509 Certificate and Construct X509 object.COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c901 // signature BIT STRING }COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c21//COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c101/// serialNumber INTEGER,COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptTs.c321 goto _Exit;COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c141 ContentSize = (UINTN)(Asn1Byte & 0x7F);COMMENT
LOWCryptoPkg/Library/BaseCryptLib/Pk/CryptAuthenticode.c161 //COMMENT
LOW…kg/Library/BaseCryptLib/SysCall/RuntimeMemAllocation.c21// Definitions for Runtime Memory OperationsCOMMENT
LOWCryptoPkg/Library/Include/CrtLibSupport.h21#define ENGINESDIR ""COMMENT
LOWCryptoPkg/Library/Include/CrtLibSupport.h41// With GCC we would normally use SIXTY_FOUR_BIT_LONG, but MSVC needsCOMMENT
LOWCryptoPkg/Library/Include/CrtLibSupport.h61//COMMENT
LOWCryptoPkg/Library/Include/CrtLibSupport.h81//COMMENT
LOWCryptoPkg/Library/Include/CrtLibSupport.h441COMMENT
LOWCryptoPkg/Library/Include/CrtLibSupport.h461#define _byteswap_ushort SwapBytes16COMMENT
LOWCryptoPkg/Library/Include/CrtLibSupport.h481#ifndef UINT64_MAXCOMMENT
LOWCryptoPkg/Library/TlsLib/InternalTlsLib.h21#include <Library/PcdLib.h>COMMENT
LOW…kg/Library/MbedTlsLib/Include/mbedtls/mbedtls_config.h381// #define MBEDTLS_DES_ALTCOMMENT
LOW…kg/Library/MbedTlsLib/Include/mbedtls/mbedtls_config.h441 */COMMENT
LOW…kg/Library/MbedTlsLib/Include/mbedtls/mbedtls_config.h4041/* MPI / BIGNUM options */COMMENT
7385 more matches not shown…
Self-Referential Comments236 hits · 698 pts
SeverityFileLineSnippetContext
MEDIUMBaseTools/Source/Python/GenFds/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUMBaseTools/Source/Python/AmlToC/AmlToC.py35 # Define the possible arguments.STRING
MEDIUM…ls/Source/Python/FirmwareStorageFormat/PECOFFHeader.py2# This file is used to define the PECOFF Header C Struct.COMMENT
MEDIUM…eTools/Source/Python/FirmwareStorageFormat/__init__.py2# This file is used to define the Firmware Storage Format.COMMENT
MEDIUM…Tools/Source/Python/FirmwareStorageFormat/UPLHeader.py2# This file is used to define the UPL Header C Struct.COMMENT
MEDIUMBaseTools/Source/Python/FirmwareStorageFormat/Common.py2# This file is used to define the common C struct and functions.COMMENT
MEDIUM…eTools/Source/Python/FirmwareStorageFormat/FvHeader.py2# This file is used to define the FV Header C Struct.COMMENT
MEDIUM…s/Source/Python/FirmwareStorageFormat/FfsFileHeader.py2# This file is used to define the Ffs Header C Struct.COMMENT
MEDIUM…s/Source/Python/FirmwareStorageFormat/SectionHeader.py2# This file is used to define the Section Header C Struct.COMMENT
MEDIUMBaseTools/Source/Python/UPT/BuildVersion.py3# This file is for build version number auto generationCOMMENT
MEDIUMBaseTools/Source/Python/UPT/UPT.py3# This file is the main entry for UPTCOMMENT
MEDIUM…ols/Source/Python/UPT/UnitTest/InfBinarySectionTest.py262 # Create a temp file for test.COMMENT
MEDIUMBaseTools/Source/Python/UPT/Core/DependencyRules.py2# This file is for installed package information database operationsCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Core/DependencyRules.py35# This class represents the dependency rule check mechanismCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Core/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUM…ols/Source/Python/UPT/Core/DistributionPackageClass.py2# This file is used to define a class object to describe a distribution packageCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Core/IpiDb.py2# This file is for installed package information database operationsCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Core/IpiDb.py28# This class represents the installed package information databaseCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Core/IpiDb.py62 # Create a dummy table, if already existed,COMMENT
MEDIUMBaseTools/Source/Python/UPT/Logger/StringTable.py2# This file is used to define strings used in the UPT toolCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Logger/Log.py2# This file implements the log mechanism for Python tools.COMMENT
MEDIUMBaseTools/Source/Python/UPT/Logger/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/Misc.py147# This method is used to save file only when its content is changed. This isCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/GlobalData.py2# This file is used to define common static strings and global data used by UPTCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/Parsing.py2# This file is used to define common parsing related functions used in parsingCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/StringUtils.py2# This file is used to define common string related functions used in parsingCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/StringUtils.py188# Create a normal pathCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUM…eTools/Source/Python/UPT/Library/ExpressionValidate.py2# This file is used to check PCD logical expressionCOMMENT
MEDIUM…seTools/Source/Python/UPT/Library/CommentGenerating.py2# This file is used to define comment generating interfaceCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/DataType.py2# This file is used to define class for data type structureCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/CommentParsing.py2# This file is used to define comment parsing interfaceCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/Xml/XmlRoutines.py23## Create a element of XMLCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Library/Xml/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/InfAsBuiltProcess.py2# This file is used to provide method for process AsBuilt INF file. It will consumed by InfParserCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParserMisc.py2# This file is used to define helper class and function for DEC parserCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py2# This file is used to parse DEC file. It will consumed by DecParserCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/InfSectionParser.py218 # Initialize all objects that an INF file will generated.COMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/XmlParserMisc.py2# This file is used to parse a xml file of .PKG fileCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/CommonXml.py2# This file is used to parse a PCD file of .PKG fileCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/PcdXml.py2# This file is used to parse a PCD file of .PKG fileCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/GuidProtocolPpiXml.py2# This file is used to parse a xml file of .PKG fileCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/ModuleSurfaceAreaXml.py2# This file is used to parse a Module file of .PKG fileCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/XmlParser.py2# This file is used to parse a xml file of .PKG fileCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Xml/IniToXml.py2# This file is for converting package information data file to xml file.COMMENT
MEDIUM…seTools/Source/Python/UPT/Xml/PackageSurfaceAreaXml.py2# This file is used to parse a Package file of .PKG fileCOMMENT
MEDIUM…seTools/Source/Python/UPT/Xml/PackageSurfaceAreaXml.py155 # Create a package objectCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Object/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Object/POM/CommonObject.py2# This file is used to define common items of class objectCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Object/POM/__init__.py4# This file is required to make Python interpreter treat the directoryCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Object/POM/ModuleObject.py2# This file is used to define a class object to describe a moduleCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Object/POM/PackageObject.py2# This file is used to define a class object to describe a packageCOMMENT
MEDIUMBaseTools/Source/Python/UPT/Object/Parser/DecObject.py2# This file is used to define class objects for DEC file. It will consumed byCOMMENT
MEDIUM…Tools/Source/Python/UPT/Object/Parser/InfGuidObject.py2# This file is used to define class objects of INF file [Guids] section.COMMENT
MEDIUM…ols/Source/Python/UPT/Object/Parser/InfCommonObject.py2# This file is used to define common class objects for INF file.COMMENT
MEDIUM…ols/Source/Python/UPT/Object/Parser/InfSoucesObject.py2# This file is used to define class objects of INF file [Sources] section.COMMENT
MEDIUM…eTools/Source/Python/UPT/Object/Parser/InfPcdObject.py2# This file is used to define class objects of INF file [Pcds] section.COMMENT
MEDIUM…ols/Source/Python/UPT/Object/Parser/InfDefineObject.py2# This file is used to define class objects of [Defines] section for INF file.COMMENT
176 more matches not shown…
Deep Nesting792 hits · 680 pts
SeverityFileLineSnippetContext
LOWCryptoPkg/Library/OpensslLib/configure.py150CODE
LOWCryptoPkg/Library/OpensslLib/configure.py287CODE
LOWCryptoPkg/Library/OpensslLib/configure.py342CODE
LOWBaseTools/Edk2ToolsBuild.py145CODE
LOWBaseTools/Source/Python/GenFds/Capsule.py50CODE
LOWBaseTools/Source/Python/GenFds/DepexSection.py34CODE
LOWBaseTools/Source/Python/GenFds/DepexSection.py72CODE
LOWBaseTools/Source/Python/GenFds/Region.py76CODE
LOWBaseTools/Source/Python/GenFds/Region.py284CODE
LOWBaseTools/Source/Python/GenFds/FvImageSection.py50CODE
LOWBaseTools/Source/Python/GenFds/OptionRom.py43CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py152CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py496CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py558CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py686CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py874CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py1788CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py1973CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py2606CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py2701CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py2774CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py2976CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py3041CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py3099CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py3246CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py3608CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py3769CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4012CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4054CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4207CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4304CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4326CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4349CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4371CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py4412CODE
LOWBaseTools/Source/Python/GenFds/GuidSection.py53CODE
LOWBaseTools/Source/Python/GenFds/FfsFileStatement.py50CODE
LOWBaseTools/Source/Python/GenFds/Section.py110CODE
LOWBaseTools/Source/Python/GenFds/DataSection.py47CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py852CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py125CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py198CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py435CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py536CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py804CODE
LOWBaseTools/Source/Python/GenFds/Fv.py74CODE
LOWBaseTools/Source/Python/GenFds/Fv.py245CODE
LOWBaseTools/Source/Python/GenFds/Fv.py273CODE
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py77CODE
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py103CODE
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py179CODE
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py638CODE
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py759CODE
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py943CODE
LOWBaseTools/Source/Python/GenFds/AprioriSection.py49CODE
LOWBaseTools/Source/Python/GenFds/EfiSection.py52CODE
LOWBaseTools/Source/Python/GenFds/GenFds.py106CODE
LOWBaseTools/Source/Python/GenFds/GenFds.py557CODE
LOWBaseTools/Source/Python/GenFds/GenFds.py638CODE
LOWBaseTools/Source/Python/GenFds/Fd.py43CODE
732 more matches not shown…
Unused Imports578 hits · 567 pts
SeverityFileLineSnippetContext
LOWCryptoPkg/Library/OpensslLib/configure.py7CODE
LOWCryptoPkg/Library/OpensslLib/configure.py8CODE
LOWBaseTools/Source/Python/GenFds/Capsule.py13CODE
LOWBaseTools/Source/Python/GenFds/Ffs.py12CODE
LOWBaseTools/Source/Python/GenFds/DepexSection.py12CODE
LOWBaseTools/Source/Python/GenFds/DepexSection.py19CODE
LOWBaseTools/Source/Python/GenFds/DepexSection.py21CODE
LOWBaseTools/Source/Python/GenFds/CapsuleData.py12CODE
LOWBaseTools/Source/Python/GenFds/CapsuleData.py17CODE
LOWBaseTools/Source/Python/GenFds/CompressSection.py12CODE
LOWBaseTools/Source/Python/GenFds/CompressSection.py15CODE
LOWBaseTools/Source/Python/GenFds/CompressSection.py19CODE
LOWBaseTools/Source/Python/GenFds/Region.py12CODE
LOWBaseTools/Source/Python/GenFds/Region.py13CODE
LOWBaseTools/Source/Python/GenFds/Region.py16CODE
LOWBaseTools/Source/Python/GenFds/Region.py18CODE
LOWBaseTools/Source/Python/GenFds/Region.py20CODE
LOWBaseTools/Source/Python/GenFds/FvImageSection.py12CODE
LOWBaseTools/Source/Python/GenFds/FvImageSection.py16CODE
LOWBaseTools/Source/Python/GenFds/FvImageSection.py22CODE
LOWBaseTools/Source/Python/GenFds/FvImageSection.py23CODE
LOWBaseTools/Source/Python/GenFds/OptionRom.py12CODE
LOWBaseTools/Source/Python/GenFds/OptionRom.py14CODE
LOWBaseTools/Source/Python/GenFds/OptionRom.py19CODE
LOWBaseTools/Source/Python/GenFds/OptionRom.py21CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py13CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py14CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py15CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py18CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py21CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py23CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py24CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py28CODE
LOWBaseTools/Source/Python/GenFds/RuleComplexFile.py12CODE
LOWBaseTools/Source/Python/GenFds/RuleComplexFile.py13CODE
LOWBaseTools/Source/Python/GenFds/GuidSection.py13CODE
LOWBaseTools/Source/Python/GenFds/GuidSection.py15CODE
LOWBaseTools/Source/Python/GenFds/GuidSection.py21CODE
LOWBaseTools/Source/Python/GenFds/GuidSection.py23CODE
LOWBaseTools/Source/Python/GenFds/GuidSection.py26CODE
LOWBaseTools/Source/Python/GenFds/FfsFileStatement.py12CODE
LOWBaseTools/Source/Python/GenFds/UiSection.py12CODE
LOWBaseTools/Source/Python/GenFds/UiSection.py13CODE
LOWBaseTools/Source/Python/GenFds/UiSection.py15CODE
LOWBaseTools/Source/Python/GenFds/UiSection.py20CODE
LOWBaseTools/Source/Python/GenFds/Section.py12CODE
LOWBaseTools/Source/Python/GenFds/Section.py15CODE
LOWBaseTools/Source/Python/GenFds/Section.py17CODE
LOWBaseTools/Source/Python/GenFds/Section.py18CODE
LOWBaseTools/Source/Python/GenFds/DataSection.py12CODE
LOWBaseTools/Source/Python/GenFds/DataSection.py15CODE
LOWBaseTools/Source/Python/GenFds/DataSection.py19CODE
LOWBaseTools/Source/Python/GenFds/DataSection.py21CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py12CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py13CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py34CODE
LOWBaseTools/Source/Python/GenFds/Fv.py12CODE
LOWBaseTools/Source/Python/GenFds/Fv.py14CODE
LOWBaseTools/Source/Python/GenFds/Fv.py16CODE
LOWBaseTools/Source/Python/GenFds/Fv.py22CODE
518 more matches not shown…
Cross-File Repetition105 hits · 525 pts
SeverityFileLineSnippetContext
HIGHBaseTools/Edk2ToolsBuild.py0return tuple containing scopes that should be active for this processSTRING
HIGHOvmfPkg/PlatformCI/PlatformBuildLib.py0return tuple containing scopes that should be active for this processSTRING
HIGHUefiPayloadPkg/PlatformCI/PlatformBuild.py0return tuple containing scopes that should be active for this processSTRING
HIGHEmulatorPkg/PlatformCI/PlatformBuild.py0return tuple containing scopes that should be active for this processSTRING
HIGH.pytool/CISettings.py0return tuple containing scopes that should be active for this processSTRING
HIGHArmVirtPkg/PlatformCI/PlatformBuildLib.py0return tuple containing scopes that should be active for this processSTRING
HIGHBaseTools/Edk2ToolsBuild.py0get the logging level for a given type base == lowest logging level supported con == screen logging txt == plain text fiSTRING
HIGHOvmfPkg/PlatformCI/PlatformBuildLib.py0get the logging level for a given type base == lowest logging level supported con == screen logging txt == plain text fiSTRING
HIGHUefiPayloadPkg/PlatformCI/PlatformBuild.py0get the logging level for a given type base == lowest logging level supported con == screen logging txt == plain text fiSTRING
HIGHEmulatorPkg/PlatformCI/PlatformBuild.py0get the logging level for a given type base == lowest logging level supported con == screen logging txt == plain text fiSTRING
HIGHArmVirtPkg/PlatformCI/PlatformBuildLib.py0get the logging level for a given type base == lowest logging level supported con == screen logging txt == plain text fiSTRING
HIGHBaseTools/Source/Python/Common/VpdInfoFile.py0## @file # # this is auto-generated file by build tools and please do not make modification. # # this file lists all vpdSTRING
HIGHBaseTools/Source/Python/BPDG/StringTable.py0## @file # # this is auto-generated file by build tools and please do not make modification. # # this file lists all vpdSTRING
HIGHIntelFsp2Pkg/Tools/GenCfgOpt.py0## @file # # this is auto-generated file by build tools and please do not make modification. # # this file lists all vpdSTRING
HIGHBaseTools/Source/Python/Table/TableIdentifier.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableReport.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableFunction.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableDsc.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableDec.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TablePcd.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableFdf.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableInf.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableEotReport.py0insert into %s values(%s, %s, '%s', '%s', %s, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %s)STRING
HIGHBaseTools/Source/Python/Table/TableDsc.py0create table if not exists %s (id integer primary key, model integer not null, value1 varchar not null, value2 varchar, STRING
HIGHBaseTools/Source/Python/Table/TableDec.py0create table if not exists %s (id integer primary key, model integer not null, value1 varchar not null, value2 varchar, STRING
HIGHBaseTools/Source/Python/Table/TableFdf.py0create table if not exists %s (id integer primary key, model integer not null, value1 varchar not null, value2 varchar, STRING
HIGHBaseTools/Source/Python/Table/TableInf.py0create table if not exists %s (id integer primary key, model integer not null, value1 varchar not null, value2 varchar, STRING
HIGHBaseTools/Source/Python/Table/TableDsc.py0select id, value1, value2, value3, scope1, scope2, belongstoitem, belongstofile, startline from %s where model = %s and STRING
HIGHBaseTools/Source/Python/Table/TableDec.py0select id, value1, value2, value3, scope1, scope2, belongstoitem, belongstofile, startline from %s where model = %s and STRING
HIGHBaseTools/Source/Python/Table/TableInf.py0select id, value1, value2, value3, scope1, scope2, belongstoitem, belongstofile, startline from %s where model = %s and STRING
HIGHBaseTools/Source/Python/Table/TableFdf.py0select id, value1, value2, value3, scope1, scope2, belongstoitem, belongstofile, startline from %s where model = %s and STRING
HIGHOvmfPkg/PlatformCI/BhyveBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/IntelTdxBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/CloudHvBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/MicrovmBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/AmdSevBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/XenBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/QemuBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/PlatformBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHUefiPayloadPkg/PlatformCI/PlatformBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHEmulatorPkg/PlatformCI/PlatformBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHArmVirtPkg/PlatformCI/CloudHvBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHArmVirtPkg/PlatformCI/QemuKernelBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHArmVirtPkg/PlatformCI/QemuBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHArmVirtPkg/PlatformCI/KvmToolBuild.py0common settings for this platform. define static data here and use for the different parts of stuartSTRING
HIGHOvmfPkg/PlatformCI/BhyveBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/IntelTdxBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/CloudHvBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/MicrovmBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/AmdSevBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/XenBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/QemuBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/PlatformBuild.py0return the dsc given the architectures requested. archcsv: csv string containing all architectures to buildSTRING
HIGHOvmfPkg/PlatformCI/PlatformBuildLib.py0return iterable of edk2 packages supported by this build. these should be edk2 workspace relative pathsSTRING
HIGHUefiPayloadPkg/PlatformCI/PlatformBuild.py0return iterable of edk2 packages supported by this build. these should be edk2 workspace relative pathsSTRING
HIGHEmulatorPkg/PlatformCI/PlatformBuild.py0return iterable of edk2 packages supported by this build. these should be edk2 workspace relative pathsSTRING
HIGH.pytool/CISettings.py0return iterable of edk2 packages supported by this build. these should be edk2 workspace relative pathsSTRING
HIGHArmVirtPkg/PlatformCI/PlatformBuildLib.py0return iterable of edk2 packages supported by this build. these should be edk2 workspace relative pathsSTRING
HIGHOvmfPkg/PlatformCI/PlatformBuildLib.py0return iterable of edk2 architectures supported by this buildSTRING
HIGHUefiPayloadPkg/PlatformCI/PlatformBuild.py0return iterable of edk2 architectures supported by this buildSTRING
45 more matches not shown…
Cross-Language Confusion28 hits · 150 pts
SeverityFileLineSnippetContext
HIGHBaseTools/Source/Python/Workspace/DscBuildData.py2119 CApp = CApp + ' memcpy (&%s, Value, (FieldSize > 0 && FieldSize < %d) ? FieldSize : %d);\n' % (indiSTRING
HIGHBaseTools/Source/Python/Workspace/DscBuildData.py2284 CApp = CApp + ' memcpy (&%s, Value, (FieldSize > 0 && FieldSize < %d) ? FieldSize : %d);\n' % (STRING
HIGHBaseTools/Source/Python/Workspace/DscBuildData.py2353 CApp = CApp + ' memcpy (&Pcd->%s, Value, (FieldSize > 0 && FieldSize < %d) ? FieldSize : %d);\n' % STRING
HIGHBaseTools/Source/Python/Workspace/DscBuildData.py2422 CApp = CApp + ' memcpy (&Pcd->%s, Value, (FieldSize > 0 && FieldSize < %d) ? FieldSize : %d);\nSTRING
HIGHBaseTools/Source/Python/Workspace/DscBuildData.py2490 CApp = CApp + ' memcpy (&Pcd->%s, Value, (FieldSize > 0 && FieldSize < %d) ? FieldSize : %d);\n' % STRING
HIGHBaseTools/Source/Python/Common/RangeExpression.py251 rangeContainer.push(RangeObject(0, 0, True))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py254 rangeContainer.push(RangeObject(0, 0, True))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py257 rangeContainer.push(RangeObject(end1, end1))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py260 rangeContainer.push(RangeObject(start2, end1))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py263 rangeContainer.push(RangeObject(start2, end2))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py297 rangeContainer.push(RangeObject(0, MAX_VAL_TYPE[self.PcdDataType]))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py300 rangeContainer.push(RangeObject(0, rangeobj.start - 1))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py302 rangeContainer.push(RangeObject(rangeobj.end + 1, MAX_VAL_TYPE[self.PcdDataType]))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py308 rangeContainer.push(RangeObject(0, MAX_VAL_TYPE[self.PcdDataType]))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py100 rangeContainer.push(RangeObject(0, int(Operand) - 1))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py101 rangeContainer.push(RangeObject(int(Operand) + 1, MAX_VAL_TYPE[DataType]))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py114 rangeContainer.push(RangeObject(0, int(Operand)))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py126 rangeContainer.push(RangeObject(0, int(Operand) - 1))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py139 rangeContainer.push(RangeObject(int(Operand), MAX_VAL_TYPE[DataType]))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py152 rangeContainer.push(RangeObject(int(Operand) + 1, MAX_VAL_TYPE[DataType]))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py165 rangeContainer.push(RangeObject(int(Operand), int(Operand)))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py220 rangeContainer.push(RangeObject(start, end))CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py276 rangeContainer.push(rangeobj)CODE
HIGHBaseTools/Source/Python/Common/RangeExpression.py278 rangeContainer.push(rangeobj)CODE
HIGHBaseTools/Source/Python/AutoGen/GenMake.py165 POSIX_PLATFORM : "test -e %(dir)s && cd %(dir)s"STRING
HIGH.github/scripts/validate_pr_formatting.py15# - Ensures the PR body is not empty, null, or whitespace-onlyCOMMENT
HIGHIntelFsp2Pkg/Tools/PatchFv.py59 if not OffsetList[0] or not OffsetList[1]: # If 'FSPH' or 'FSPP' is missing, it will return falseCODE
HIGHIntelFsp2Pkg/Tools/PatchFv.py69 return False # If FSP v1.1 or greater without 'FSPE', then return falseCODE
Excessive Try-Catch Wrapping136 hits · 147 pts
SeverityFileLineSnippetContext
MEDIUMBaseTools/Source/Python/GenFds/FdfParser.py1312def ParseFile(self):CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py891 except Exception as Excpt:CODE
LOWBaseTools/Source/Python/GenFds/FdfParser.py1775 except Exception:CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py726 except Exception as X:CODE
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py164 except Exception:CODE
LOWBaseTools/Source/Python/Split/Split.py71 except Exception as e:STRING
LOWBaseTools/Source/Python/Split/Split.py89 except Exception as e:STRING
LOWBaseTools/Source/Python/Split/Split.py145 except Exception as e:STRING
LOWBaseTools/Source/Python/Split/Split.py176 except Exception as e:STRING
LOWBaseTools/Source/Python/Split/Split.py203 except Exception as e:STRING
LOWBaseTools/Source/Python/AmlToC/AmlToC.py132 except Exception as e:STRING
LOWBaseTools/Source/Python/UPT/UPT.py307 except Exception:CODE
LOWBaseTools/Source/Python/UPT/TestInstall.py70 except Exception as x:CODE
LOWBaseTools/Source/Python/UPT/Library/StringUtils.py742 except Exception:CODE
LOWBaseTools/Source/Python/Capsule/GenerateCapsule.py682 except Exception as Msg:CODE
LOWBaseTools/Source/Python/Capsule/GenerateCapsule.py729 except Exception as Msg:CODE
LOWBaseTools/Source/Python/Capsule/GenerateCapsule.py813 except Exception as Msg:CODE
LOWBaseTools/Source/Python/Capsule/GenerateCapsule.py937 except Exception as Msg:CODE
LOWBaseTools/Source/Python/Capsule/GenerateCapsule.py953 except Exception as Msg:CODE
LOWBaseTools/Source/Python/Capsule/GenerateCapsule.py990 except Exception as Msg:CODE
MEDIUMBaseTools/Source/Python/Capsule/GenerateCapsule.py288def ValidateUnsignedInteger (Argument):CODE
LOWBaseTools/Source/Python/FMMT/FMMT.py156 except Exception as e:STRING
LOWBaseTools/Source/Python/FMMT/core/GuidTools.py47 except Exception as msg:CODE
LOWBaseTools/Source/Python/FMMT/core/GuidTools.py80 except Exception as msg:CODE
LOWBaseTools/Source/Python/Workspace/DscBuildData.py2108 except Exception:STRING
LOWBaseTools/Source/Python/Workspace/DscBuildData.py2273 except Exception:STRING
LOWBaseTools/Source/Python/Workspace/DscBuildData.py2342 except Exception:STRING
LOWBaseTools/Source/Python/Workspace/DscBuildData.py2411 except Exception:STRING
LOWBaseTools/Source/Python/Workspace/DscBuildData.py2479 except Exception:STRING
LOWBaseTools/Source/Python/Workspace/MetaFileTable.py55 except Exception as Exc:CODE
LOWBaseTools/Source/Python/Workspace/MetaFileTable.py265 except Exception as Exc:STRING
MEDIUMBaseTools/Source/Python/Workspace/MetaFileParser.py1513def __RetrievePcdValue(self):CODE
LOWBaseTools/Source/Python/Workspace/MetaFileParser.py1721 except Exception:CODE
LOWBaseTools/Source/Python/tests/Split/test_split.py37 except Exception as e:CODE
LOWBaseTools/Source/Python/tests/Split/test_split.py74 except Exception as e:CODE
LOWBaseTools/Source/Python/tests/Split/test_split.py107 except Exception as e:CODE
LOWBaseTools/Source/Python/Trim/Trim.py302 except Exception:CODE
LOWBaseTools/Source/Python/Trim/Trim.py309 except Exception as e:CODE
LOWBaseTools/Source/Python/Common/EdkLogger.py96 except Exception:CODE
LOWBaseTools/Source/Python/Common/Misc.py1109 except Exception as X:CODE
LOWBaseTools/Source/Python/Common/Misc.py1748 except Exception:CODE
LOWBaseTools/Source/Python/Common/VpdInfoFile.py243 except Exception as X:CODE
LOWBaseTools/Source/Python/Common/Expression.py320 except Exception as Excpt:CODE
LOWBaseTools/Source/Python/Common/Expression.py1055 except Exception as Ex:CODE
LOWBaseTools/Source/Python/TargetTool/TargetTool.py251 except Exception as e:CODE
LOW…s/Source/Python/Ecc/MetaFileWorkspace/MetaDataTable.py96 except Exception as e:CODE
MEDIUM…s/Source/Python/Ecc/MetaFileWorkspace/MetaDataTable.py97 print("An error occurred when Drop a table:", e.args[0])CODE
LOW…/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py1973 except Exception:CODE
LOWBaseTools/Source/Python/Ecc/Xml/XmlRoutines.py166 except Exception as X:CODE
MEDIUMBaseTools/Source/Python/Ecc/Xml/XmlRoutines.py129def XmlElement(Dom, String):CODE
LOWBaseTools/Source/Python/AutoGen/GenPcdDb.py1145 except Exception:STRING
LOWBaseTools/Source/Python/AutoGen/AutoGenWorker.py127 except Exception:CODE
LOWBaseTools/Source/Python/AutoGen/AutoGenWorker.py299 except Exception as e:CODE
MEDIUMBaseTools/Source/Python/AutoGen/AutoGenWorker.py106def run(self):CODE
MEDIUMBaseTools/Source/Python/AutoGen/AutoGenWorker.py167def GetPlatformMetaFile(self,filepath,root):CODE
LOWBaseTools/Source/Python/AutoGen/IncludesAutoGen.py70 except Exception as e:STRING
LOWBaseTools/Source/Python/AutoGen/IncludesAutoGen.py122 except Exception as e:CODE
LOWBaseTools/Source/Python/AutoGen/IncludesAutoGen.py273 except Exception as e:CODE
LOWBaseTools/Source/Python/AutoGen/IncludesAutoGen.py302 except Exception as e:CODE
LOWBaseTools/Source/Python/AutoGen/ModuleAutoGen.py1848 except Exception as e:STRING
76 more matches not shown…
Redundant / Tautological Comments87 hits · 126 pts
SeverityFileLineSnippetContext
LOWBaseTools/Source/Python/GenFds/FdfParser.py2953 # Check if file exists or not:COMMENT
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py404 ## Check if the input files are newer than output filesCOMMENT
LOWBaseTools/Source/Python/GenFds/FfsInfStatement.py111 # Check if current INF module has DEPEXCOMMENT
LOWBaseTools/Source/Python/UPT/MkPkg.py51# Check if there is a same name DP file existingCOMMENT
LOWBaseTools/Source/Python/UPT/RmPkg.py37# Check if the Depex is satisfiedCOMMENT
LOWBaseTools/Source/Python/UPT/InstallPkg.py347# Check if protocol CName is redefinedCOMMENT
LOWBaseTools/Source/Python/UPT/InstallPkg.py363# Check if Ppi CName is redefinedCOMMENT
LOWBaseTools/Source/Python/UPT/InstallPkg.py378# Check if Guid CName is redefinedCOMMENT
LOWBaseTools/Source/Python/UPT/InstallPkg.py394# Check if PcdName is redefinedCOMMENT
LOWBaseTools/Source/Python/UPT/InstallPkg.py418# Check if any Protocol/Ppi/Guid and Pcd name is redefined in its dependent DEC filesCOMMENT
LOWBaseTools/Source/Python/UPT/UnitTest/DecParserTest.py61 # Close fileCOMMENT
LOWBaseTools/Source/Python/UPT/Core/FileHook.py145 # Check if path needs to be hookedCOMMENT
LOWBaseTools/Source/Python/UPT/Core/PackageFile.py243 ## Close fileCOMMENT
LOWBaseTools/Source/Python/UPT/Library/Misc.py239## Check if given file exists or notCOMMENT
LOWBaseTools/Source/Python/UPT/Library/Misc.py926 # Check if the suffix is one of the '.uni', '.UNI', '.Uni'COMMENT
LOWBaseTools/Source/Python/UPT/Library/Misc.py935 # Check if '..' in the file name(without suffix)COMMENT
LOWBaseTools/Source/Python/UPT/Library/Misc.py944 # Check if the file name is valid according to the DEC and INF specificationCOMMENT
LOWBaseTools/Source/Python/UPT/Library/UniClassObject.py484 # Check if single line has correct '"'COMMENT
LOWBaseTools/Source/Python/UPT/Library/Parsing.py70# Check if PcdTokenInfo is following <TokenSpaceGuidCName>.<PcdCName>COMMENT
LOWBaseTools/Source/Python/UPT/Library/StringUtils.py313# Check if the Filename is including ExtNameCOMMENT
LOWBaseTools/Source/Python/UPT/Library/StringUtils.py340# Check if the file existsCOMMENT
LOWBaseTools/Source/Python/UPT/Library/StringUtils.py502## Check if the string is HexDgit and its integer value within limit of UINT32COMMENT
LOWBaseTools/Source/Python/UPT/Library/StringUtils.py697## Check if two arches matched?COMMENT
LOW…eTools/Source/Python/UPT/Library/ExpressionValidate.py21# Check if String is comprised by whitespace(0x20), !(0x21), 0x23 - 0x7ECOMMENT
LOWBaseTools/Source/Python/UPT/Library/ParserValidate.py174# Check if pattern string matches total tokenCOMMENT
LOWBaseTools/Source/Python/UPT/Library/ParserValidate.py185# Check if path existCOMMENT
LOWBaseTools/Source/Python/UPT/Library/ParserValidate.py236# Check if an install path valid or not.COMMENT
LOWBaseTools/Source/Python/UPT/Library/ParserValidate.py262# Check if GUID format has the from of {8,4,4,{2,2,2,2,2,2,2,2}}COMMENT
LOWBaseTools/Source/Python/UPT/Library/ParserValidate.py305 # Check if string can be converted to integerCOMMENT
LOWBaseTools/Source/Python/UPT/Parser/InfParser.py451 # Check if the ModuleType is validCOMMENT
LOWBaseTools/Source/Python/UPT/Parser/DecParserMisc.py134# Check if Token is NumValUint8: <NumValUint8> ::= {<ShortNum>} {<UINT8>} {<Expression>}COMMENT
LOWBaseTools/Source/Python/UPT/Parser/DecParserMisc.py162# Check if Value has the format of <NumValUint8> ["," <NumValUint8>]{0,}COMMENT
LOWBaseTools/Source/Python/UPT/Parser/DecParser.py375 # Check if this comment belongs to tail commentCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/XmlParserMisc.py59# Check if a required XML section item/attribue is NULLCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/XmlParser.py58 # Check if any required item is missing in DistributionPackageCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/XmlParser.py318# Check if any required item is missing in ModuleSurfaceAreaCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/XmlParser.py330# Check if any required item is missing in ModuleSurfaceAreaCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/XmlParser.py453# Check if any required item is missing in ModuleSurfaceAreaCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/XmlParser.py622# Check if any required item is missing in ModuleSurfaceAreaCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/XmlParser.py920# Check if any required item is missing in PackageSurfaceAreaCOMMENT
LOWBaseTools/Source/Python/UPT/Xml/IniToXml.py144 # Check if all elements in this section are emptyCOMMENT
LOWBaseTools/Source/Python/FMMT/core/BiosTreeNode.py345 # Check if Data is validCOMMENT
LOWBaseTools/Source/Python/FMMT/core/BiosTreeNode.py374 # Check if Data is validCOMMENT
LOWBaseTools/Source/Python/Workspace/DscBuildData.py2835 # Check if the StructuredPcdsData.json exists or notSTRING
LOWBaseTools/Source/Python/Workspace/MetaFileParser.py316 # Check if the section name is validCOMMENT
LOWBaseTools/Source/Python/Common/Parsing.py284# Check if PcdTokenInfo is following <TokenSpaceGuidCName>.<PcdCName>COMMENT
LOWBaseTools/Source/Python/Common/StringUtils.py623# Check if the Filename is including ExtNameCOMMENT
LOWBaseTools/Source/Python/Common/StringUtils.py650# Check if the file existsCOMMENT
LOWBaseTools/Source/Python/Common/Expression.py217 # Check if current token matches the operators given from parameterCOMMENT
LOW…Source/Python/Common/Uefi/Capsule/CapsuleDependency.py191 # Check if priority of current operater is greater than pervious opCOMMENT
LOWBaseTools/Source/Python/Ecc/Configuration.py184 # Check if there is no trailing white space in one line.COMMENT
LOWBaseTools/Source/Python/Ecc/Configuration.py360 # Check if the EFI_SMM_COMMUNICATION_PROTOCOL parameter buffer type is Reserved / ACPI NVS or UEFI RT code/dataCOMMENT
LOWBaseTools/Source/Python/Ecc/Check.py46 # Check if SMM communication function has correct parameter typeCOMMENT
LOWBaseTools/Source/Python/Ecc/Check.py224 # Check if there is no trailing white space in one line.COMMENT
LOWBaseTools/Source/Python/Ecc/config.ini69# Check if there is no trailing white space in one line.COMMENT
LOWBaseTools/Source/Python/Ecc/config.ini260# Check if the EFI_SMM_COMMUNICATION_PROTOCOL parameter buffer type is Reserved / ACPI NVS or UEFI RT code/dataCOMMENT
LOWBaseTools/Source/Python/AutoGen/UniClassObject.py284 # Read fileCOMMENT
LOWBaseTools/Source/Python/AutoGen/GenMake.py955 # Check if header files are listed in metafileCOMMENT
LOWBaseTools/Source/Python/AutoGen/GenMake.py997 # Check if a module dependency header file is missing from the module's MetaFileCOMMENT
LOWBaseTools/Source/Python/AutoGen/ModuleAutoGen.py399 ## Check if the module is library or notSTRING
27 more matches not shown…
Verbosity Indicators64 hits · 94 pts
SeverityFileLineSnippetContext
LOWNetworkPkg/Library/DxeNetLib/DxeNetLib.c3377 // Step 1: Skip over formatted section.COMMENT
LOWNetworkPkg/Library/DxeNetLib/DxeNetLib.c3382 // Step 2: Skip over unformatted string section.COMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c49 // Step 1: Three duplicate ACKs and not in fast recoveryCOMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c64 // Step 2: Entering fast retransmissionCOMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c83 // Step 3: Fast Recovery,COMMENT
LOWUefiCpuPkg/Library/MtrrLib/MtrrLib.c846 // So, we need to check if TME is enabled and adjust the PA size accordingly.COMMENT
LOWMdePkg/Include/Library/UnitTestLib.h112 skipped. The purpose of this function is to clean up any global state orCODE
LOWMdePkg/Include/Library/UnitTestLib.h139 The purpose of this function is to set up any global state or test data.CODE
LOWMdePkg/Include/Library/UnitTestLib.h153 The purpose of this function is to clean up any global state or test data.CODE
LOWRedfishPkg/RedfishHttpDxe/RedfishHttpOperation.c280 // Step 1: build the HTTP headers.COMMENT
LOWRedfishPkg/RedfishHttpDxe/RedfishHttpOperation.c435 // Step 2: build the rest of HTTP request info.COMMENT
LOWRedfishPkg/RedfishHttpDxe/RedfishHttpOperation.c446 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c763 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c772 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c955 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c964 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1355 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1364 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c473 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c501 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c513 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c528 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c554 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c668 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c715 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c727 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c868 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c907 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c919 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1067 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1110 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1121 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1137 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1150 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1173 // Step 6: Parsing the HttpHeader to retrieve the X-Auth-Token if the HTTP StatusCode is correct.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1279 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1323 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1335 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW.github/scripts/RequestPrReviewers.py46 # Step 1: Get the GitHub created PR commit SHA (contains all changes in a single commit)COMMENT
LOW.github/scripts/RequestPrReviewers.py60 # Step 2: Fetch only the PR commit to get the files changed in the PRCOMMENT
LOW.github/scripts/RequestPrReviewers.py63 # Step 3: Get the list of reviewers for the PRCOMMENT
LOW.github/scripts/RequestPrReviewers.py76 # Step 4: Add the reviewers to the PRCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c191 // Step 0: Sanity check for input argumentCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c197 // Step 1: Grab the common buffer headerCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c204 // Step 2: Grab one that is large enough to hold TPM_NVS_MM_COMM_BUFFER, the IPL one should be sufficientCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c224 // Step 3: Start to populate contentsCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c237 // Step 4: Locate the protocol and signal Mmi.COMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c247 // Step 5: If everything goes well, populate the channel numberCOMMENT
LOW…/Library/SecureBootVariableLib/SecureBootVariableLib.c624 // Step 1: Notify that a PK update is coming shortly...COMMENT
LOW…/Library/SecureBootVariableLib/SecureBootVariableLib.c633 // Step 2: Attempt to delete the PK.COMMENT
LOW…/Library/SecureBootVariableLib/SecureBootVariableLib.c649 // Step 3: Attempt to delete remaining keys/databases...COMMENT
LOWMdeModulePkg/Core/Dxe/Mem/HeapGuard.c907 The purpose of this function is to keep the shared Guard page with adjacentCODE
LOWMdeModulePkg/Core/Dxe/Mem/HeapGuard.h256 The purpose of this function is to keep the shared Guard page with adjacentCODE
LOWMdeModulePkg/Core/PiSmmCore/HeapGuard.c818 The purpose of this function is to keep the shared Guard page with adjacentCODE
LOWMdeModulePkg/Core/PiSmmCore/HeapGuard.h216 The purpose of this function is to keep the shared Guard page with adjacentCODE
LOWMdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c1657 // Step 1: Skip over formatted section.COMMENT
LOWMdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c1662 // Step 2: Skip over unformatted string section.COMMENT
LOWMdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c2178 // Step 1:COMMENT
LOWMdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c2195 // Step 2:COMMENT
LOW…odulePkg/Library/VariablePolicyLib/VariablePolicyLib.c244 // Step 1: If the GUID doesn't match, we're done. No need to evaluate anything else.COMMENT
4 more matches not shown…
Decorative Section Separators21 hits · 90 pts
SeverityFileLineSnippetContext
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py294 #======================================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py296 #======================================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py302 #======================================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py304 #======================================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py309 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py311 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py319 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py321 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py326 #==========================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py328 #==========================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py338 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py340 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py344 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py346 #==============================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py355 #==========================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py358 #==========================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py374 #==========================================================COMMENT
MEDIUMBaseTools/Source/Python/UPT/Parser/DecParser.py376 #==========================================================COMMENT
MEDIUMBaseTools/Tests/TestGenFvXip.py772 # ===================================================================COMMENT
MEDIUMBaseTools/Tests/TestGenFvXip.py774 # ===================================================================COMMENT
MEDIUMIntelFsp2Pkg/Tools/ConfigEditor/SingleSign.py18 # =================================================================COMMENT
Structural Annotation Overuse58 hits · 89 pts
SeverityFileLineSnippetContext
LOWArmPkg/Library/FmpDevicePsaFwuLib/FmpDevicePsaFwuLib.c530 // NOTE: This method of using a PCD can only be used for the system firmwareCOMMENT
LOWArmPkg/Library/FmpDevicePsaFwuLib/FmpDevicePsaFwuLib.c579 // NOTE: This method of using a PCD can only be used for the system firmwareCOMMENT
LOWArmPkg/Library/FmpDevicePsaFwuLib/FmpDevicePsaFwuLib.c623 // NOTE: This method of using a PCD can only be used for the system firmwareCOMMENT
LOWNetworkPkg/Library/DxeNetLib/DxeNetLib.c3377 // Step 1: Skip over formatted section.COMMENT
LOWNetworkPkg/Library/DxeNetLib/DxeNetLib.c3382 // Step 2: Skip over unformatted string section.COMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c49 // Step 1: Three duplicate ACKs and not in fast recoveryCOMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c64 // Step 2: Entering fast retransmissionCOMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c83 // Step 3: Fast Recovery,COMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c104 // Step 5 - Full ACK:COMMENT
LOWNetworkPkg/TcpDxe/TcpInput.c120 // Step 5 - Partial ACK:COMMENT
LOWBaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c3913 /* ###WARNING: This will have to change when SetWordSize changes */COMMENT
LOWBaseTools/Source/C/VfrCompile/Pccts/antlr/gen.c4127 /* ###WARNING: This will have to change when SetWordSize changes */COMMENT
LOWRedfishPkg/RedfishHttpDxe/RedfishHttpOperation.c280 // Step 1: build the HTTP headers.COMMENT
LOWRedfishPkg/RedfishHttpDxe/RedfishHttpOperation.c435 // Step 2: build the rest of HTTP request info.COMMENT
LOWRedfishPkg/RedfishHttpDxe/RedfishHttpOperation.c446 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c763 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c772 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c955 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c964 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1355 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1364 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c473 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c501 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c513 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c528 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c554 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c668 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c715 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c727 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c868 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c907 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c919 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1067 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1110 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1121 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1137 // Step 4: call RESTEx to get response from REST service.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1150 // Step 5: Return the HTTP StatusCode and Body message.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1173 // Step 6: Parsing the HttpHeader to retrieve the X-Auth-Token if the HTTP StatusCode is correct.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1279 // Step 1: Create HTTP request message with 4 headers:COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1323 // Step 2: build the rest of HTTP request info.COMMENT
LOW…PrivateLibrary/RedfishLib/edk2libredfish/src/service.c1335 // Step 3: fill in EFI_HTTP_MESSAGECOMMENT
LOW.github/scripts/RequestPrReviewers.py46 # Step 1: Get the GitHub created PR commit SHA (contains all changes in a single commit)COMMENT
LOW.github/scripts/RequestPrReviewers.py60 # Step 2: Fetch only the PR commit to get the files changed in the PRCOMMENT
LOW.github/scripts/RequestPrReviewers.py63 # Step 3: Get the list of reviewers for the PRCOMMENT
LOW.github/scripts/RequestPrReviewers.py76 # Step 4: Add the reviewers to the PRCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c191 // Step 0: Sanity check for input argumentCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c197 // Step 1: Grab the common buffer headerCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c204 // Step 2: Grab one that is large enough to hold TPM_NVS_MM_COMM_BUFFER, the IPL one should be sufficientCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c224 // Step 3: Start to populate contentsCOMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c237 // Step 4: Locate the protocol and signal Mmi.COMMENT
LOWSecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.c247 // Step 5: If everything goes well, populate the channel numberCOMMENT
LOW…/Library/SecureBootVariableLib/SecureBootVariableLib.c624 // Step 1: Notify that a PK update is coming shortly...COMMENT
LOW…/Library/SecureBootVariableLib/SecureBootVariableLib.c633 // Step 2: Attempt to delete the PK.COMMENT
LOW…/Library/SecureBootVariableLib/SecureBootVariableLib.c649 // Step 3: Attempt to delete remaining keys/databases...COMMENT
LOWMdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c1657 // Step 1: Skip over formatted section.COMMENT
LOWMdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.c1662 // Step 2: Skip over unformatted string section.COMMENT
LOW…odulePkg/Library/VariablePolicyLib/VariablePolicyLib.c244 // Step 1: If the GUID doesn't match, we're done. No need to evaluate anything else.COMMENT
LOW…ry/ImagePropertiesRecordLib/ImagePropertiesRecordLib.c1043 // Step 1: record whole regionCOMMENT
Hyper-Verbose Identifiers64 hits · 60 pts
SeverityFileLineSnippetContext
LOWBaseTools/Source/Python/FMMT/core/FvHandler.py809 def _rebase_subsequent_ffs_in_current_fv(self):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py1326 def struct_or_union_specifier(self):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py1556 def struct_or_union_specifier(self):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py2986 def direct_abstract_declarator(self):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py3053 def abstract_declarator_suffix(self, i:int=None):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py3074 def direct_abstract_declarator(self):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py3147 def abstract_declarator_suffix(self):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py3412 def multiplicative_expression(self, i:int=None):CODE
LOWBaseTools/Source/Python/Ecc/CParser4/CParser.py3505 def multiplicative_expression(self):CODE
LOWBaseTools/Source/Python/Eot/CParser3/CParser.py1486 def struct_or_union_specifier(self, ):CODE
LOWBaseTools/Source/Python/Eot/CParser3/CParser.py4234 def direct_abstract_declarator(self, ):CODE
LOWBaseTools/Source/Python/Eot/CParser3/CParser.py4585 def abstract_declarator_suffix(self, ):CODE
LOWBaseTools/Source/Python/Eot/CParser3/CParser.py5027 def multiplicative_expression(self, ):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py1478 def struct_or_union_specifier(self):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py1724 def struct_or_union_specifier(self):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py3248 def direct_abstract_declarator(self):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py3320 def abstract_declarator_suffix(self, i:int=None):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py3347 def direct_abstract_declarator(self):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py3425 def abstract_declarator_suffix(self):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py3704 def multiplicative_expression(self, i:int=None):CODE
LOWBaseTools/Source/Python/Eot/CParser4/CParser.py3808 def multiplicative_expression(self):CODE
LOWBaseTools/Source/C/Makefiles/GnuMakeUtils.py188def _get_mingw_target_architecture():CODE
LOWBaseTools/Tests/TestGenFvXip.py161 def test_determine_xip_enabled(self) -> None:CODE
LOWBaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py368def check_macros_in_directory(directory: PurePath,CODE
LOWBaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py421 def _show_file_discovered_message(file_count: int,CODE
LOWBaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py600def _module_invocation_check_macros_in_directory_wrapper() -> int:CODE
LOWBaseTools/Plugin/CodeQL/CodeQlVersionUpdate.py98def fetch_latest_codeql_version() -> str:CODE
LOWBaseTools/Plugin/CodeQL/CodeQlVersionUpdate.py143def fetch_cpp_queries_version(codeql_version: str) -> str:CODE
LOWBaseTools/Plugin/CodeQL/integration/stuart_codeql.py54def is_codeql_enabled_on_command_line(args: Namespace) -> bool:CODE
LOWBaseTools/Scripts/efi_debugging.py1801 def _get_system_table_pointer(self):CODE
LOWBaseTools/Scripts/PatchCheck.py772 def read_files_modified_from_git(self, commit, filter):STRING
LOWBaseTools/Scripts/PatchCheck.py781 def read_commit_list_from_git(self, rev_spec, max_count):STRING
LOWBaseTools/Scripts/PatchCheck.py795 def read_committer_email_address_from_git(self, commit):STRING
LOW.github/scripts/validate_pr_formatting.py181 def post_validation_comment_with_dedup(self) -> bool:CODE
LOW.github/scripts/validate_pr_formatting.py249def post_validation_comment_standalone():CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py200 def _initialize_configuration(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py209 def _check_for_preexisting_formatted_files(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py223 def _cleanup_temporary_directory(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py232 def _cleanup_temporary_formatted_files(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py246 def _create_temp_working_directory(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py259 def _create_uncrustify_file_list_file(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py287 def _get_files_ignored_in_config(self):CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py361 def _get_template_file_contents(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py437 def _initialize_config_file_info(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py454 def _initialize_environment_info(self, package_rel_path: str, edk2_path: Edk2Path, package_config: Dict[str, List[stCODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py469 def _initialize_file_to_format_info(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py539 def _initialize_test_case_output_options(self) -> None:CODE
LOW.pytool/Plugin/UncrustifyCheck/UncrustifyCheck.py563 def _process_uncrustify_results(self) -> None:CODE
LOW…rary/DxeImageVerificationLib/DxeImageVerificationLib.c283 its caller function DxeImageVerificationHandler().CODE
LOWIntelFsp2Pkg/Tools/FspDscBsf2Yaml.py50 def load_config_data_from_dsc(self, file_name):STRING
LOWIntelFsp2Pkg/Tools/ConfigEditor/GenYamlCfg.py1844 def generate_delta_file_from_bin(self, delta_file, old_data,STRING
LOWIntelFsp2Pkg/Tools/ConfigEditor/GenYamlCfg.py2239 def write_fsp_sig_header_file(self, hdr_file_name):STRING
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1060 def update_visibility_for_widget(self, widget, args):CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1103 def update_widgets_visibility_on_page(self):CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1144 def on_config_page_select_change(self, event):CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1472 def reload_config_data_from_bin(self, bin_dat):CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1506 def get_config_data_item_from_widget(self, widget, label=False):CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1522 def update_config_data_from_widget(self, widget, args):CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1546 def update_vfr_config_data_from_widget(self, widget, args):CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/ConfigEditor.py1762 def update_config_data_on_page(self):CODE
4 more matches not shown…
AI Slop Vocabulary17 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMBaseTools/Source/Python/GenFds/FdfParser.py124 # helper functions to facilitate consistency in warningsCOMMENT
LOWBaseTools/Source/Python/GenFds/GenFds.py190 # Get alternate Conf location, if it is absolute, then just use the absolute directory nameCOMMENT
LOW…eTools/Source/Python/UPT/PomAdapter/InfPomAlignment.py265 # Only one define section, so just call once.COMMENT
LOWBaseTools/Source/Python/FMMT/core/FMMTParser.py35 # If current node do not have Header, just add Data.COMMENT
LOWBaseTools/Source/Python/FMMT/core/FMMTParser.py51 # If current node do not have Child and ExtHeader, just add its Header and Data.COMMENT
LOWBaseTools/Source/Python/Workspace/WorkspaceDatabase.py98 # if it's generated before, just return the cached oneCOMMENT
MEDIUMBaseTools/Source/Python/Common/EdkLogger.py15# not be used in advertising or publicity pertaining to distributionCOMMENT
LOWBaseTools/Source/Python/Common/TargetTxtClassObject.py170 # Get alternate Conf location, if it is absolute, then just use the absolute directory nameCOMMENT
LOWBaseTools/Source/Python/AutoGen/ModuleAutoGenHelper.py71 # if it exists, just return it directlyCOMMENT
LOWBaseTools/Source/Python/AutoGen/AutoGen.py41 # if it exists, just return it directlyCOMMENT
MEDIUMBaseTools/Source/C/VfrCompile/Pccts/h/ATokPtr.h41// robust in that an unused ANTLRTokenPtr can point to NULL.COMMENT
LOWBaseTools/Scripts/efi_gdb.py253 # then we could just use uuid.UUID() to convertCOMMENT
MEDIUM…tInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.c75 // mPciSegments is global data that will be updated with the pPciSegments for caller to utilize. (size depends on numbCOMMENT
MEDIUMMdePkg/Include/Protocol/WiFi.h361 /// robust management frames.COMMENT
MEDIUMSecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c563 // Some other program might leverage this function to check the existence of TPM chip.COMMENT
MEDIUM…ry/ImagePropertiesRecordLib/ImagePropertiesRecordLib.c524 // If we didn't utilize all the extra allocated descriptor slots, set the physical address of the unused slotsCOMMENT
MEDIUM…ary/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.c30 // discovered base address in a global), and the most robust way to dealCOMMENT
AI Structural Patterns28 hits · 28 pts
SeverityFileLineSnippetContext
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py435CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py577CODE
LOWBaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py609CODE
LOWBaseTools/Source/Python/UPT/Library/Misc.py312CODE
LOWBaseTools/Source/Python/Capsule/GenerateCapsule.py526CODE
LOWBaseTools/Source/Python/Workspace/BuildClassObject.py49CODE
LOWBaseTools/Source/Python/Workspace/BuildClassObject.py272CODE
LOWBaseTools/Source/Python/Workspace/MetaFileTable.py105CODE
LOWBaseTools/Source/Python/Workspace/MetaFileTable.py157CODE
LOWBaseTools/Source/Python/Workspace/MetaFileTable.py200CODE
LOWBaseTools/Source/Python/Workspace/MetaFileTable.py322CODE
LOWBaseTools/Source/Python/Workspace/MetaFileTable.py382CODE
LOWBaseTools/Source/Python/Common/Misc.py1437CODE
LOWBaseTools/Source/Python/Table/TableEotReport.py58CODE
LOW…s/Source/Python/Ecc/MetaFileWorkspace/MetaFileTable.py82CODE
LOW…s/Source/Python/Ecc/MetaFileWorkspace/MetaFileTable.py165CODE
LOW…s/Source/Python/Ecc/MetaFileWorkspace/MetaFileTable.py246CODE
LOWBaseTools/Source/Python/CommonDataClass/DataClass.py216CODE
LOWBaseTools/Source/Python/CommonDataClass/DataClass.py270CODE
LOWBaseTools/Source/Python/CommonDataClass/DataClass.py316CODE
LOWBaseTools/Source/Python/CommonDataClass/DataClass.py357CODE
LOWBaseTools/Source/Python/CommonDataClass/CommonClass.py32CODE
LOWBaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py62CODE
LOWBaseTools/Source/Python/Eot/EotMain.py1111CODE
LOWBaseTools/Scripts/efi_debugging.py1964CODE
LOWIntelFsp2Pkg/Tools/FspDscBsf2Yaml.py99CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/GenYamlCfg.py1598CODE
LOWIntelFsp2Pkg/Tools/ConfigEditor/CommonUtility.py173CODE
Synthetic Comment Markers4 hits · 25 pts
SeverityFileLineSnippetContext
HIGHBaseTools/Source/Python/AutoGen/ModuleAutoGen.py914 ## Return the list of auto-generated code fileSTRING
HIGHOvmfPkg/VirtioPciDeviceDxe/VirtioPciDevice.c101 // The I/O operations are carried out exactly as requested. The callerCOMMENT
HIGHOvmfPkg/VirtioPciDeviceDxe/VirtioPciDevice.c181 // The I/O operations are carried out exactly as requested. The callerCOMMENT
HIGHMdePkg/Include/Protocol/MpService.h638/// whenever the APs are disabled or the APs are not executing code as requestedCOMMENT
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHBaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py610Returns the absolute path if the path is a directory." Args: dir_path (str): A directory file systeSTRING
HIGHBaseTools/Plugin/DebugMacroCheck/DebugMacroCheck.py628Returns the absolute path if the path is a file." Args: file_path (str): A file path. RaisSTRING
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALEmulatorPkg/Unix/lldbefi.py381 frame.thread.process.target.debugger.HandleCommand("process handle SIGALRM -n false")CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHTcgTpmPkg/Library/TpmLib/Ossl/BnToOsslMath.c16// This function converts an OpenSSL BIGNUM to a TPM bigNum. In this implementationCOMMENT
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…Tools/plugins/EdkPlugins/edk2/model/doxygengen_spec.py383CODE
MEDIUM…Tools/plugins/EdkPlugins/edk2/model/doxygengen_spec.py384CODE
MEDIUMIntelFsp2Pkg/Tools/ConfigEditor/CommonUtility.py165CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWBaseTools/Source/Python/AutoGen/__init__.py11__all__ = ["AutoGen"]CODE
LOWBaseTools/Plugin/CodeQL/integration/stuart_codeql.py67def set_audit_only_mode(uefi_builder: UefiBuilder) -> None:CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWBaseTools/Scripts/efi_debugging.py47# debugger python to make sure you are in sync.COMMENT