jscs-dev/grunt-jscs

setting config options changes directory for exclude files

daprahamian opened this issue · 1 comments

If I set my config file to '.jscsrc', and I additionally list excludeFiles, then the paths for those exclude files will be relative to the .jscsrc file in my current directory. If I list the config file as 'config/.jscsrc', then all the excludeFile paths will be relative to config/, because that is where the .jscsrc file is. I would assume that the options would be copied from the .jscsrc file, but everything would continue to operate from my cwd. If I am wrong here, could a feature be added to allow me to set the grunt-task to run against my cwd instead of the directory of the config file?

Thanks!

So you want excludeFiles option to be relative to grunt file? As it said in documentation we don't do anything special with jscs options, just passing them directly to it.

Although i agree it might be looked confusing at first, but even if we wanted to, jscs does not allow us to define different cwd for file exclusions or additional rule set.

Sorry.