Yoga is an embeddable layout engine targeting web standards.
This report summarizes scanner evidence for react/yoga, a C++ project with 18,937 GitHub stars. SynthScan examined 82,487 lines of code across 324 source files, recording 187 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 187 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 187 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 187 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | enums.py | 81 | ("StretchFlexBasis", 1 << 0), | COMMENT |
| LOW | yoga/YGMacros.h | 1 | /* | COMMENT |
| LOW | yoga/YGMacros.h | 21 | COMMENT | |
| LOW | yoga/YGMacros.h | 41 | #if __has_include(<Foundation/Foundation.h>) | COMMENT |
| LOW | yoga/style/Style.h | 21 | #include <yoga/enums/Direction.h> | COMMENT |
| LOW | yoga/algorithm/FlexLine.h | 41 | // List of children which are part of the line flow. This means they are not | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 1 | /* | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 21 | #include <yoga/algorithm/BoundAxis.h> | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 821 | (child->getLayout().computedFlexBasis.unwrap() + | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 841 | // respond with longest-word width; image/collection-like measures | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 1401 | // By excluding this item's size and flex factor from remaining, this | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 1421 | // remaining space amongst the items whose min/max constraints didn't trigger in | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 1701 | } | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 1721 | // | COMMENT |
| LOW | yoga/algorithm/CalculateLayout.cpp | 1741 | // - heightSizingMode: indicates the sizing rules for the height (see below | COMMENT |
| LOW | yoga/algorithm/PixelGrid.cpp | 21 | const double pointScaleFactor, | COMMENT |
| LOW | yoga/algorithm/PixelGrid.cpp | 41 | // - x = -2.2: floor(-2.2) = -3, ceil(-2.2) = -2 | COMMENT |
| LOW | yoga/algorithm/FlexLine.cpp | 81 | COMMENT | |
| LOW | yoga/node/LayoutResults.h | 21 | COMMENT | |
| LOW | tests/YGContentsNodeHasNewLayoutTest.cpp | 61 | COMMENT | |
| LOW | tests/YGContentsNodeHasNewLayoutTest.cpp | 121 | "to it"; | COMMENT |
| LOW | tests/YGFlexWrapRoundingTest.cpp | 21 | const float* measuredWidth = | COMMENT |
| LOW | tests/YGFirstChildMinWidthTest.cpp | 1 | /* | COMMENT |
| LOW | java/jni/YGJNIVanilla.cpp | 1 | /* | COMMENT |
| LOW | lib/nlohmann/json.hpp | 21 | #include <algorithm> // all_of, find, for_each | COMMENT |
| LOW | lib/nlohmann/json.hpp | 41 | // SPDX-License-Identifier: MIT | COMMENT |
| LOW | lib/nlohmann/json.hpp | 61 | #if defined(NLOHMANN_JSON_VERSION_MAJOR) && defined(NLOHMANN_JSON_VERSION_MINOR) && defined(NLOHMANN_JSON_VERSION_PA | COMMENT |
| LOW | lib/nlohmann/json.hpp | 81 | #define NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS _diag | COMMENT |
| LOW | lib/nlohmann/json.hpp | 141 | #endif | COMMENT |
| LOW | lib/nlohmann/json.hpp | 161 | #include <array> // array | COMMENT |
| LOW | lib/nlohmann/json.hpp | 181 | COMMENT | |
| LOW | lib/nlohmann/json.hpp | 201 | COMMENT | |
| LOW | lib/nlohmann/json.hpp | 221 | // __ _____ _____ _____ | COMMENT |
| LOW | lib/nlohmann/json.hpp | 321 | // __ _____ _____ _____ | COMMENT |
| LOW | lib/nlohmann/json.hpp | 341 | #undef JSON_HEDLEY_STRINGIFY_EX | COMMENT |
| LOW | lib/nlohmann/json.hpp | 361 | #undef JSON_HEDLEY_CONCAT3_EX | COMMENT |
| LOW | lib/nlohmann/json.hpp | 381 | #undef JSON_HEDLEY_VERSION_DECODE_MINOR | COMMENT |
| LOW | lib/nlohmann/json.hpp | 401 | #endif | COMMENT |
| LOW | lib/nlohmann/json.hpp | 421 | #endif | COMMENT |
| LOW | lib/nlohmann/json.hpp | 441 | #if defined(JSON_HEDLEY_INTEL_VERSION_CHECK) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 461 | #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_VERSION_E | COMMENT |
| LOW | lib/nlohmann/json.hpp | 481 | COMMENT | |
| LOW | lib/nlohmann/json.hpp | 501 | #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 521 | #undef JSON_HEDLEY_ARM_VERSION | COMMENT |
| LOW | lib/nlohmann/json.hpp | 541 | #if defined(__ibmxl__) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 561 | #if \ | COMMENT |
| LOW | lib/nlohmann/json.hpp | 581 | COMMENT | |
| LOW | lib/nlohmann/json.hpp | 601 | #if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 621 | #if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 641 | #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENC | COMMENT |
| LOW | lib/nlohmann/json.hpp | 661 | COMMENT | |
| LOW | lib/nlohmann/json.hpp | 681 | #if defined(_CRAYC) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 701 | #if defined(__IAR_SYSTEMS_ICC__) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 721 | #if defined(__TINYC__) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 741 | #if defined(JSON_HEDLEY_DMC_VERSION_CHECK) | COMMENT |
| LOW | lib/nlohmann/json.hpp | 761 | #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_E | COMMENT |
| LOW | lib/nlohmann/json.hpp | 781 | COMMENT | |
| LOW | lib/nlohmann/json.hpp | 821 | #undef JSON_HEDLEY_GCC_VERSION_CHECK | COMMENT |
| LOW | lib/nlohmann/json.hpp | 841 | COMMENT | |
| LOW | lib/nlohmann/json.hpp | 861 | #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE | COMMENT |
| 125 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | gentest/gentest-driver.ts | 76 | // TODO: replace this with something more robust than just blindly replacing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | gentest/src/CssToYoga.ts | 955 | export function getFlexDirectionForMeasure(styles: ParsedStyles): string { | CODE |