Skip to content

Commit

Permalink
fix(match-description, require-description-complete-sentence): do not…
Browse files Browse the repository at this point in the history
… report blocking of tag by user for `description` tag (the tag is not required by these rules)
  • Loading branch information
brettz9 committed Jul 14, 2019
1 parent 135acd1 commit 7102677
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions test/rules/assertions/matchDescription.js
Expand Up @@ -680,6 +680,57 @@ export default {
]
}
]
},
{
code: `
/**
* @param foo Foo bar
*/
function quux (foo) {
}
`,
errors: [
{
line: 3,
message: 'JSDoc description does not satisfy the regex pattern.'
}
],
options: [{
tags: {
param: true
}
}],
settings: {
jsdoc: {
tagNamePreference: {
description: false
}
}
}
},
{
code: `
/**
* Foo bar
*/
function quux (foo) {
}
`,
errors: [
{
line: 3,
message: 'JSDoc description does not satisfy the regex pattern.'
}
],
settings: {
jsdoc: {
tagNamePreference: {
description: false
}
}
}
}
],
valid: [
Expand Down Expand Up @@ -1130,6 +1181,40 @@ export default {
}
}
]
},
{
code: `
/**
* @param foo Foo bar.
*/
function quux (foo) {
}
`,
settings: {
jsdoc: {
tagNamePreference: {
description: false
}
}
}
},
{
code: `
/**
*
*/
function quux () {
}
`,
settings: {
jsdoc: {
tagNamePreference: {
description: false
}
}
}
}
]
};

0 comments on commit 7102677

Please sign in to comment.