-
Notifications
You must be signed in to change notification settings - Fork 46
Default value of the config option #20
Comments
What about inserting this change in a 0.5.x version? However I'm not sure if this is semantic versioning 😕 |
Agreed. |
As decided in issue #20, v0.5.0 will change the default value of 'config' option to null. However, we also warn about such change in v0.4.0.
Looks like this was addressed in: 0f1ac1a |
Not really, we plan to change it to |
Great, thanks. |
@gustavohenke is this going to get into this version you're about to release? |
I'm now seeing the mention in jscs-dev/node-jscs#379 by @markelog, unfortunately I had ignored that issue :( Well, thinking more about it, jscs assumes that no config defaults to .jscsrc, what we've being doing since the begining. What do you guys think about it? |
I'm fine either way. It's up to @markelog |
I've been thinking of adding a explicit warning instead of using |
Well, I ended up opting for the original proposal. |
BTW, v0.5.1 is out (0.5.0 lacked the readme changes... d'oh!) |
I'm confused. I just tried to upgrade from 0.4.4 to 0.5.1 and it seems it no longer works as expected. I'm aware of this thread but it's sufficiently vague that I'm not certain whether this change was intended to work out this way. I used to hardcode the path to Same for grunt-contrib-jshint. I used to specify the path to it ( However it seems grunt-jscs-checker is quite the opposite as I'm now required to explicitly specify the file? Running the jscs task (as of v0.5.1) with only a list of files to check:
jscs: {
dev: [
'*.js',
'{src,test}/**/*.js'
]
}, ...this passed with v0.4.4, but fails by default under v0.5.1:
|
I think we can accept |
I'm confused too. I was under the impression that removing .jscsrc just meant we'd fall back to JSCS's default, which is .jscsrc. |
Or maybe I got the message wrong. So, the purpose of not having a default value would be to not use @mikesherov, @Krinkle and @markelog, what are your opinions about using |
I'd say that's one way to expose the default logic (it seems right now there is no way to trigger it, no matter how, I think it should be exposed in some way). It depends on what we think makes for a better default. I'd say it's more common and a best practice to have the options in a file (so that e.g. text editor plugins and other scripts can simply invoke node-jscs and let it be used). And not requiring to specify We might not even need to have a way to disable it completely. Though if there's use for it, we could use |
Well. Thinking better about it now, it makes more sense to have a default. grunt-contrib-jshint doesn't have a default because jshint uses some configurations by default (like Let's do this way then:
|
I think the last proposal here makes most sense. Sorry for any confusion! |
I'll work on this one soon. |
Working on this issue. |
By default,
config
option uses.jscs.json
value, which might be implicitly merged with inline options.It might be better to change its default value to
null
, likejshintrc
option for grunt-contrib-jshint, so user could define this option explicitly then otherwise.But that would be a breaking change :-(
The text was updated successfully, but these errors were encountered: