Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"source": "./lib",
"destination": "./docs",
"includes": ["\\.js$"],
"excludes": [],
"index": "./README.md",
"package": "./package.json",
"plugins": [
{
"name": "esdoc-standard-plugin",
"option": {
"lint": {"enable": true},
"coverage": {"enable": true},
"accessor": {"access": ["public", "protected", "private"], "autoPrivate": true},
"undocumentIdentifier": {"enable": false},
"unexportedIdentifier": {"enable": true},
"typeInference": {"enable": true},
"brand": {
"logo": "",
"title": "jsinspect",
"description": "jsinspect",
"repository": "https://github.com/danielstjules/jsinspect",
"site": "",
"author": "https://github.com/danielstjules",
"image": "https://github.com/danielstjules/logo.png"
},
"test": {
"source": "./spec/",
"interfaces": ["describe", "it", "context", "suite", "test"],
"includes": ["(spec|Spec|test|Test)\\.js$"],
"excludes": ["\\.config\\.js$"]
}
}
},
{
"name": "esdoc-ecmascript-proposal-plugin",
"option": {
"classProperties": true,
"objectRestSpread": true,
"doExpressions": true,
"functionBind": true,
"functionSent": true,
"asyncGenerators": true,
"decorators": true,
"exportExtensions": true,
"dynamicImport": true
}
}
]
}
3 changes: 3 additions & 0 deletions lib/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ var NodeUtils = require('./nodeUtils');
var crypto = require('crypto');
var stable = require('stable');

/**
*
*/
class Inspector extends EventEmitter {
/**
* Creates a new Inspector, which extends EventEmitter. filePaths is expected
Expand Down
3 changes: 3 additions & 0 deletions lib/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ var strip = require('strip-indent');
var crypto = require('crypto');
var NodeUtils = require('./nodeUtils');

/**
*
*/
class Match {
/**
* Creates a new Match.
Expand Down
3 changes: 3 additions & 0 deletions lib/nodeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ var childKeys = {
JSXAttribute: ['name', 'value'],
};

/**
*
*/
class NodeUtils {
/**
* Walks a root node's subtrees using DFS, invoking the passed callback with
Expand Down
3 changes: 3 additions & 0 deletions lib/reporters/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ var util = require('util');
var path = require('path');
var chalk = require('chalk');

/**
*
*/
class BaseReporter {
/**
* A base reporter from which all others inherit. Registers a listener on the
Expand Down
3 changes: 3 additions & 0 deletions lib/reporters/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ var util = require('util');
var chalk = require('chalk');
var BaseReporter = require('./base');

/**
*
*/
class DefaultReporter extends BaseReporter {
/**
* The default reporter, which displays both file and line information for
Expand Down
3 changes: 3 additions & 0 deletions lib/reporters/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ var path = require('path');
var chalk = require('chalk');
var BaseReporter = require('./base');

/**
*
*/
class JSONReporter extends BaseReporter {
/**
* A JSON reporter, which displays both file and line information for
Expand Down
3 changes: 3 additions & 0 deletions lib/reporters/pmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ var path = require('path');
var chalk = require('chalk');
var BaseReporter = require('./base');

/**
*
*/
class PMDReporter extends BaseReporter {
/**
* A PMD CPD XML reporter, which tries to fit jsinspect's output to something
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@
"devDependencies": {
"concat-stream": "^1.5.0",
"dirmap": "^0.0.2",
"esdoc": "^1.0.4",
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
"esdoc-standard-plugin": "^1.0.0",
"expect.js": "^0.3.1",
"mocha": "^3.5.0"
},
"bin": {
"jsinspect": "./bin/jsinspect"
},
"scripts": {
"test": "mocha -R spec spec spec/reporters"
"test": "mocha -R spec spec spec/reporters",
"docs": "./node_modules/.bin/esdoc",
"docs-open": "npm run docs && open docs/index.html"
}
}