{"_id":"grunt-regex-check","_rev":"32-363060520fe803ee279bdc8bf0ec86c9","name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","dist-tags":{"latest":"0.1.10"},"versions":{"0.1.0":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.0","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"underscore":"~1.4.4"},"_id":"grunt-regex-check@0.1.0","dist":{"shasum":"db02024077878607593432a1429e89e5611b9716","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.0.tgz","integrity":"sha512-vtoQ6TUp0HVmtOhr9jkGlQ/RBb+Ce/C2LXQdkqbClkUGKR7LRdmuXnYOId/AChTrOm48nK3RVdEVpSp6Kc+HIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbk3SujzxgdEmbHQSwLETVD9ZMa8TEbDR+8IBUh/I2mQIhAJOd4V+q5j+JU9qG59epvC98VN0IjQ8bJuFPvgDfgqfs"}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}]},"0.1.1":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.1","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"underscore":"~1.4.4"},"_id":"grunt-regex-check@0.1.1","dist":{"shasum":"de9f2f6cec6c8c3a553c3c2ed4be1b9caa763843","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.1.tgz","integrity":"sha512-s/VqAICb9TvOUMxsemXuivfzRXQFe/axNu+yue9l12vkQKSGH/l+TBsCaWpKLu+WbwI42oTDNcaBkEbTHtsoww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOu+nDR7x6ZYOASO23mV0/MvqdCbnUHN9z/7tY71ip5AiEA32tHwEJBCF7lEoI5n/bxCfcFEEgs72JBQl+SC6pJfPY="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}]},"0.1.2":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.2","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"underscore":"~1.4.4"},"_id":"grunt-regex-check@0.1.2","dist":{"shasum":"8a43075ad62bc9fb4567656f5bb2cc8fe81cfd8f","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.2.tgz","integrity":"sha512-GUqQLcSKJRjY+CG0Okfjc3GfXp9JmOIH1VAsStXVQUlsx20+K3CKnjY1zy3bP2IsQIxtoOjpGsmeRIYlbmOMcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCihlML78He83g/gHyZbDbh80Y/m3sQQP5x7S8Hs5fNcgIhAJ0zHG+2UvjvV7sOvUWzDX5ATI8K8+a4YnWnCtzW/gt8"}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}]},"0.1.3":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.3","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"dependencies":{"underscore":"~1.4.4"},"_id":"grunt-regex-check@0.1.3","dist":{"shasum":"5f87c30719f20b7426d9b92c14d82816077b2298","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.3.tgz","integrity":"sha512-QBH5/MBmxpPU2zBe3Z7LKOIeyvpZ80gjf2soIKUxlMkYFc1tecLGTZ+1j3m7/pBtmGZK8adMY7Y9Ok5JmS4jsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF1AKpmWlGnNM4GVUY8VsayLZmv7IbHjVQB/mqzgOyeSAiB61+j501ZRxr+qNJk71Q3i2Y5DvVD7adVJ9nQBgUhX3A=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}]},"0.1.4":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.4","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-regex-check@0.1.4","dist":{"shasum":"e337e091deff6bbca8660c4e34de93ab8d7e580e","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.4.tgz","integrity":"sha512-/6andlR4nr8kV5QfDG54jauIbJed2ir2gqjV2iwOpnSZ+HR2m5RGSbq9aqpgNm3ym1lDARByf7UrA2EdlPcn7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH57hWOESWAhPtbwG4Ny4SIZG5Nf/JLqlzxms/IBO33gIhAIZiD8Zs7obyMn1yiYJMIIxY3Yk3ZrmRQ37pgHwOkL1Q"}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}]},"0.1.5":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.5","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"_id":"grunt-regex-check@0.1.5","dist":{"shasum":"cd7ad9a9593ff0dab582b5bdb1b72f4599b72ddc","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.5.tgz","integrity":"sha512-HgDdnFsy9KHLJZJYnLTm17fUq7fw+j/bFbM7SOWDoOIAL4Dv68wLqkuk0s2EzEvGQtgpKl+wdgnDhICHrJEqnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjKC8rpTK2o1mKQSbtOfzK3e+OsbM47VTyO2K4BaV3GAiBM8I5WRTV8Dlyzhq2tA50sasB8mDvxiyFwiTs/TI66YA=="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}]},"0.1.7":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.7","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"gitHead":"956e9eaff1950072526be87637b8889785af6437","_id":"grunt-regex-check@0.1.7","_shasum":"ed575746d16e073c76003910440b5a334c307035","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}],"dist":{"shasum":"ed575746d16e073c76003910440b5a334c307035","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.7.tgz","integrity":"sha512-Iz3RhdiH8FVSSWCbfrD8DehthCjzFByGqRq3nXUVxLRGG8XSxKGZLnZRKDuEknX75aFJa47Cwt6fg8W8mKtoBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM+MJxlXBoAqBvrhr+jfoLoiUEmVs1cW2U+c66IHSaKwIhAMn3yUf/ooJZi7ooqWLO7rBYGU8NoqvxKZMdR2rZMiv1"}]}},"0.1.8":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.8","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"gitHead":"2a3d9512c268d9688659b2f3338fbcc90e87e25b","_id":"grunt-regex-check@0.1.8","_shasum":"616903b34c5697918ac67167ede4b07d3a720487","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}],"dist":{"shasum":"616903b34c5697918ac67167ede4b07d3a720487","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.8.tgz","integrity":"sha512-7r7EDCztLAa4vAGnnDHN5yvIi1WVgFjyyw0FNDDdmFaDgcoP8ZrY+ddBch0UTMRIMLV7G94u/4F5sW31DSOgvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhkUVGufZKjvEue0j5npzAQzDFDoiG7Hz1e7Bpchh3cAiEAnNuwgKTX/yrEIqiHj81rI8OQHMMgN/H3OOY3NWQo4PU="}]}},"0.1.9":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.9","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":"~0.4.1"},"keywords":["gruntplugin"],"gitHead":"ec3c389a1660d2256d424c4442e17f8e7d786092","_id":"grunt-regex-check@0.1.9","_shasum":"2fb37a7e3fd72189cd9891d006075f5053386629","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}],"dist":{"shasum":"2fb37a7e3fd72189cd9891d006075f5053386629","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.9.tgz","integrity":"sha512-/IJm8gryi6zwgxNcJx7ce2K6LZQnSeMVWAGV+LL4oTUzIBm0E0v/aI+WrQxpF3H8BnxTeKx++dBVJ/PZlTtKww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBD5HxfLA9uxMZionH+CtDzMF9whIqOKHyGR5R8OGZ9VAiB23XDTFVkVywjZ5WooN2RHRvjJ3DwwDVqaLjLL74RQuw=="}]}},"0.1.10":{"name":"grunt-regex-check","description":"Grunt plugin to detect illegal expressions in javascript code with regular expressions","version":"0.1.10","homepage":"https://github.com/thekua/grunt-regex-check","author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"licenses":[{"type":"MIT","url":"https://github.com/thekua/grunt-regex-check/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.1.1","grunt-contrib-clean":"~0.4.0","grunt":"~0.4.1","grunt-mocha-test":"~0.2.2","should":"~1.2.2","sinon":"~1.6.0"},"peerDependencies":{"grunt":">=0.4.0"},"keywords":["gruntplugin"],"gitHead":"8d697fbdf050b286a430caa573eb563f0ac2d46e","_id":"grunt-regex-check@0.1.10","_shasum":"8061d7f3f87f81c0a528749312f5317496e63d5a","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"thekua","email":"pkua@thoughtworks.com"},"dist":{"shasum":"8061d7f3f87f81c0a528749312f5317496e63d5a","tarball":"https://registry.npmjs.org/grunt-regex-check/-/grunt-regex-check-0.1.10.tgz","integrity":"sha512-xiUWvyjQ3lGyWjcdEyxqwcjMVsepOpXt27yWFaAybmv+MOQnL5s/ZkCPJM/hzo/ZBPktNBhfhWx3Re0ZQkgWZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANA8LokQJ0MqK7raBTansugN1khjKT3jArBPcDvOojiAiAkc4/55v6mzHSk7Fl4jCRMKMpW6TJnEBcRHl+hXAG/eg=="}]},"maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/grunt-regex-check-0.1.10.tgz_1456953143302_0.18920163461007178"}}},"readme":"# grunt-regex-check\n\n> Grunt plugin to detect illegal expressions in javascript code with regular expressions\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-regex-check --save-dev\n```\n\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-regex-check');\n```\n\n## The \"\"regex-check\"\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `\"regex-check\"` to the data object passed into `grunt.initConfig()`.\n\n### Options\n\n#### options.excluded\nType: `String`\nDefault value: none\nMandatory: No\n\n#### options.pattern\nType: `Regular expression` or an Array of Regular Expression\nDefault value: none\nMandatory: Yes\n\nAn Array of Regular Expression to match files content\n\n#### options.breakOnError\nType: `boolean`\nDefault value: true\nMandatory: false\n\nBy setting to `false` you can only warn the user, but not break the build.\n\n### Usage Examples\n\n#### Options\n\n_Note that there are no default options and you must specify the configuration values_\n\nIn this example, the configuration is looking through all javascript files in 'src', except for those excluded ones\nand will fail the build if the string 'console' is found\n\n__Example__: Check all source files to ensure they do not contain `console`. Exclude those that have excluded in the file name\n\n```js\ngrunt.initConfig({\n  \"regex-check\": {\n    files: \"src/**/*.js\",\n    options: {\n      excluded : \"src/**/*xcluded.js\",\n      pattern : /console/g\n    },\n  },\n})\n```\n\n__Example__: Find `console` calls, but only warn the user without stopping the grunt build\n\n```js\ngrunt.initConfig({\n  \"regex-check\": {\n    files: \"src/**/*.js\",\n    options: {\n      excluded : \"src/**/*xcluded.js\",\n      pattern : /console/g,\n      breakOnError: false\n    },\n  },\n})\n```\n\n__Example__: Check all files in `src/server` and `src/logger` to ensure they do not contain `throw` or `catch`. Exclude three specific files\n\n```js\ngrunt.initConfig({\n  \"regex-check\": {\n    files: [\"src/server/**/*.js\", \"src/logger/**/*.js\"],\n    options: {\n      excluded : [\"src/server/ajax/requestErrors.js\", \"src/logger/defaultErrorLogger.js\", \"src/server/jqueryPluginWrapper.js\"],\n      pattern : /(throw)|(catch)/g\n    },\n  },\n})\n```\n\n__Example__: [User contributed example - thanks eitanp461](https://github.com/thekua/grunt-regex-check/issues/6)\n\n```js\ngrunt.initConfig({\n  \"regex-check\": {\n        directives: {\n            files: [\n                {src: ['app/js/**/*-drtv.js']}\n            ],\n            options: {\n                // force file naming conventions\n                pattern: /templateUrl(?!(.*-tmpl.html|.*\\{|;))/g\n            }\n        },\n        scopes: {\n            files: [\n                {src: ['app/js/**/*.js']}\n            ],\n            // Check that scopes that are created programatically with $new are eventually cleaned up\n            options: {\n                pattern: /\\$new(?!(\\$on('\\$destroy')))/g\n            }\n        }\n  },\n})\n```\n\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n- 0.1.10 Merge in pull request for new grunt version and enhance output with target. See https://github.com/thekua/grunt-regex-check/pull/10\n- 0.1.9 Update to include pattern regex patch https://github.com/thekua/grunt-regex-check/pull/9\n- 0.1.8 Update documentation to keep in sync\n- 0.1.7 Upgrade of npm to fix broken publish with old version\n- 0.1.6 Apply pull request to add option breakOnError\n- 0.1.5 Apply pull request to use grunt fail warn\n- 0.1.4 Apply pull request to remove dependency on underscore\n- 0.1.3 Bump version to update documentation and keep release in sync\n- 0.1.2 Apply pull request to note which pattern caused the violation per file\n- 0.1.1 Fix bug of \"Cannot call method 'indexOf' of undefined\" when you do not specify any exclusions\n- 0.1.0 Initial release\n\n## Future Enhancements\n\n- Add automated tests for breakOnError\n- Move pattern outside of options\n- Support another configuration in the same file (e.g. another file set with a particular string)\n","maintainers":[{"name":"thekua","email":"pkua@thoughtworks.com"}],"time":{"modified":"2022-06-18T15:48:20.084Z","created":"2013-05-07T16:00:04.075Z","0.1.0":"2013-05-07T16:00:06.272Z","0.1.1":"2013-05-08T08:30:48.671Z","0.1.2":"2013-07-08T16:53:22.151Z","0.1.3":"2013-07-08T16:58:00.678Z","0.1.4":"2013-08-16T06:57:32.783Z","0.1.5":"2013-08-22T20:55:36.341Z","0.1.6":"2014-08-29T11:44:19.085Z","0.1.7":"2014-08-30T09:52:41.689Z","0.1.8":"2014-08-30T09:56:55.214Z","0.1.9":"2014-10-30T09:27:06.855Z","0.1.10":"2016-03-02T21:12:26.216Z"},"author":{"name":"Patrick Kua","email":"pkua@thoughtworks.com","url":"http://www.thekua.com/atwork"},"repository":{"type":"git","url":"git://github.com/thekua/grunt-regex-check.git"},"homepage":"https://github.com/thekua/grunt-regex-check","keywords":["gruntplugin"],"bugs":{"url":"https://github.com/thekua/grunt-regex-check/issues"},"readmeFilename":"README.md","users":{"davetayls":true}}