Show results in console

Property definitions

nitc $ BadConception :: print_result
	# Show results in console
	fun print_result is abstract
src/metrics/codesmells_metrics.nit:180,2--181,29

nitc $ FeatureEnvy :: print_result
	redef fun print_result do
		print phase.toolcontext.format_h2("{desc}:")
		if self.bad_methods.not_empty then
			print "	Affected method(s):"
			for method in self.bad_methods do
				var max_class_call = method.class_call.max
				if max_class_call != null then
					# Check if the type of max call class is generique
					if max_class_call.mclass.mclass_type isa MGenericType and not phase.toolcontext.opt_move_generics.value then
						print "		-{method.name}({method.msignature.mparameters.join(", ")}) {method.total_self_call}/{method.class_call[max_class_call]}"
					else
						print "		-{method.name}({method.msignature.mparameters.join(", ")}) {method.total_self_call}/{method.class_call[max_class_call]} move to {max_class_call}"
					end
				end
			end
		end
	end
src/metrics/codesmells_metrics.nit:277,2--293,4

nitc $ NoAbstractImplementation :: print_result
	redef fun print_result do
		print phase.toolcontext.format_h2("{desc}:")
		if self.bad_methods.not_empty then
			print "	Affected method(s):"
			for method in self.bad_methods do
				print "		-{method.name}"
			end
		end
	end
src/metrics/codesmells_metrics.nit:359,2--367,4