Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docstat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docstat

  • 1.0.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

docstat Build Status

Documentation metrics for libraries, optimized for Cocoa. docstat takes documentation sets (*.docset) generated via appledoc and similar tools and extracts general statistics. It also includes a binary for testing that coverage exceeds a given ratio.

Usage

Printing token statistics

The included docstat binary prints the number of tokens and coverage in a given documentation set

Testing for coverage

The included docstat-test binary tests a given documentation set for a specified coverage level:

$ docstat-test [docset path] (expected coverage ratio)

If no expected coverage ratio is specified, the default is '0.9'. On failure, the process exits with a status code of 1.

Processing coverage data

DocStat.process(docset_path) returns a Hash containing information about all of the documented tokens in the following structure:

{
  'ratio': decimal
  'containers': [
    {
      'name': 'class name',
      'ratio': decimal,
      'tokens': [
        {
          'name': 'name of token',
          'type': 'property or message type',
          'abstract': 'description of token',
          'declaration': 'formal declaration',
          'returns': 'description of return value',
          'documented': boolean
        }, ...
      ]
    }, ...
  ]
}

Installation

Run gem install docstat in a terminal. docstat depends on the sqlite3 ruby library.

Development

docstat is tested using bacon.

Install development dependencies via bundle install.

FAQs

Package last updated on 01 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc