Skip to content

v0.0.19 does weird validation #41

@kristerkari

Description

@kristerkari

Using JSCS v1.7.3

With jsDoc options:

    "jsDoc": {
        "checkParamNames": true,
        "checkRedundantParams": true,
        "requireParamTypes": true,
        "checkReturnTypes": true,
        "requireReturnTypes": true,
        "checkTypes": true,
        "checkRedundantReturns": true,
        "checkRedundantAccess": true,
        "leadingUnderscoreAccess": "private"
    }

This code in v0.0.19:

/**
 * Test
 *
 * @param {String} mystr
 * @return {String}
 */
exports.testStr = function(mystr) {
    'use strict';
    return mystr;
};

Validates as:

↳ jscs server/lib/test.js
redundant param statement at server/lib/test.js :
     1 |/**
--------^
     2 | * Test
     3 | *

missing param name at server/lib/test.js :
     3 | *
     4 | * @param {String} mystr
     5 | * @return {String}
-----------^
     6 | */
     7 |exports.testStr = function(mystr) {


2 code style errors found.

v0.0.16 will pass the checks

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions