Repository Analysis

facebook/yoga

Yoga is an embeddable layout engine targeting web standards.

1.4 Likely human-written View on GitHub
1.4
Adjusted Score
1.4
Raw Score
100%
Time Factor
2026-05-19
Last Push
18,758
Stars
C++
Language
78,188
Lines of Code
305
Files
175
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 1LOW 174

Pattern Findings

175 matches across 3 categories. Click a row to expand file-level details.

Over-Commented Block173 hits · 103 pts
SeverityFileLineSnippet
LOWyoga/YGMacros.h1/*
LOWyoga/YGMacros.h21
LOWyoga/YGMacros.h41#if __has_include(<Foundation/Foundation.h>)
LOWyoga/style/Style.h21#include <yoga/enums/Display.h>
LOWyoga/algorithm/FlexLine.h41 // List of children which are part of the line flow. This means they are not
LOWyoga/algorithm/CalculateLayout.cpp1/*
LOWyoga/algorithm/CalculateLayout.cpp21#include <yoga/algorithm/CalculateLayout.h>
LOWyoga/algorithm/CalculateLayout.cpp941 }
LOWyoga/algorithm/CalculateLayout.cpp1221// * The 'order' property is not supported. The order of flex items is always
LOWyoga/algorithm/CalculateLayout.cpp1241// - availableWidth & availableHeight: available size to be used for sizing
LOWyoga/algorithm/PixelGrid.cpp21 // We want to calculate `fractial` such that `floor(scaledValue) = scaledValue
LOWjava/jni/YGJNIVanilla.cpp1/*
LOWlib/nlohmann/json.hpp21#include <algorithm> // all_of, find, for_each
LOWlib/nlohmann/json.hpp41// SPDX-License-Identifier: MIT
LOWlib/nlohmann/json.hpp61 #if defined(NLOHMANN_JSON_VERSION_MAJOR) && defined(NLOHMANN_JSON_VERSION_MINOR) && defined(NLOHMANN_JSON_VERSION_PA
LOWlib/nlohmann/json.hpp81 #define NLOHMANN_JSON_ABI_TAG_DIAGNOSTICS _diag
LOWlib/nlohmann/json.hpp141#endif
LOWlib/nlohmann/json.hpp161#include <array> // array
LOWlib/nlohmann/json.hpp181
LOWlib/nlohmann/json.hpp201
LOWlib/nlohmann/json.hpp221// __ _____ _____ _____
LOWlib/nlohmann/json.hpp321// __ _____ _____ _____
LOWlib/nlohmann/json.hpp341 #undef JSON_HEDLEY_STRINGIFY_EX
LOWlib/nlohmann/json.hpp361 #undef JSON_HEDLEY_CONCAT3_EX
LOWlib/nlohmann/json.hpp381 #undef JSON_HEDLEY_VERSION_DECODE_MINOR
LOWlib/nlohmann/json.hpp401#endif
LOWlib/nlohmann/json.hpp421#endif
LOWlib/nlohmann/json.hpp441#if defined(JSON_HEDLEY_INTEL_VERSION_CHECK)
LOWlib/nlohmann/json.hpp461 #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_INTEL_CL_VERSION >= JSON_HEDLEY_VERSION_E
LOWlib/nlohmann/json.hpp481
LOWlib/nlohmann/json.hpp501 #define JSON_HEDLEY_SUNPRO_VERSION_CHECK(major,minor,patch) (0)
LOWlib/nlohmann/json.hpp521 #undef JSON_HEDLEY_ARM_VERSION
LOWlib/nlohmann/json.hpp541#if defined(__ibmxl__)
LOWlib/nlohmann/json.hpp561#if \
LOWlib/nlohmann/json.hpp581
LOWlib/nlohmann/json.hpp601#if defined(__TI_COMPILER_VERSION__) && defined(__MSP430__)
LOWlib/nlohmann/json.hpp621#if defined(JSON_HEDLEY_TI_ARMCL_VERSION_CHECK)
LOWlib/nlohmann/json.hpp641 #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_TI_CL6X_VERSION >= JSON_HEDLEY_VERSION_ENC
LOWlib/nlohmann/json.hpp661
LOWlib/nlohmann/json.hpp681#if defined(_CRAYC)
LOWlib/nlohmann/json.hpp701#if defined(__IAR_SYSTEMS_ICC__)
LOWlib/nlohmann/json.hpp721#if defined(__TINYC__)
LOWlib/nlohmann/json.hpp741#if defined(JSON_HEDLEY_DMC_VERSION_CHECK)
LOWlib/nlohmann/json.hpp761 #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_COMPCERT_VERSION >= JSON_HEDLEY_VERSION_E
LOWlib/nlohmann/json.hpp781
LOWlib/nlohmann/json.hpp821 #undef JSON_HEDLEY_GCC_VERSION_CHECK
LOWlib/nlohmann/json.hpp841
LOWlib/nlohmann/json.hpp861 #undef JSON_HEDLEY_HAS_CPP_ATTRIBUTE
LOWlib/nlohmann/json.hpp881 (!defined(JSON_HEDLEY_MSVC_VERSION) || JSON_HEDLEY_MSVC_VERSION_CHECK(19,20,0))
LOWlib/nlohmann/json.hpp901#else
LOWlib/nlohmann/json.hpp921#endif
LOWlib/nlohmann/json.hpp941#if defined(JSON_HEDLEY_GNUC_HAS_FEATURE)
LOWlib/nlohmann/json.hpp961#endif
LOWlib/nlohmann/json.hpp981 #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) __has_extension(extension)
LOWlib/nlohmann/json.hpp1001 #define JSON_HEDLEY_GNUC_HAS_DECLSPEC_ATTRIBUTE(attribute,major,minor,patch) JSON_HEDLEY_GNUC_VERSION_CHECK(major,mi
LOWlib/nlohmann/json.hpp1021
LOWlib/nlohmann/json.hpp1061 #define JSON_HEDLEY_PRAGMA(value) __pragma(value)
LOWlib/nlohmann/json.hpp1081#elif \
LOWlib/nlohmann/json.hpp1101#else
LOWlib/nlohmann/json.hpp1141#endif
113 more matches not shown…
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMgentest/gentest-driver.ts76 // TODO: replace this with something more robust than just blindly replacing
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWgentest/src/CssToYoga.ts955export function getFlexDirectionForMeasure(styles: ParsedStyles): string {