vigetlabs / grunt-complexity

A JavaScript complexity analysis grunt task.
MIT License
221 stars 22 forks source link

exclude option not working #44

Open ffarrukh opened 8 years ago

ffarrukh commented 8 years ago

I have been trying to exclude a java-script file from script and it seems to ignore the exclude option

   complexity: {
      generic: {
              src: ['themes/app/scripts/*.js', 'ui-tests/specs/*.js', 'unit-tests/specs/*.js'],
              exclude: ['themes/app/scripts/json3.min.js'],
              options: {
                  breakOnErrors: true,
                  jsLintXML: 'report.xml',         // create XML JSLint-like report
                  checkstyleXML: 'checkstyle.xml', // create checkstyle report
                  pmdXML: 'pmd.xml',               // create pmd report
                  errorsOnly: false,               // show only maintainability errors
                  cyclomatic: [3, 7, 12],          // or optionally a single value, like 3
                  halstead: [8, 13, 20],           // or optionally a single value, like 8
                  maintainability: 100,
                  hideComplexFunctions: false,     // only display maintainability
                  broadcast: false                 // broadcast data over event-bus
              }
          }
      },

I'm trying to exclude json3.min.js but it is still including it any thoughts?