From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CBD89138247 for ; Fri, 10 Jan 2014 09:37:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1809FE0BCE; Fri, 10 Jan 2014 09:37:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85CAEE0AFF for ; Fri, 10 Jan 2014 09:37:58 +0000 (UTC) Received: by smtp.gentoo.org (Postfix, from userid 2097) id D8DAF33F587; Fri, 10 Jan 2014 09:37:57 +0000 (UTC) From: antarus@gentoo.org To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [PATCH] First draft of a portage pylint. Date: Fri, 10 Jan 2014 01:38:09 -0800 Message-Id: <1389346689-29957-1-git-send-email-antarus@gentoo.org> X-Mailer: git-send-email 1.8.1.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 048466d5-f044-4bc8-89cc-5dc3b32f36e3 X-Archives-Hash: 43a85a2ab67abfd0c32593625b3f674d From: Alec Warner --- pylintrc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pylintrc diff --git a/pylintrc b/pylintrc new file mode 100644 index 0000000..cc15ec4 --- /dev/null +++ b/pylintrc @@ -0,0 +1,31 @@ +[MASTER] +profile=no +ignore=.git +persistent=no + +[REPORTS] +# Don't print reports by default, they are spammy. We primarily want linting. +reports=no + +[BASIC] +# Portage uses stuff like i,j,k for counters, e,ex for exceptions. +# Don't feel too guilty about adding stuff to here. + +# NOTE(antarus): Don't add 'x' here, as it is currently used inappropriately +# in a ton of legacy code. We want to fix those, then I'd consider adding 'x' and 'y' +good-names=i,j,k,e,ex + +[FORMAT] +# Portage uses tabs for indenting +indent-string='\t' + +# We have arbitrarily chosen 80 chars. +# Some lines will be anonying to fix (mostly urls, and other long strings.) +# You should use inline pylint disable messages to silence those. +max-line-length=80 + +# Just make it really large for now. +max-module-lines=20000 + +#[MESSAGES CONTROL] +#disable-msg=W0312 -- 1.8.1.2