Giter VIP home page Giter VIP logo

linter-cflint's People

Contributors

codacy-badger avatar msp1kpj avatar sjmatta avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

linter-cflint's Issues

Fresh installation (atom and cflint)

Hello,
I just installed Atom and try to make it work with linter-cfLint without success. I have the error "An unexpected error occured with linter-cflint. See the debug log for details."
I have set the java path to "C:\PROGRA1\Java\JRE181.0_1\bin" ("C:\Program Files\Java\jre1.8.0_121") to be sure. Note that this is the 64b.
A quick question, how do I access the log so I can provide more information?

CFLint bundling

What is the reason for having CFLint bundled? I see that Issue #8 is where it started and removed the ability to define the path as configuration. If I understand correctly, Issue #10 explains why it needed to be forked, but if those changes are part of core CFLint, is it still necessary? It seems to me that it's more of a dependency.

That said, the roadmap indicates you are looking to "remove the dependency on Java" so perhaps you are considering a complete rewrite which would justify the lack of dependency on the original project.

For now, it would be great if the path or at least file name were left to be from a configuration file instead of having to modify main.js when upgrading since the included jar is not kept up-to-date.

Allow enabling/disabling rules

Inspired by .eslintrc:

  • Allow a root .cflintrc (JSON) to define which rules are turned on/off
  • Use those rules to create an XML configuration to send to CFLint
  • May require modification to CFLint so the configuration file can be piped through input

Getting registry errors when I open a .CFM file in Atom

I get the following errors in the Atom debugger when I open a .CFM file. I have JRE and JDK installed and have the JAVA_HOME path set in my variables.

/C:/Users/[user]/.atom/packages/linter-cflint/lib/main.js:151 Error: Command failed: reg query "hklm\software\javasoft\java development kit"
ERROR: The system was unable to find the specified registry key or value.

Error: Command failed: reg query "hklm\software\wow6432node\javasoft\java development kit"
ERROR: The system was unable to find the specified registry key or value.
(anonymous function) @ /C:/Users/[user]/.atom/packages/linter-cflint/lib/main.js:151

Possible CFLint Changes

Great job on setting up the plugin. I didn't know one for Atom existed. I just installed it as a package and was very helpful.

I may be pulling the CFLint-all.jar out in the next release, because we're switching to a gradle build. It should no longer be necessary, as you wouldn't need to install Maven locally. However, how much of a headache would this cause? I'd be more than happy to help you incorporate Gradle into your current project.

Unrecognized Lucee 5 'new' syntax

Hi, I don't know if you continue to maintain the project, but...

In Lucee 5 there is some new syntax accepted.

I have not check all the new staff but least
the syntax of Lambda expressions (or arrow functions) is not recognized.
Ej. var add = (numeric x, numeric y) => x + y;

Also, and affecting the Adobe Coldfusion as well,
the posibility to declare ordered structs with literal notation doesn't work.
Ej. var my_ordered_struct = [ a=1, b=2 ];

In both cases the linter expects a semicolon somewhere.

I think that for the Lucee only Syntax should be configurable it's recognition.

Thanks in advance.

On the fly linting

Set things up so the file is linting as edits are being made, not just when the file is saved.

unable to parse

If I have a simple testParse.cfc with these contents

component {
	public void function download(required struct rc)
	{
		if(isNumeric(rc.betaProductID))
		{
			variables.BetaGateway.incrementDownloadCounter(rc.betaProductID);
			location(url=s3Link, addToken=false);
		}
	}
}

I get "Unable to parse". If I remove the line with variables.BetaGateway...it will parse. Though it will still give a warning "parse-nothing Nothing to parse"

What could be the problem?

Unexpected error

I just updated to the latest and when I enable the package I get an Atom notification that says:

"An unexpected error occured with linter-cflint. See the debug log for details."

I googled a while to see if I could find where either Atom or this package stored log files, as well as browsed through .atom and the linter-cflint package directory therein but couldn't spot anything that looked like a log file.

If anyone knows how to locate the relevant log file I'll add more info to add any additional details. At this point it's obviously not even clear if it's an Atom issue or a package issue.

An unexpected error occured with linter-cflint. See the debug log for details

Any time i go to cold fusion files this error is shown in ATOM, My java path is C:\Program Files\Java\jre1.8.0_111\bin, could that be the problem?

Console error:
main.js:123
Error: Command failed: reg query "hklm\software\javasoft\java development kit"
ERROR: The system was unable to find the specified registry key or value.

Error: Command failed: reg query "hklm\software\wow6432node\javasoft\java development kit"
ERROR: The system was unable to find the specified registry key or value.

Do not use execSync

It's a bad practice because execSync blocks the event loop completely until the child process is completed, linter's API allows you to return a promise and resolve it with results, You could use that.

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.