Skip to content

Instantly share code, notes, and snippets.

@bithoundio
Last active June 1, 2017 18:38
Show Gist options
  • Save bithoundio/fb79d79ae0a619ea45d0 to your computer and use it in GitHub Desktop.
Save bithoundio/fb79d79ae0a619ea45d0 to your computer and use it in GitHub Desktop.
If bitHound is marking a module as unused, but you are using it in a way bitHound can't detect (e.g. inline script tags, tests), you can specify unused ignores in your .bithoundrc.
{
"ignore": [
"**/deps/**",
"**/node_modules/**",
"**/thirdparty/**",
"**/third_party/**",
"**/vendor/**",
"**/**-min-**",
"**/**-min.**",
"**/**.min.**",
"**/**jquery.?(ui|effects)-*.*.?(*).?(cs|j)s",
"**/**jquery-*.*.?(*).?(cs|j)s",
"**/prototype?(*).js",
"**/mootools*.*.*.js",
"**/dojo.js",
"**/MochiKit.js",
"**/yahoo-*.js",
"**/yui*.js",
"**/ckeditor*.js",
"**/tiny_mce*.js",
"**/tiny_mce/?(langs|plugins|themes|utils)/**",
"**/MathJax/**",
"**/shBrush*.js",
"**/shCore.js",
"**/shLegacy.js",
"**/modernizr.custom.?(*).js",
"**/knockout-*.*.*.debug.js",
"**/extjs/*.js",
"**/extjs/*.xml",
"**/extjs/*.txt",
"**/extjs/*.html",
"**/extjs/*.properties",
"**/extjs/.sencha",
"**/extjs/docs/**",
"**/extjs/builds/**",
"**/extjs/cmd/**",
"**/extjs/examples/**",
"**/extjs/locale/**",
"**/extjs/packages/**",
"**/extjs/plugins/**",
"**/extjs/resources/**",
"**/extjs/src/**",
"**/extjs/welcome/**",
"bower_components/**"
],
"test": [
"**/test/**",
"**/tests/**",
"**/spec/**",
"**/specs/**"
],
"dependencies": {
"unused-ignores": [
"grunt-*",
"bower",
"eslint"
]
}
}
@trinonsense
Copy link

have there been any updates to this files since last revision? I'm seeing my files/deps in **/data/** being ignore, but that path is not listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment