The invention provides a code detection method, a device,
electronic equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps: analyzing a to-be-detected
source code, and obtaining function name information in the
source code; judging whether the
source code contains a specified event
namespace function name based on the function name information; if not, determining that a first code defect exists in the source code, and generating first defect report information corresponding to the first code defect; according to the method and device, the
electronic equipment and the storage medium, automatic detection of the source code can be achieved, the triggering scene of the
current function can be clearly determined and detected, the code style is unified outwards, and risks and problems existing in codes are effectively prevented; the source code quality is improved, the
system operation safety is improved, and the subsequent maintenance cost is reduced; the detection efficiency of the source code is improved, and the
workload of manual auditing of the source code is reduced.