~ubuntu-branches/ubuntu/precise/padre/precise

« back to all changes in this revision

Viewing changes to xt/critic-core.ini

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2010-05-08 09:17:22 UTC
  • mfrom: (1.2.1 upstream) (10.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100508091722-y6008jtk0ap6znyn
Tags: 0.60.ds1-3
rules: run tests with HOME=$fake_home to avoud failing when $HOME points
to a non-existent location. Closes: #579289

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is the Perl::Critic policy file for Padre.
 
2
#
 
3
# The general rule here is to only add one rule at a time to this file,
 
4
# and generally only in situations where we will not generate many false
 
5
# positives (requiring spammy # no critic entries) and where we will not
 
6
# generate cargo cult behaviour in contributors.
 
7
#
 
8
# For example, using the ProhibitExcessComplexity policy would be a BAD idea
 
9
# for Padre, because many of the classes that represent Wx widgets and
 
10
# dialogs need to have large (and sometimes complex) constructors.
 
11
# Prohibiting complexity results in "Bulldozing" behaviour, where arbitrary
 
12
# chunks of constructors get removed and put in _setup_whatever methods.
 
13
# The constructor is now just as complex as it always was, except that now
 
14
# the code is scatterred all over the file and it is even harder to maintain
 
15
# than it was in one big method.
 
16
 
 
17
severity = 4
 
18
 
 
19
 
 
20
 
 
21
 
 
22
 
 
23
######################################################################
 
24
# Disabling critic sucks, configure a better policy
 
25
 
 
26
[Miscellanea::ProhibitUnrestrictedNoCritic]
 
27
severity = 5
 
28
 
 
29
[Miscellanea::ProhibitUselessNoCritic]
 
30
severity = 5
 
31
 
 
32
 
 
33
 
 
34
 
 
35
 
 
36
######################################################################
 
37
# Temporarily downgraded as the noise obscures more important tests
 
38
[Subroutines::RequireFinalReturn]
 
39
severity = 3
 
40
 
 
41
[Subroutines::RequireArgUnpacking]
 
42
severity = 3
 
43
 
 
44
[Subroutines::ProhibitBuiltinHomonyms]
 
45
severity = 3
 
46
 
 
47
[Modules::ProhibitAutomaticExportation]
 
48
severity = 3
 
49
 
 
50
 
 
51
 
 
52
 
 
53
 
 
54
######################################################################
 
55
# Policies that Padre disagrees with or tolerates as worth the risk
 
56
 
 
57
[-BuiltinFunctions::ProhibitStringyEval]
 
58
[-ClassHierarchies::ProhibitExplicitISA]
 
59
[-CodeLayout::ProhibitHardTabs]
 
60
[-ControlStructures::ProhibitUnlessBlocks]
 
61
[-Subroutines::ProhibitExplicitReturnUndef]
 
62
[-TestingAndDebugging::ProhibitNoStrict]
 
63
[-TestingAndDebugging::ProhibitNoWarnings]
 
64
[-ValuesAndExpressions::ProhibitConstantPragma]
 
65
[-ValuesAndExpressions::ProhibitMixedBooleanOperators]
 
66
[-Variables::ProhibitPunctuationVars]
 
67
 
 
68
[-InputOutput::RequireBriefOpen]
 
69