nitmetrics: display all metrics by default
authorAlexandre Terrasa <alexandre@moz-code.org>
Sat, 22 Jun 2013 01:30:45 +0000 (21:30 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Sat, 22 Jun 2013 01:30:45 +0000 (21:30 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/nitmetrics.nit

index 561d84c..7e99712 100644 (file)
@@ -57,7 +57,7 @@ print "*** METRICS ***"
 
 # All metrics computation ?
 var all = toolcontext.opt_all.value
-
+if not toolcontext.opt_inheritance.value and not toolcontext.opt_refinement.value and not toolcontext.opt_self.value and not toolcontext.opt_nullables.value and not toolcontext.opt_static_types.value and not toolcontext.opt_rta.value then all = true
 # Inheritance usage metrics
 if all or toolcontext.opt_inheritance.value then
        print ""