Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列連結は悪臭がするので、out CIパイプラインのlintステップで自動検知して開発者に報告したい。
たとえば、 を検出"The user " + user.name + " is blocked"し、メソッドの使用を提案します.format- "The user {} is blocked".format(user.name)。
"The user " + user.name + " is blocked"
.format
"The user {} is blocked".format(user.name)
pylintとflake8でルールを探しましたが、この悪い習慣を検出しようとするものはありません。