eslint-plugin-crisp 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-crisp",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "Custom EsLint Rules for Crisp",
5
5
  "main": "index.js",
6
6
  "author": "Crisp IM SAS",
@@ -25,6 +25,7 @@ module.exports = {
25
25
  // Base header comment patterns
26
26
  let basePatterns = [
27
27
  "\n \\* This file is part of .+\\n \\*\\n \\* Copyright \\(c\\) \\d{4} Crisp IM SAS\\n \\* All rights belong to Crisp IM SAS\\n ",
28
+ "\n \\* This file is part of .+\\n \\*\\n .+ script\\*\\n \\* Copyright: \\d{4}, Crisp IM SAS\\n \\* Author: .+\\n ",
28
29
  "\n \\* Bundle: .+\\n \\* Project: .+\\n \\* Author: .+\\n \\* Copyright: \\d{4}, Crisp IM SAS\\n "
29
30
  ];
30
31
 
@@ -39,6 +39,15 @@ module.exports = {
39
39
  function checkNode(node, jsdocParams, i) {
40
40
  jsdocParam = jsdocParams[i];
41
41
 
42
+ if (!jsdocParam) {
43
+ context.report({
44
+ node,
45
+ message: "No matching JSDoc param found (this was probably missed by 'jsdoc/require-param')"
46
+ });
47
+
48
+ return;
49
+ }
50
+
42
51
  if (node.type === "ObjectPattern") {
43
52
  i++;
44
53