Skip to content
Permalink
Browse files

Update: Ignore case in jsdoc tags (fixes #4576)

  • Loading branch information...
alberto committed Dec 23, 2015
1 parent 69865ac commit 9ea6b366bdb78150ac4bd779a27841858c070b00
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/rules/valid-jsdoc.js
  2. +1 −0 tests/lib/rules/valid-jsdoc.js
@@ -118,7 +118,7 @@ module.exports = function(context) {

jsdoc.tags.forEach(function(tag) {

switch (tag.title) {
switch (tag.title.toLowerCase()) {

case "param":
case "arg":
@@ -38,6 +38,7 @@ ruleTester.run("valid-jsdoc", rule, {
"/**\n* Description\n* @param {Object} p bar\n* @param {string[]} p.files qux\n* @param {Function} cb baz\n* @returns {void} */\nfunction foo(p, cb){}",
"/**\n* Description\n* @override */\nfunction foo(arg1, arg2){ return ''; }",
"/**\n* Description\n* @inheritdoc */\nfunction foo(arg1, arg2){ return ''; }",
"/**\n* Description\n* @inheritDoc */\nfunction foo(arg1, arg2){ return ''; }",
{
code: "/**\n* Description\n* @return {void} */\nfunction foo(){}",
options: [{}]

0 comments on commit 9ea6b36

Please sign in to comment.
You can’t perform that action at this time.