Files
materials/knowledge/linux/tools/metrics.config.json

30 lines
1.1 KiB
JSON
Raw Normal View History

{
"$comment": "Linux 专题指标配置。阈值来源:tools/SPEC.md §2。改阈值只改这里,不要改脚本。",
"types": {
"A": { "label": "原理/机制型", "density": 3.5, "figures": 2, "sections": [5, 9], "chars": [3500, 6500] },
"B": { "label": "操作/排障型", "density": 4.5, "figures": 1, "sections": [5, 9], "chars": [3500, 6500] },
"C": { "label": "速查/题库型", "density": null, "figures": 0, "sections": [5, 8], "chars": [1200, 4000], "maxLooseParagraphs": 20 }
},
"chapters": {
"01": "A", "02": "B", "03": "B", "04": "B", "05": "B", "06": "B", "07": "B", "08": "B",
"09": "B", "10": "B", "11": "B", "12": "A", "13": "B", "14": "B", "15": "B", "16": "C", "17": "C"
},
"rules": {
"avgDensity": 4.0,
"paragraphMax": 200,
"paragraphHardMax": 250,
"paragraphAvg": 72,
"codePerParagraph": 4,
"codePerIdentifier": 2,
"sentenceMax": 60,
"sentenceOver": 80,
"sentenceOverPerChapter": 3,
"listItems": 3,
"takeMax": 50,
"mistakes": [3, 5],
"skippable": [2, 4],
"mark": 0,
"symptomRows": 8
}
}