nitc :: MPackageStats :: _documentation_score
Documentation score (between 0 and 100)nitc :: MPackageStats :: _warnings_per_kloc
Number of warnings per 1000 lines of code (w/kloc)nitc :: MPackageStats :: defaultinit
nitc :: MPackageStats :: documentation_score
Documentation score (between 0 and 100)nitc :: MPackageStats :: documentation_score=
Documentation score (between 0 and 100)nitc :: MPackageStats :: warnings=
Number of warnings and advicesnitc :: MPackageStats :: warnings_per_kloc
Number of warnings per 1000 lines of code (w/kloc)nitc :: MPackageStats :: warnings_per_kloc=
Number of warnings per 1000 lines of code (w/kloc)nitc $ MPackageStats :: SELF
Type of this instance, automatically specialized in every classnitc :: json_model $ MPackageStats :: core_serialize_to
Actual serialization ofself
to serializer
nitc :: json_model $ MPackageStats :: from_deserializer
Create an instance of this class from thedeserializer
nitc :: MPackageStats :: _documentation_score
Documentation score (between 0 and 100)nitc :: MPackageStats :: _warnings_per_kloc
Number of warnings per 1000 lines of code (w/kloc)serialization :: Serializable :: accept_inspect_serializer_core
serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePackserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
core :: Object :: defaultinit
nitc :: MPackageStats :: defaultinit
nitc :: MPackageStats :: documentation_score
Documentation score (between 0 and 100)nitc :: MPackageStats :: documentation_score=
Documentation score (between 0 and 100)serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraycore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).serialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
serialization :: Serializable :: serialize_to_or_delay
Accept references or force direct serialization (usingserialize_to
)
serialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
nitc :: MPackageStats :: warnings=
Number of warnings and advicesnitc :: MPackageStats :: warnings_per_kloc
Number of warnings per 1000 lines of code (w/kloc)nitc :: MPackageStats :: warnings_per_kloc=
Number of warnings per 1000 lines of code (w/kloc)Serializer::serialize
# MPackage statistics for the catalog
class MPackageStats
# Number of modules
var mmodules = 0
# Number of classes
var mclasses = 0
# Number of methods
var mmethods = 0
# Number of lines of code
var loc = 0
# Number of errors
var errors = 0
# Number of warnings and advices
var warnings = 0
# Number of warnings per 1000 lines of code (w/kloc)
var warnings_per_kloc = 0
# Documentation score (between 0 and 100)
var documentation_score = 0
# Number of commits by package
var commits = 0
# Score by package
#
# The score is loosely computed using other metrics
var score = 0
end
src/catalog/catalog.nit:587,1--621,3
# MPackage statistics for the catalog
redef class MPackageStats
serialize
redef fun core_serialize_to(v) do
super
v.serialize_attribute("mmodules", mmodules)
v.serialize_attribute("mclasses", mclasses)
v.serialize_attribute("mmethods", mmethods)
v.serialize_attribute("loc", loc)
v.serialize_attribute("errors", errors)
v.serialize_attribute("warnings", warnings)
v.serialize_attribute("warnings_per_kloc", warnings_per_kloc)
v.serialize_attribute("documentation_score", documentation_score)
v.serialize_attribute("commits", commits)
v.serialize_attribute("score", score)
end
end
src/doc/templates/json_model.nit:419,1--436,3