LoginSignup
0
0

More than 3 years have passed since last update.

Pylintを実行して結果を読む

Last updated at Posted at 2020-10-17

以下のソースコードに対してPylintをかけてみる。

A = 10

print(A)

実行コマンドは以下です。-rnをつけると余計なログを出力しないようにできるらしい。

pylint -rn test.py

実行結果は以下です。

************* Module test
test.py:1:0: C0111: Missing module docstring (missing-docstring)

-------------------------------------------------------------------
Your code has been rated at 5.00/10 (previous run: 10.00/10, -5.00)

5.00/10 点でした。docstringがないと怒られました。
ソースコード品質の根拠にするためには信頼できそうですが、100点を目指すのは難しそうです。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0