Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pylint.sh
blob: 193c79b709421bf4a5ed2a86e24dffd9ccecd33b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

# Errors that we may fix in the future
#
# C0301 Line length
# W0201 Attribute defined outside __init__
# R0201 Method could be a function
TODO="C0301,W0201,R0201"

# Errors we don't like
#
# W0613 Unused argument (glib signals)
# W0511 - FIXME/TODO/XXX
# W0302 - Too many lines in module
# I0011 - Locally disabled messages
DISABLE="W0613,W0511,W0612,W0302,I0011"

MSGS="$TODO,$DISABLE"
ARG="sugar"

pylint \
  --disable-all \
  --include-ids=y \
  --enable-variables=y \
  --enable-exceptions=y \
  --enable-miscellaneous=y \
  --enable-format=y \
  --enable-classes=y \
  --disable-msg=$MSGS \
  --reports=n \
  --enable-metrics=n \
  --indent-string="	" \
  --ignore="SVGdraw.py" \
  $ARG