public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] First draft of a portage pylint.
@ 2014-01-10  9:38 antarus
  2014-01-11  2:51 ` Alexander Berntsen
  2014-01-13 23:27 ` Mike Frysinger
  0 siblings, 2 replies; 3+ messages in thread
From: antarus @ 2014-01-10  9:38 UTC (permalink / raw
  To: gentoo-portage-dev

From: Alec Warner <antarus@gentoo.org>

---
 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-13 23:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10  9:38 [gentoo-portage-dev] [PATCH] First draft of a portage pylint antarus
2014-01-11  2:51 ` Alexander Berntsen
2014-01-13 23:27 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox