Skip to content

Lint & Format

Lint & Format #76

Manually triggered March 9, 2025 06:51
Status Success
Total duration 59s
Artifacts

lint.yml

on: workflow_dispatch
Fit to window
Zoom out
Zoom in

Annotations

21 errors, 10 warnings, and 10 notices
code/项目/mdrOS/page.c:1:10 [clang-diagnostic-error]: code/项目/mdrOS/page.c#L1
'../include/graphics.h' file not found
lint
Process completed with exit code 1.
Multiple top-level headings in the same document: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L3
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:3 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "第一类:最最常用的字符串处理函数"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md025.md
Multiple headings with the same content: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L59
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:59 MD024/no-duplicate-heading Multiple headings with the same content [Context: "说文解字"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
Multiple headings with the same content: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L67
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:67 MD024/no-duplicate-heading Multiple headings with the same content [Context: "函数原型"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
Multiple headings with the same content: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L73
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:73 MD024/no-duplicate-heading Multiple headings with the same content [Context: "注意事项"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
Blank line inside blockquote: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L82
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:82 MD028/no-blanks-blockquote Blank line inside blockquote https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md028.md
Multiple headings with the same content: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L98
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:98 MD024/no-duplicate-heading Multiple headings with the same content [Context: "衍生函数"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
Ordered list item prefix: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L104
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:104:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md029.md
Multiple headings with the same content: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L108
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:108 MD024/no-duplicate-heading Multiple headings with the same content [Context: "示例程序"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
Multiple headings with the same content: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L136
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:136 MD024/no-duplicate-heading Multiple headings with the same content [Context: "说文解字"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
Multiple headings with the same content: docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md#L140
docs/教程/正文/语法和标准库/16_字符字符串库/16_2_string.md:140 MD024/no-duplicate-heading Multiple headings with the same content [Context: "函数原型"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md024.md
code/练习/3_一元二次方程.c:114:5 [readability-isolate-declaration]: code/练习/3_一元二次方程.c#L114
multiple declarations in a single statement reduces readability
code/练习/unk_mdrprint.c:76:5 [readability-function-cognitive-complexity]: code/练习/unk_mdrprint.c#L76
function 'mdr_print' has cognitive complexity of 120 (threshold 25)
code/练习/unk_mdrprint.c:78:14 [performance-no-int-to-ptr]: code/练习/unk_mdrprint.c#L78
integer to pointer cast pessimizes optimization opportunities
Run clang-format on code/杂/11_json_parser/main.c: code/杂/11_json_parser/main.c#L1
File code/杂/11_json_parser/main.c does not conform to Custom style guidelines. (lines 2, 3, 4)
Run clang-format on code/杂/10_桌面计算器/main.c: code/杂/10_桌面计算器/main.c#L1
File code/杂/10_桌面计算器/main.c does not conform to Custom style guidelines. (lines 2, 3, 4)
Run clang-format on code/语法和标准库/2_初识C/2_1_hello_world.c: code/语法和标准库/2_初识C/2_1_hello_world.c#L1
File code/语法和标准库/2_初识C/2_1_hello_world.c does not conform to Custom style guidelines. (lines 7, 8)
Run clang-format on code/语法和标准库/6_函数/function.c: code/语法和标准库/6_函数/function.c#L1
File code/语法和标准库/6_函数/function.c does not conform to Custom style guidelines. (lines 3, 4, 7, 8, 11, 12)
Run clang-format on code/项目/mdrOS/task.c: code/项目/mdrOS/task.c#L1
File code/项目/mdrOS/task.c does not conform to Custom style guidelines. (lines 1, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 94, 97, 98, 127, 128, 131, 132, 144, 171, 175, 180, 186, 205, 207, 214, 221, 244, 248, 250, 251, 252, 253, 254, 255, 262, 265, 266, 267, 271, 272, 275, 277, 278, 282, 289, 292, 294, 296, 297, 299, 322, 324, 355, 357, 358, 359, 361, 380, 381, 383, 393, 424, 436, 440, 459)
Run clang-format on code/项目/mdrOS/printf.c: code/项目/mdrOS/printf.c#L1
File code/项目/mdrOS/printf.c does not conform to Custom style guidelines. (lines 281)
Run clang-format on code/数据结构与算法/数据结构/顺序表.h: code/数据结构与算法/数据结构/顺序表.h#L1
File code/数据结构与算法/数据结构/顺序表.h does not conform to Custom style guidelines. (lines 15, 22, 25, 34, 37, 42, 50, 60, 62, 70, 73, 74, 83, 86, 87, 96, 98, 106, 108, 112, 120, 124, 129, 135, 137, 139, 147, 150)
Run clang-format on code/数据结构与算法/数据结构/栈_数组_1.h: code/数据结构与算法/数据结构/栈_数组_1.h#L1
File code/数据结构与算法/数据结构/栈_数组_1.h does not conform to Custom style guidelines. (lines 12, 18, 21, 27, 29, 32, 33, 39, 41, 49, 52, 55, 56, 60)
Run clang-format on code/数据结构与算法/数据结构/单链表.h: code/数据结构与算法/数据结构/单链表.h#L1
File code/数据结构与算法/数据结构/单链表.h does not conform to Custom style guidelines. (lines 16, 20, 24, 30, 32, 42, 44, 46, 48, 49, 55, 58, 69, 71, 82, 85, 87, 94, 97, 115, 117, 126, 138, 140, 146, 153, 157, 166, 170)
Run clang-format on code/项目/mdrOS/printf.h: code/项目/mdrOS/printf.h#L1
File code/项目/mdrOS/printf.h does not conform to Custom style guidelines. (lines 4)