Module 01 · Python Coding Practices and Packaging Concepts
Reading: Static Code Analysis Resources静态代码分析(资源)
Estimated time needed: 2 minutes
预计所需时间:2 分钟
Static code analysis, or static analysis, is an application code efficiency verification activity that analyses source code for quality, reliability, and security without executing the code. Static code analysis is an essential part of any application development cycle and is available as a part of multiple frameworks with Python.
静态代码分析,或静态分析,是一种不执行代码而对源代码进行质量、可靠性和安全性分析的应用代码效率验证活动。静态代码分析是任何应用开发周期的重要组成部分,并且可以作为多个 Python 框架的一部分提供。
One of the most popular frameworks is PyLint. PyLint basically evaluates the code against compliance with the PEP8 coding style guide and generates comments wherever it finds an issue.
其中最受欢迎的框架之一是 PyLint。PyLint 基本上根据 PEP8 编码风格指南评估代码,并在发现问题时生成注释。
Resources 资源
Here is a list of resources to help you gain more knowledge on static code analysis.
这里是一份资源列表,可以帮助您在静态代码分析方面获得更多知识。
PEP 8 Style Guide for Python Code
Python 代码的 PEP 8 风格指南
What Is Static Code Analysis?
什么是静态代码分析?