Coursera 笔记

Module 03 · [Optional] Python Coding Practices and Packaging Concepts(可选)Python 编码实践与打包概念

Reading: Static Code Analysis Resources阅读:静态代码分析资源

Coursera ↗

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?
什么是静态代码分析?

Static Program Analysis   静态程序分析

How Static Code Analysis Works
静态代码分析的工作原理