Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ Use Pylint regulate your Python code     - HBase table data processing tab (Database)

- Several start-up mode of Tomcat (Server)

- OpenSSL Introduction and compilation steps on Windows, Linux, Mac systems (Linux)

- CentOS 6.5 installation and simple configuration Nginx (Server)

- Installation Sublime Text 3 (Build 3065) text editor in Ubuntu (Linux)

- wget command Walkthrough (Linux)

- CentOS6.3 build a Python 3.3 environment to access Oracle 11gR2 (Database)

- Depth understanding of DB2 table space (Tablespace) (Database)

- HDFS Distributed File System Resource Manager Developer summary (Server)

- CentOS7 install JAVA notes (Linux)

- Linux Basic Course: Install the software from source code (Linux)

- The Java utility, JavaMail (Programming)

- Linux System Getting Started Learning: compile and install ixgbe driver in Ubuntu or Debian (Linux)

- MongoDB data replication and data slices (Database)

- Binary search is really easy as you think you do (Programming)

- Linux fixes fatal error: x264.h: No such file or directo (Linux)

- Using Java arrays implement sequential stack (Programming)

- Git remote repository Explanation (Linux)

- SSL VPN SSL VPN access to security websites patron (Linux)

- Let 32 Linux / CentOS system to support more than 4G memory (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.
- Hadoop upload files error solved (Server)
- Installing software on Ubuntu: apt-get and dpkg difference (Linux)
- Gentoo: existing preserved libs problem solving (Linux)
- How to install or upgrade to the Linux kernel in Ubuntu 4.2 (Linux)
- Build a super simple "hardware" firewall router (Linux)
- Zombie process under Linux (Linux)
- Spring3 + SpringMVC + Hibernate4 full annotation environment configuration (Server)
- Use C program in JavaScript (Programming)
- MyCAT read and write separation of MySQL (Database)
- History and Statistics tuptime use tools to view Linux server system boot time (Server)
- Linux NIC configuration (Linux)
- Ubuntu install code editor Sublime Text 3 (Linux)
- Linux CPU Monitoring Index (Linux)
- Java Concurrency - processes and threads (Programming)
- Transfer files to Windows and Linux (Linux)
- Build your own Web server under Ubuntu Linux system (Server)
- Chromium Install Flash Official Guide (Linux)
- Configuring xdebug debugging environment in Ubuntu 14.04 under the PhpStorm (Linux)
- Django Signals from practice to source code analysis (Programming)
- Java Foundation - implicit conversion vs cast (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.