{
"lgc.c": [
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 51,
"message": "Function-like macro 'makewhite' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 51,
"message": "Macro parameter 'x' is not parenthesized in replacement text. This can cause operator precedence issues.",
"rule_id": "PRE01-C",
"severity": "Medium",
"suggestion": "Wrap parameter 'x' in parentheses: (x) instead of x"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 51,
"message": "Macro evaluates parameter 'x' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 55,
"message": "Macro parameter 'x' is not parenthesized in replacement text. This can cause operator precedence issues.",
"rule_id": "PRE01-C",
"severity": "Medium",
"suggestion": "Wrap parameter 'x' in parentheses: (x) instead of x"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 59,
"message": "Function-like macro 'set2black' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 59,
"message": "Macro parameter 'x' is not parenthesized in replacement text. This can cause operator precedence issues.",
"rule_id": "PRE01-C",
"severity": "Medium",
"suggestion": "Wrap parameter 'x' in parentheses: (x) instead of x"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 59,
"message": "Macro evaluates parameter 'x' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 63,
"message": "Function-like macro 'valiswhite' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 63,
"message": "Macro evaluates parameter 'x' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 65,
"message": "Function-like macro 'keyiswhite' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 65,
"message": "Macro evaluates parameter 'n' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 71,
"message": "Function-like macro 'gcvalueN' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 71,
"message": "Macro evaluates parameter 'o' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 77,
"message": "Function-like macro 'gcvalarr' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 77,
"message": "Macro evaluates parameter 't' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 81,
"message": "Function-like macro 'markvalue' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 81,
"message": "Multistatement macro 'markvalue' is not wrapped in a do-while loop. This can cause issues when used in if statements without braces",
"rule_id": "PRE10-C",
"severity": "Medium",
"suggestion": "Wrap the macro body in: do { /* statements */ } while (0)"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 81,
"message": "Macro evaluates parameter 'g' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 84,
"message": "Function-like macro 'markkey' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 84,
"message": "Multistatement macro 'markkey' is not wrapped in a do-while loop. This can cause issues when used in if statements without braces",
"rule_id": "PRE10-C",
"severity": "Medium",
"suggestion": "Wrap the macro body in: do { /* statements */ } while (0)"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 84,
"message": "Macro evaluates parameter 'n' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 86,
"message": "Macro 'markobject' reverses parameter order, creating inconsistent interface",
"rule_id": "API03-C",
"severity": "Medium",
"suggestion": "Avoid macros that reorder parameters. Maintain consistent parameter ordering across related functions"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 86,
"message": "Function-like macro 'markobject' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 86,
"message": "Multistatement macro 'markobject' is not wrapped in a do-while loop. This can cause issues when used in if statements without braces",
"rule_id": "PRE10-C",
"severity": "Medium",
"suggestion": "Wrap the macro body in: do { /* statements */ } while (0)"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 86,
"message": "Macro evaluates parameter 't' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 92,
"message": "Function-like macro 'markobjectN' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 92,
"message": "Multistatement macro 'markobjectN' is not wrapped in a do-while loop. This can cause issues when used in if statements without braces",
"rule_id": "PRE10-C",
"severity": "Medium",
"suggestion": "Wrap the macro body in: do { /* statements */ } while (0)"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 92,
"message": "Macro evaluates parameter 't' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 110,
"message": "Function-like macro 'gnodelast' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 110,
"message": "Macro evaluates parameter 'h' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 184,
"message": "Function-like macro 'linkgclist' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 184,
"message": "Macro evaluates parameter 'o' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 188,
"message": "Direct assignment of flexible array structure instances. Use memcpy() for dynamic copying.",
"rule_id": "MEM33-C",
"severity": "High",
"suggestion": "Use memcpy() to copy the structure and its flexible array member"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 197,
"message": "Function-like macro 'linkobjgclist' evaluates parameter(s) multiple times; prefer inline or static functions for type safety",
"rule_id": "PRE00-C",
"severity": "Low",
"suggestion": null
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 197,
"message": "Macro evaluates parameter 'o' multiple times; use inline function instead",
"rule_id": "PRE12-C",
"severity": "Medium",
"suggestion": "Replace macro with inline function to avoid multiple evaluation"
},
{
"column": 6,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 224,
"message": "Direct NULL check for pointer validation. Define and use a dedicated pointer validation function instead of ad-hoc NULL checks. This centralizes validation logic and allows platform-specific enhancements.",
"rule_id": "MEM10-C",
"severity": "Medium",
"suggestion": "Create a validation function like 'int valid(void *ptr)' and use 'if (!valid(ptr))' instead of 'if (ptr == NULL)'"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 246,
"message": "Function 'luaC_barrier_' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 247,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 268,
"message": "Function 'luaC_barrierback_' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 269,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 282,
"message": "Function 'luaC_fix' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 282,
"message": "Function 'luaC_fix' does not validate pointer parameter 'o' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'o' at the start of the function, e.g., 'if (!o) { return error_code; }'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 283,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 297,
"message": "Function 'luaC_newobjdt' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 297,
"message": "Function 'luaC_newobjdt' does not validate integer parameter 'offset' for overflow before arithmetic operations",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add overflow validation for 'offset' before arithmetic, e.g., check against INT_MAX/INT_MIN or use __builtin_*_overflow()"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 298,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 22,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 300,
"message": "Scaled integer arithmetic with pointer: 'GCObject *, p + offset'. This results in double scaling",
"rule_id": "ARR39-C",
"severity": "High",
"suggestion": "Remove sizeof() or use unscaled integer arithmetic"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 305,
"message": "Function returns pointer to local variable 'o' with automatic storage duration",
"rule_id": "DCL30-C",
"severity": "High",
"suggestion": "Use static storage, allocated memory, or pass output buffer as parameter"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 312,
"message": "Function 'luaC_newobj' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 13,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 408,
"message": "Pointer-to-pointer assignment may allow const circumvention: **p = &g->twups: '**p = &g->twups'",
"rule_id": "EXP40-C",
"severity": "Low",
"suggestion": "Either remove const qualifier if the object should be modifiable, or use explicit casts to show intentional const removal"
},
{
"column": 29,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 410,
"message": "Potential null pointer dereference in member access of variable 'thread'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'thread' is not NULL before member access"
},
{
"column": 35,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 470,
"message": "Pointer parameter 'g' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *g'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 488,
"message": "Identifier 'n' at line 488 is visually similar to 'h' at line 487 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 550,
"message": "Identifier 'n' at line 550 is visually similar to 'h' at line 541 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 577,
"message": "Identifier 'n' at line 577 is visually similar to 'h' at line 576 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 44,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 595,
"message": "Pointer parameter 'h' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *h'"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 603,
"message": "Use parentheses to clarify operator precedence: '((weakkey != NULL) << 1) | (weakvalue != NULL)'",
"rule_id": "EXP00-C",
"severity": "Low",
"suggestion": "Add parentheses to enforce the intended order of operations"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 603,
"message": "Use parentheses to clarify operator precedence: '((weakkey != NULL) << 1) | (weakvalue != NULL)'",
"rule_id": "EXP00-C",
"severity": "Low",
"suggestion": "Add parentheses to enforce the intended order of operations"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 603,
"message": "Do not use bitwise operator '|' with Boolean-like right operand '(weakvalue != NULL)'. Did you mean '||'?",
"rule_id": "EXP46-C",
"severity": "Low",
"suggestion": "Replace bitwise operator '|' with logical operator '||' when working with Boolean values. Expression: ((weakkey != NULL) << 1) | (weakvalue != NULL)"
},
{
"column": 13,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 603,
"message": "Use parentheses to clarify operator precedence: '(weakkey != NULL) << 1'",
"rule_id": "EXP00-C",
"severity": "Low",
"suggestion": "Add parentheses to enforce the intended order of operations"
},
{
"column": 58,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 672,
"message": "Pointer parameter 'cl' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *cl'"
},
{
"column": 7,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 764,
"message": "Variable 'h' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const h = ..."
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 791,
"message": "Variable 'h' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const h = ..."
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 793,
"message": "Identifier 'n' at line 793 is visually similar to 'h' at line 791 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 67,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 808,
"message": "Pointer parameter 'f' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *f'"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 810,
"message": "Variable 'h' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const h = ..."
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 811,
"message": "Identifier 'n' at line 811 is visually similar to 'h' at line 810 (normalized: 'n')",
"rule_id": "DCL02-C",
"severity": "Low",
"suggestion": "Use a more distinct identifier name that doesn't rely on visually similar characters"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 837,
"message": "Declaration is missing an explicit type specifier",
"rule_id": "DCL31-C",
"severity": "Low",
"suggestion": "Add an explicit type specifier to the declaration"
},
{
"column": 9,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 875,
"message": "Function '(*ts->falloc)' called with overlapping memory regions. If parameters are restrict-qualified, this causes undefined behavior.",
"rule_id": "EXP43-C",
"severity": "High",
"suggestion": "Ensure memory regions do not overlap when using restrict pointers"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 893,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 57,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 904,
"message": "Bitwise operator '|' used on signed operand 'white' of type 'int'. Use unsigned types for bitwise operations",
"rule_id": "INT13-C",
"severity": "Medium",
"suggestion": "Change 'white' to an unsigned type (e.g., 'unsigned int' instead of 'int')"
},
{
"column": 11,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 908,
"message": "Use-after-free: dereferencing freed pointer 'p'",
"rule_id": "MEM30-C",
"severity": "Critical",
"suggestion": "Do not access memory after freeing it."
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 920,
"message": "Function returns pointer to local variable 'p' with automatic storage duration",
"rule_id": "DCL30-C",
"severity": "High",
"suggestion": "Use static storage, allocated memory, or pass output buffer as parameter"
},
{
"column": 52,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 935,
"message": "Pointer parameter 'g' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *g'"
},
{
"column": 24,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 937,
"message": "Floating-point division without error checking (consider using feclearexcept/fetestexcept)",
"rule_id": "FLP03-C",
"severity": "Low",
"suggestion": "Use feclearexcept(FE_ALL_EXCEPT) before and fetestexcept(FE_ALL_EXCEPT) after floating-point operations"
},
{
"column": 22,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 938,
"message": "Floating-point division without error checking (consider using feclearexcept/fetestexcept)",
"rule_id": "FLP03-C",
"severity": "Low",
"suggestion": "Use feclearexcept(FE_ALL_EXCEPT) before and fetestexcept(FE_ALL_EXCEPT) after floating-point operations"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 958,
"message": "Function returns pointer to local variable 'o' with automatic storage duration",
"rule_id": "DCL30-C",
"severity": "High",
"suggestion": "Use static storage, allocated memory, or pass output buffer as parameter"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 969,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1000,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 38,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1009,
"message": "Pointer parameter 'p' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *p'"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1025,
"message": "Pointer-to-pointer assignment may allow const circumvention: **p = &g->finobj: '**p = &g->finobj'",
"rule_id": "EXP40-C",
"severity": "Low",
"suggestion": "Either remove const qualifier if the object should be modifiable, or use explicit casts to show intentional const removal"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1026,
"message": "Pointer-to-pointer assignment may allow const circumvention: **lastnext = findlast(&g->tobefnz): '**lastnext = findlast(&g->tobefnz)'",
"rule_id": "EXP40-C",
"severity": "Low",
"suggestion": "Either remove const qualifier if the object should be modifiable, or use explicit casts to show intentional const removal"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1030,
"message": "Potential null pointer dereference in member access of variable 'curr'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'curr' is not NULL before member access"
},
{
"column": 20,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1035,
"message": "Potential null pointer dereference of variable 'lastnext'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'lastnext' is not NULL before dereferencing"
},
{
"column": 7,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1036,
"message": "Local variable 'curr' assigned through pointer parameter - address will be invalid when function returns",
"rule_id": "DCL30-C",
"severity": "High",
"suggestion": "Copy data instead of assigning pointer, or use static/allocated storage"
},
{
"column": 50,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1046,
"message": "Pointer parameter 'o' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *o'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1069,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1138,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1142,
"message": "Potential null pointer dereference in member access of variable 'curr'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'curr' is not NULL before member access"
},
{
"column": 38,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1173,
"message": "Pointer parameter 'limit' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *limit'"
},
{
"column": 24,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1175,
"message": "Array declaration 'nextage[]' has implicit bounds; specify explicit size",
"rule_id": "ARR02-C",
"severity": "Medium",
"suggestion": "Explicitly specify array bounds even when using an initializer"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1190,
"message": "Potential null pointer dereference in member access of variable 'curr'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'curr' is not NULL before member access"
},
{
"column": 56,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1197,
"message": "Bitwise operator '|' used on signed operand 'white' of type 'int'. Use unsigned types for bitwise operations",
"rule_id": "INT13-C",
"severity": "Medium",
"suggestion": "Change 'white' to an unsigned type (e.g., 'unsigned int' instead of 'int')"
},
{
"column": 13,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1205,
"message": "Local variable 'curr' assigned through pointer parameter - address will be invalid when function returns",
"rule_id": "DCL30-C",
"severity": "High",
"suggestion": "Copy data instead of assigning pointer, or use static/allocated storage"
},
{
"column": 18,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1229,
"message": "Potential null pointer dereference of variable 'p'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'p' is not NULL before dereferencing"
},
{
"column": 14,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1239,
"message": "Potential null pointer dereference in member access of variable 'curr'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'curr' is not NULL before member access"
},
{
"column": 13,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1250,
"message": "Direct assignment of flexible array structure instances. Use memcpy() for dynamic copying.",
"rule_id": "MEM33-C",
"severity": "High",
"suggestion": "Use memcpy() to copy the structure and its flexible array member"
},
{
"column": 18,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1250,
"message": "Potential null pointer dereference of variable 'next'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'next' is not NULL before dereferencing"
},
{
"column": 5,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1251,
"message": "Unreachable code after unconditional 'continue'.",
"rule_id": "MSC07-C",
"severity": "Low",
"suggestion": "Remove the unreachable code or restructure the control flow"
},
{
"column": 12,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1261,
"message": "Pointer-to-pointer assignment may allow const circumvention: **list = correctgraylist(&g->grayagain): '**list = correctgraylist(&g->grayagain)'",
"rule_id": "EXP40-C",
"severity": "Low",
"suggestion": "Either remove const qualifier if the object should be modifiable, or use explicit casts to show intentional const removal"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1262,
"message": "Potential null pointer dereference of variable 'list'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'list' is not NULL before dereferencing"
},
{
"column": 48,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1276,
"message": "Pointer parameter 'from' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *from'"
},
{
"column": 64,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1276,
"message": "Pointer parameter 'to' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *to'"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1292,
"message": "Function 'finishgencycle' participates in indirect recursion: finishgencycle -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullgen -> entergen -> atomic2gen -> finishgencycle",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 13,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1356,
"message": "Potential null pointer dereference of variable 'psurvival'",
"rule_id": "EXP34-C",
"severity": "High",
"suggestion": "Check if 'psurvival' is not NULL before dereferencing"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1389,
"message": "Function 'atomic2gen' participates in indirect recursion: atomic2gen -> finishgencycle -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullgen -> entergen -> atomic2gen",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1428,
"message": "Function 'entergen' participates in indirect recursion: entergen -> atomic2gen -> finishgencycle -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullgen -> entergen",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1440,
"message": "Function 'luaC_changemode' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1441,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1458,
"message": "Function 'fullgen' participates in indirect recursion: fullgen -> entergen -> atomic2gen -> finishgencycle -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullgen",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1471,
"message": "Function 'checkmajorminor' participates in indirect recursion: checkmajorminor -> atomic2gen -> finishgencycle -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullgen -> entergen -> luaC_runtilstate -> singlestep -> checkmajorminor",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1505,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 61,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1516,
"message": "Pointer parameter 'limit' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *limit'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1530,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1544,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 52,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1589,
"message": "Pointer parameter 'nextlist' is not modified and should be declared const",
"rule_id": "DCL13-C",
"severity": "Low",
"suggestion": "Declare parameter as 'const <type> *nextlist'"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1612,
"message": "Macro replacement list should be parenthesized to prevent operator precedence issues.",
"rule_id": "PRE02-C",
"severity": "Medium",
"suggestion": "Wrap the entire replacement list in parentheses: (-3)"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1613,
"message": "Macro replacement list should be parenthesized to prevent operator precedence issues.",
"rule_id": "PRE02-C",
"severity": "Medium",
"suggestion": "Wrap the entire replacement list in parentheses: (-2)"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1614,
"message": "Macro replacement list should be parenthesized to prevent operator precedence issues.",
"rule_id": "PRE02-C",
"severity": "Medium",
"suggestion": "Wrap the entire replacement list in parentheses: (-1)"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1617,
"message": "Function 'singlestep' participates in indirect recursion: singlestep -> checkmajorminor -> atomic2gen -> finishgencycle -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullgen -> entergen -> luaC_runtilstate -> singlestep",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1618,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1694,
"message": "Function 'luaC_runtilstate' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1694,
"message": "Function 'luaC_runtilstate' participates in indirect recursion: luaC_runtilstate -> singlestep -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullgen -> entergen -> luaC_runtilstate",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1695,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 44,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1712,
"message": "Division or modulo by 'cast_int(sizeof(void*))' without checking for zero",
"rule_id": "INT33-C",
"severity": "High",
"suggestion": "Check if 'cast_int(sizeof(void*))' is not zero before division"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1740,
"message": "Function 'luaC_step' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1741,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1770,
"message": "Function 'fullinc' participates in indirect recursion: fullinc -> luaC_runtilstate -> singlestep -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc -> fullinc",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1786,
"message": "Function 'luaC_fullgc' does not validate pointer parameter 'L' before use",
"rule_id": "API00-C",
"severity": "Medium",
"suggestion": "Add validation check for 'L' at the start of the function, e.g., 'if (!L) { return error_code; }'"
},
{
"column": 1,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1786,
"message": "Function 'luaC_fullgc' participates in indirect recursion: luaC_fullgc -> fullgen -> entergen -> atomic2gen -> finishgencycle -> luaD_checkminstack -> luaD_growstack -> luaG_runerror -> luaG_errormsg -> luaD_callnoyield -> ccall -> luaD_precall -> tryfuncTM -> luaG_callerror -> typeerror -> luaT_objtypename -> luaS_new -> luaS_newlstr -> internshrstr -> growstrtab -> luaC_fullgc",
"rule_id": "MSC04-C",
"severity": "Medium",
"suggestion": "Refactor to eliminate the recursion cycle"
},
{
"column": 3,
"file": "/home/brandon/toolchain/lua/lgc.c",
"line": 1787,
"message": "Variable 'g' is initialized but never modified, consider const-qualifying it",
"rule_id": "DCL00-C",
"severity": "Medium",
"suggestion": "Add 'const' qualifier: const g = ..."
}
]
}