Skip to content

Commit

Permalink
fix(require-description): only report blocking of description tag by …
Browse files Browse the repository at this point in the history
…user if "tag" option is set
  • Loading branch information
brettz9 committed Jul 14, 2019
1 parent b28a407 commit 135acd1
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions test/rules/assertions/requireDescriptionCompleteSentence.js
Expand Up @@ -567,6 +567,32 @@ export default {
tags: ['see']
}
]
},
{
code: `
/**
* @param foo Foo bar
*/
function quux (foo) {
}
`,
errors: [
{
line: 3,
message: 'Sentence must end with a period.'
}
],
options: [{
tags: ['param']
}],
settings: {
jsdoc: {
tagNamePreference: {
description: false
}
}
}
}
],
valid: [
Expand Down Expand Up @@ -823,6 +849,43 @@ export default {
tags: ['param']
}
]
},
{
code: `
/**
* @param foo Foo bar.
*/
function quux (foo) {
}
`,
options: [{
tags: ['param']
}],
settings: {
jsdoc: {
tagNamePreference: {
description: false
}
}
}
},
{
code: `
/**
*
*/
function quux (foo) {
}
`,
settings: {
jsdoc: {
tagNamePreference: {
description: false
}
}
}
}
]
};

0 comments on commit 135acd1

Please sign in to comment.