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
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ var analyze = require( '@stdlib/_tools/static-analysis/js/lloc-file-list' );
Calculates [logical lines of code][@stdlib/_tools/static-analysis/js/incr/lloc] (LLOC) for a list of JavaScript files.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

analyze( files, clbk );
Expand All @@ -66,6 +68,8 @@ The function accepts the following `options`:
By default, the function performs a cumulative analysis. To return a LLOC calculation for each file in `files`, set the `cumulative` option to `false`.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

var opts = {
Expand All @@ -89,6 +93,8 @@ function clbk( error, results ) {
Synchronously calculates [logical lines of code][@stdlib/_tools/static-analysis/js/incr/lloc] (LLOC) for a list of JavaScript files.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

var results = analyze.sync( files );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ var analyze = require( '@stdlib/_tools/static-analysis/js/sloc-file-list' );
Calculates [source lines of code][@stdlib/_tools/static-analysis/js/incr/sloc] (SLOC) for a list of JavaScript files.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

analyze( files, clbk );
Expand All @@ -66,6 +68,8 @@ The function accepts the following `options`:
By default, the function performs a cumulative analysis. To return a SLOC calculation for each file in `files`, set the `cumulative` option to `false`.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

var opts = {
Expand All @@ -89,6 +93,8 @@ function clbk( error, results ) {
Synchronously calculates [source lines of code][@stdlib/_tools/static-analysis/js/incr/sloc] (SLOC) for a list of JavaScript files.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

var results = analyze( files );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ var analyze = require( '@stdlib/_tools/static-analysis/js/summarize-file-list' )
Performs a static [summary analysis][@stdlib/_tools/static-analysis/js/incr/program-summary] for a list of JavaScript files.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

analyze( files, clbk );
Expand All @@ -66,6 +68,8 @@ The function accepts the following `options`:
By default, the function performs a cumulative static [summary analysis][@stdlib/_tools/static-analysis/js/incr/program-summary]. To return a separate [program summary][@stdlib/_tools/static-analysis/js/program-summary] for each file in `files`, set the `cumulative` option to `false`.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

var opts = {
Expand All @@ -86,6 +90,8 @@ function clbk( error, results ) {
Synchronously performs a static [summary analysis][@stdlib/_tools/static-analysis/js/incr/program-summary] for a list of JavaScript files.

```javascript
```markdown
```text
var files = [ './beep.js', './boop.js' ];

var results = analyze.sync( files );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
* limitations under the License.
*/

/* eslint-disable no-new-wrappers */

'use strict';

var Number = require( '@stdlib/number/ctor' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ var obj = {
'beep': 'boop'
};

throw obj; // eslint-disable-line no-throw-literal
throw obj;
Loading