Giter VIP home page Giter VIP logo

Comments (13)

ocssor avatar ocssor commented on July 21, 2024 1

@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'.

from linter-cflint.

jjames967 avatar jjames967 commented on July 21, 2024

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.

from linter-cflint.

sjmatta avatar sjmatta commented on July 21, 2024

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.

from linter-cflint.

jjames967 avatar jjames967 commented on July 21, 2024

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!

from linter-cflint.

ryaneberly avatar ryaneberly commented on July 21, 2024

I have no problem with switching to Json. :)

On Thu, Oct 8, 2015 at 11:49 PM, jjames967 [email protected] 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
#6 (comment).

from linter-cflint.

sjmatta avatar sjmatta commented on July 21, 2024

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.

from linter-cflint.

ghedwards avatar ghedwards commented on July 21, 2024

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?

from linter-cflint.

sjmatta avatar sjmatta commented on July 21, 2024

@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

from linter-cflint.

sjmatta avatar sjmatta commented on July 21, 2024

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. :)

from linter-cflint.

sjmatta avatar sjmatta commented on July 21, 2024

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.

from linter-cflint.

lramirez925 avatar lramirez925 commented on July 21, 2024

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

from linter-cflint.

philcruz avatar philcruz commented on July 21, 2024

CFLint supports .cflintrc now. But the plugin doesn't recognize it. What would it take for it to support that?

from linter-cflint.

sjmatta avatar sjmatta commented on July 21, 2024
  • Need to update the version of CFLint used here (preferably grabbing it from Maven repo)
  • Need to ensure CFLint isn't pushing random stuff out to standard out that will confuse the parser(s) - if not, CFLint needs a patch
  • Remove .cflintrc support from the plugin so it uses CFLint's instead

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.

from linter-cflint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.