Open sjmatta opened 9 years ago
This shouldn't be very difficult to implement, although I'm not familiar with how Atom's package management works or it's linter. However, I would be very interested in getting the functionality going.
This will actually be pretty straightforward- I just need to write a tool to convert from JSON to the XML that CFLint understands, and then use stdin
to apply those rules. Alternatively, I can help change CFLint to understand the JSON configuration.
That is actually a good idea of adding JSON configuration. I personally hate looking at xml. It's confusing and hard to read (shame on us deciding xml for config). I think it would be best to add the possibility of JSON config first, then deprecating the xml config. The deprecation would depend on Ryan, but I'm sure he'd be okay with it if we identify a possible breaking version.
How long do you think it would take? I'd like to get a new release out within two weeks with the recent items added. If you think it may take longer than that to put in and test, I may add another branch for it.
Once again, kudos for this package. I love it!
I have no problem with switching to Json. :)
On Thu, Oct 8, 2015 at 11:49 PM, jjames967 notifications@github.com wrote:
That is actually a good idea of adding JSON configuration. I personally hate looking at xml. It's confusing and hard to read (shame on us deciding xml for config). I think it would be best to add the possibility of JSON config first, then deprecating the xml config. The deprecation would depend on Ryan, but I'm sure he'd be okay with it if we identify a possible breaking version.
How long do you think it would take? I'd like to get a new release out within two weeks with the recent items added. If you think it may take longer than that to put in and test, I may add another branch for it.
Once again, kudos for this package. I love it!
— Reply to this email directly or view it on GitHub https://github.com/ditinc/linter-cflint/issues/6#issuecomment-146748456.
Not sure on an ETA but I will try to look into it soon. The specific reason I'm interested in JSON configuration is that I'm trying to match other linters like coffeelint and eslint which use JSON configuration.
Sorry I know you maybe working a solution that will take care of this, but what's the best way to configure the rules when using CFLint with CF/SublimeLinter currently?
@ghedwards: This is the repository for an Atom package - I'd still be happy to help you out but unfortunately I'm not familiar with the Sublime plugin. I'd recommend asking the question over at https://github.com/SublimeText/ColdFusion
In 0.7.0 I enabled disabling rules. I went with an .eslintrc
style rule naming declaration to keep consistent with that style- however all it does is lowercase the rule IDs and change _ to -. The implementation is pretty rough and I'd like tighter integration with CFLint, but it works for now. :)
Still need to add enabling or escalating rules from warnings to errors, as well as some other features, so I'll leave this issue open.
@sjmatta not sure if your last comment is referring to what I'm about to say but: should be an option to blanket ignore 'warnings' and only display 'errors'.
An update for this. It looks like cflint has implemented a json based config file. i think for consistency across all the plugins for this any changes should be done in the core to include/exclude rules. Then simply the plugins need to manage how each editor interacts with the cli/jar
CFLint supports .cflintrc now. But the plugin doesn't recognize it. What would it take for it to support that?
If anyone has availability to work on this in a PR, that'd be awesome. If not, I may have a chance to get to it in the next few weeks.
Inspired by
.eslintrc
:.cflintrc
(JSON) to define which rules are turned on/offCFLint
CFLint
so the configuration file can be piped through input