Repository Analysis

nicbarker/clay

High performance UI layout library in C.

9.2 Low AI signal View on GitHub
9.2
Adjusted Score
9.2
Raw Score
100%
Time Factor
2026-05-20
Last Push
17,353
Stars
C
Language
30,653
Lines of Code
82
Files
112
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 48LOW 64

Pattern Findings

112 matches across 4 categories. Click a row to expand file-level details.

Decorative Section Separators48 hits · 213 pts
SeverityFileLineSnippet
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt6# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt8# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt12# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt14# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt22# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt24# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt34# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt36# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt47# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt49# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt55# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt57# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt65# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt67# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt75# -------------------------------------------------
MEDIUMexamples/GLES3-SDL2-video-demo/CMakeLists.txt77# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt7# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt9# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt13# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt15# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt23# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt25# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt39# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt41# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt53# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt55# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt61# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt63# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt81# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt83# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt90# -------------------------------------------------
MEDIUMexamples/GLES3-GLFW-video-demo/CMakeLists.txt92# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt5# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt7# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt11# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt13# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt21# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt23# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt33# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt35# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt46# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt48# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt54# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt56# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt64# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt66# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt74# -------------------------------------------------
MEDIUM…/GLES3-SDL2-sidebar-scrolling-container/CMakeLists.txt76# -------------------------------------------------
Over-Commented Block42 hits · 42 pts
SeverityFileLineSnippet
LOWclay.h21#include <arm_neon.h>
LOWclay.h41#endif
LOWclay.h81#define CLAY_SID(label) Clay__HashString(label, 0)
LOWclay.h161
LOWclay.h181
LOWclay.h481
LOWclay.h501 // CLAY_POINTER_CAPTURE_MODE_CAPTURE (default) - "Capture" the pointer event and don't allow events like hover and c
LOWclay.h661
LOWclay.h801 // CLAY_RENDER_COMMAND_TYPE_BORDER - The renderer should draw a colored border inset into the bounding box.
LOWclay.h821typedef CLAY_PACKED_ENUM {
LOWclay.h901typedef struct Clay_ErrorData {
LOWclay.h921typedef struct {
LOWclay.h941CLAY_DLL_EXPORT void Clay_SetPointerState(Clay_Vector2 position, bool pointerDown);
LOWclay.h961CLAY_DLL_EXPORT Clay_Vector2 Clay_GetScrollOffset(void);
LOWclay.h981// The returned Clay_ElementData contains a `found` bool that will be true if an element with the provided ID was found.
LOWclay.h1001// Binds a callback function that Clay will call to determine the dimensions of a given string slice.
LOWclay.h1041CLAY_DLL_EXPORT void Clay__OpenTextElement(Clay_String text, Clay_TextElementConfig textConfig);
LOWrenderers/GLES3/clay_renderer_gles3.h1#ifndef CLAY_RENDERER_GLES3_H
LOWrenderers/GLES3/clay_renderer_gles3.h821#endif
LOWrenderers/cairo/clay_renderer_cairo.c1// Copyright (c) 2024 Justin Andreas Lacoste (@27justin)
LOWrenderers/cairo/clay_renderer_cairo.c21//
LOWrenderers/cairo/clay_renderer_cairo.c41void Clay_Cairo_Initialize(cairo_t *cairo);
LOWrenderers/raylib/raymath.h61// Function specifiers definition
LOWrenderers/raylib/raymath.h81
LOWrenderers/raylib/raymath.h101
LOWrenderers/raylib/raylib.h81* 3. This notice may not be removed or altered from any source distribution.
LOWrenderers/raylib/raylib.h101 #endif
LOWrenderers/raylib/raylib.h121 #define PI 3.14159265358979323846f
LOWrenderers/raylib/raylib.h141#ifndef RL_FREE
LOWrenderers/raylib/raylib.h161// NOTE: We set some defines with some data types declared by raylib
LOWrenderers/raylib/raylib.h181#define PINK CLITERAL(Color){ 255, 109, 194, 255 } // Pink
LOWrenderers/raylib/raylib.h201#define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo)
LOWrenderers/win32_gdi/clay_renderer_gdi.c1#include <Windows.h>
LOWrenderers/sokol/sokol_clay.h141#endif /* SOKOL_CLAY_INCLUDED */
LOWrenderers/SDL2/clay_renderer_SDL2.c141 indices[indexCount++] = vertexCount - 1; //LT
LOWexamples/sokol-corner-radius/main.c1#include "sokol_app.h"
LOW…es/playdate-project-example/clay-video-demo-playdate.c1// This is the video demo with some adjustments so it works on the playdate
LOWexamples/cairo-pdf-rendering/main.c1// Copyright (c) 2024 Justin Andreas Lacoste (@27justin)
LOWexamples/win32_gdi/main.c1
LOWexamples/sokol-video-demo/main.c1#include "sokol_app.h"
LOWexamples/sokol-video-demo/sokol.c1#define SOKOL_IMPL
LOWexamples/sokol-video-demo/sokol.c21#define FONTSTASH_IMPLEMENTATION
Fake / Example Data21 hits · 26 pts
SeverityFileLineSnippet
LOWexamples/shared-layouts/clay-video-demo.c81 documents.documents[1] = (Document){ .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor
LOWexamples/shared-layouts/clay-video-demo.c81 documents.documents[1] = (Document){ .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor
LOWexamples/raylib-sidebar-scrolling-container/main.c80 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
LOWexamples/raylib-sidebar-scrolling-container/main.c80 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
LOWexamples/raylib-sidebar-scrolling-container/main.c104 CLAY_TEXT(CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis e
LOWexamples/raylib-sidebar-scrolling-container/main.c104 CLAY_TEXT(CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis e
LOWexamples/raylib-multi-context/main.c36 { .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adip
LOWexamples/raylib-multi-context/main.c36 { .title = CLAY_STRING("Lorem Ipsum"), .contents = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adip
LOW…es/playdate-project-example/clay-video-demo-playdate.c133 .title = CLAY_STRING("Lorem Ipsum"),
LOW…es/playdate-project-example/clay-video-demo-playdate.c136 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "
LOW…es/playdate-project-example/clay-video-demo-playdate.c136 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c335 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c335 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c339 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c339 CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididu
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c342 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor in
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c342 CLAY_TEXT(CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor in
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c376 CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis egestas
LOWexamples/GLES3-SDL2-sidebar-scrolling-container/main.c376 CLAY_STRING("Amet cursus sit amet dictum sit amet justo donec. Et malesuada fames ac turpis egestas
LOWexamples/clay-official-website/main.c189Clay_String LOREM_IPSUM_TEXT = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp
LOWexamples/clay-official-website/main.c189Clay_String LOREM_IPSUM_TEXT = CLAY_STRING("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOWexamples/clay-official-website/index.html398 function SetElementBackgroundColorAndRadius(element, cornerRadius, backgroundColor) {