通用: Error-Exit 质量门禁检查结果
不安全函数: 存在不安全函数
lizard检查: lizard检查审批
存在不安全函数,请先治理
编译报错
: error:
lizard_report.txt lizard_report_old.txt rdc_lizard_warning.txt
三、警告函数(高复杂度或超长函数)
=======================================================================================================
!!!! Warnings (nloc > 200 or cyclomatic_complexity > 20 or length > 100000 or parameter_count > 8) !!!!
================================================
NLOC CCN token PARAM length location
310 48 2310 2 332 main@50-381@packages/common/pondrv/optical/opticaltst/opticaltst.c
144 36 881 1 153 getPN@1762-1914@packages/common/pondrv/optical/kmodule/optical.c
这两个函数被标记为"警告",因为它们违反了以下规则之一:
NLOC > 200:函数行数超过 200 行
CCN > 20:圈复杂度超过 20
length > 100000:函数长度过大(不太可能)
PARAM > 8:参数过多(不适用)