Comments (13)
@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.
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.
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.
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.
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.
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.
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.
@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.
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.
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.
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.
CFLint supports .cflintrc now. But the plugin doesn't recognize it. What would it take for it to support that?
from linter-cflint.
- 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)
- On the fly linting
- Possible CFLint Changes HOT 3
- False warning returned - Component name source is not a valid name
- unused-method-argument doesn't pick up scoped arguments. HOT 6
- Getting registry errors when I open a .CFM file in Atom HOT 4
- Errors are not sorted by line
- An unexpected error occured with linter-cflint. See the debug log for details HOT 1
- Fresh installation (atom and cflint) HOT 2
- Unexpected error HOT 10
- CFLint bundling HOT 4
- unexpected error - prettier-atom HOT 1
- unable to parse HOT 2
- Do not use execSync HOT 5
- Unrecognized Lucee 5 'new' syntax HOT 1
- Add tests
- Errors identified one line below actual error. HOT 1
- Rewrite parser/linter in JavaScript HOT 7
- Remove need for separate download of CFLint.jar HOT 2
- Remove need for configuring Java directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter-cflint.