Skip to content

markknol/haxe-doc-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haxe doc stats

Are we documented yet?

Display how much your Haxe project is documented. This generator uses Neko to generate a static page with stats about your Haxe project code documentation coverage. The tool is created to get more information about the Haxe Standard Library API documentation, but can be used for any project.

  • Displays documentation amounts for types and its members (global and detailed per package)
  • Packages can be expanded to see what is undocumented

Preview

To see the stats of the Haxe Standard Library: http://haxe.stroep.nl/api-stats/3.3/

api-stats

How to use

Add -xml xml/output.xml to your project build configuration (hxml or compilation flags). This will produce a .xml file in your project with documentation info which you'll need for this tool.

Put it in a folder and run the following command:

neko DocStats.n xml/

This will produce a index.html file in the xml/ folder.


For more specific use, there are more parameters:

neko DocStats.n arg0 arg1 arg2 arg3
  [arg0] path to xml directory. default: 'xml/'
  [arg1] path to output file. default: 'xml/index.html'
  [arg2] path to template html-file. default: 'layout.html' 
  [arg3] path to log-file. default: 'xml/log.txt

Details

These are the rules/definitions used by this statistics:

  • "Types" can be classes, typedefs, abstracts, enums, interfaces.

  • "Members" are fields, functions, statics, enum constructors.

  • Everything that is private/override or has metadata @:dox(hide) or @:noCompletion gets skipped.

  • The quality of the documentation is not measured.

  • The colors work like this:

    • higher than 75% is good
    • lower than 10% is bad

More

  • The more documentation your project has, the better.
  • Use Dox to generate API documentation for your project.

About

Are we documented yet? Code documentation coverage metrics for Haxe

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published