Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ Use Pylint regulate your Python code     - Why you should choose Python Programming (Programming)

- Integrated security administrator Linux accident management (Linux)

- Depth understanding of JavaScript new mechanism (Programming)

- How to restart after a crash Cinnamon (Linux)

- Ftp user to create multiple virtual machines to support different access rights Examples (Server)

- How to remove the Linux memory Cache, Buffer and swap space (Linux)

- Ubuntu prompt / lack of boot space solutions (Linux)

- jdbc Oracle database connection string writing pluggable (Database)

- IOS distributed management using GitHub project development (Linux)

- How to install PlayOnLinux 4.2.5 under Ubuntu 14.04 / 12.04 (Linux)

- Use Bash script write CVS version control (Server)

- After SSH change the default port, how to use Git (Linux)

- Using Java program determines whether it is a leap year (Programming)

- Performance issues under CentOS 6.5 VLAN devices (Linux)

- About Linux backdoor (Linux)

- A new method for Linux hidden files (Linux)

- Debian 7.6 install Nvidia graphics driver (Linux)

- How to view the Linux program or process used in the library (Linux)

- Acquaintance C ++: the most simple C ++ program (Programming)

- wget command Walkthrough (Linux)

  Use Pylint regulate your Python code
  Add Date : 2017-04-13      
  Pylint is a Python code style checking tool, similar to pychecker function, with PEP8 default style as a code standard, it provides features include: length, check the tag lines of code to check whether the naming compliant interface to check whether the statement was real implementation, etc. for more information refer to: http: //docs.pylint.org/.


sudo apt-get install pylint? #Ubuntu
pip install pyint? #windows
Installation can view more: http: //www.pylint.org/#install


pylint [options] module_or_package
For example, run: pylint setup.py, output?:

No config file found, using default configuration
************* Module setup
C: 1,0: Missing docstring
C: 6,0: Invalid name "here" for type constant (. Should match (([A-Z _] [A-Z0-9 _] *) | (__ * __)) $)
C: 10,0: Invalid name "requires" for type constant (. Should match (([A-Z _] [A-Z0-9 _] *) | (__ * __)) $)
C: 31,0: Comma not followed by a space
if sys.version_info [: 3] < (2,5,0):
This part is the analysis of the results of the source code, which is the format: The first line is this: ****************** name Module module next few lines is the message in the format:


(C) Convertion, refers to the violation of the standard coding style
(R) Refactor, means very bad written code.
(W) Warn, some Python-specific issues.
(E) Error, it is likely to be errors in the code.
(F) Fatal, Error Pylint prevent further operation.
If you look at the message and not want to see the back of a very long period of the report, use parameters:
pylint -r n The second part is the number of statistical reports, this part may not be concerned.
- Orabbix binding Python send graphical reports (Linux)
- VNC connection VMware vSphere ESXi 5.5 (Linux)
- Vi editor Introduction (Linux)
- RPM package management tools under Linux (Linux)
- How VirtualBox and VMware virtual machine conversion (Linux)
- Linux System Getting Started Tutorial: how to find information on Linux-embedded module (Linux)
- Java Concurrency - processes and threads (Programming)
- Sqoop data export import command (Database)
- To install Cinnamon desktop environment on your Ubuntu 14.04 / 12.04 (Linux)
- Linux System Getting Started Learning: Disable HTTP forwarding wget in (Linux)
- Partition contrast manifestations under Windows and Linux (Linux)
- Terminal Linux command prints - echo (Linux)
- RHEL5.x RHEL6.x replace CentOS yum source (Linux)
- How to configure FirewallD in RHEL / CentOS 7 and Fedora in (Linux)
- How to use the process on the desktop xkill end Linux (Linux)
- The need to avoid a gap of InnoDB lock (Database)
- Fedora 21 setting boot script (Linux)
- Qt shared memory interprocess communication (Programming)
- Linux system installation Gitlab (Server)
- Linux operating process information (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.