Giter Site home page Giter Site logo

Docs for using linter via java about cflint HOT 8 CLOSED

cflint avatar cflint commented on June 2, 2024
Docs for using linter via java

from cflint.

Comments (8)

cfjedimaster avatar cfjedimaster commented on June 2, 2024

Is at as simple as linter.getBugs()?

from cflint.

cfjedimaster avatar cfjedimaster commented on June 2, 2024

Hmm. If I run getBugList on it, I get a struct based on the type of error, and then arrays in there. That works, but is there a way to get list as is, in the order found? I can easily convert a struct of arrays into one array, but just asking if there is something baked in.

from cflint.

ryaneberly avatar ryaneberly commented on June 2, 2024

Hmm. I didn't put much thought into making it a friendly java API to
consume.

You can get an array of arrays with
lint.getBugs().getBugList().values()

which isn't much a simplification over struct of arrays.

On Wed, Jul 30, 2014 at 3:09 PM, Raymond Camden [email protected]
wrote:

Hmm. If I run getBugList on it, I get a struct based on the type of error,
and then arrays in there. That works, but is there a way to get list as is,
in the order found? I can easily convert a struct of arrays into one array,
but just asking if there is something baked in.


Reply to this email directly or view it on GitHub
#12 (comment).

from cflint.

cfjedimaster avatar cfjedimaster commented on June 2, 2024

i just mandhandled it myself. Want a copy of the extension before I blog it?

On Wed, Jul 30, 2014 at 3:41 PM, ryaneberly [email protected]
wrote:

Hmm. I didn't put much thought into making it a friendly java API to
consume.

You can get an array of arrays with
lint.getBugs().getBugList().values()

which isn't much a simplification over struct of arrays.

On Wed, Jul 30, 2014 at 3:09 PM, Raymond Camden [email protected]

wrote:

Hmm. If I run getBugList on it, I get a struct based on the type of
error,
and then arrays in there. That works, but is there a way to get list as
is,
in the order found? I can easily convert a struct of arrays into one
array,
but just asking if there is something baked in.


Reply to this email directly or view it on GitHub
#12 (comment).


Reply to this email directly or view it on GitHub
#12 (comment).

Raymond Camden, Web Developer for Adobe

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden

from cflint.

ryaneberly avatar ryaneberly commented on June 2, 2024

Great, glad you were able to roll it out. I don't have a local CFBuilder
install at the moment, just CFEclipse. I am interested in reading what you
put down about it though.

On Wed, Jul 30, 2014 at 4:54 PM, Raymond Camden [email protected]
wrote:

i just mandhandled it myself. Want a copy of the extension before I blog
it?

On Wed, Jul 30, 2014 at 3:41 PM, ryaneberly [email protected]
wrote:

Hmm. I didn't put much thought into making it a friendly java API to
consume.

You can get an array of arrays with
lint.getBugs().getBugList().values()

which isn't much a simplification over struct of arrays.

On Wed, Jul 30, 2014 at 3:09 PM, Raymond Camden <
[email protected]>

wrote:

Hmm. If I run getBugList on it, I get a struct based on the type of
error,
and then arrays in there. That works, but is there a way to get list
as
is,
in the order found? I can easily convert a struct of arrays into one
array,
but just asking if there is something baked in.


Reply to this email directly or view it on GitHub
#12 (comment).


Reply to this email directly or view it on GitHub
#12 (comment).

Raymond Camden, Web Developer for Adobe

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden


Reply to this email directly or view it on GitHub
#12 (comment).

from cflint.

ryaneberly avatar ryaneberly commented on June 2, 2024

Forgot to mention:
you can interrogate the version:
var version = createobject('java','com.cflint.Version').getVersion()
(static method - returns a string)

On Wed, Jul 30, 2014 at 7:34 PM, Ryan Eberly [email protected] wrote:

Great, glad you were able to roll it out. I don't have a local CFBuilder
install at the moment, just CFEclipse. I am interested in reading what you
put down about it though.

On Wed, Jul 30, 2014 at 4:54 PM, Raymond Camden [email protected]
wrote:

i just mandhandled it myself. Want a copy of the extension before I blog
it?

On Wed, Jul 30, 2014 at 3:41 PM, ryaneberly [email protected]
wrote:

Hmm. I didn't put much thought into making it a friendly java API to
consume.

You can get an array of arrays with
lint.getBugs().getBugList().values()

which isn't much a simplification over struct of arrays.

On Wed, Jul 30, 2014 at 3:09 PM, Raymond Camden <
[email protected]>

wrote:

Hmm. If I run getBugList on it, I get a struct based on the type of
error,
and then arrays in there. That works, but is there a way to get list
as
is,
in the order found? I can easily convert a struct of arrays into one
array,
but just asking if there is something baked in.


Reply to this email directly or view it on GitHub
#12 (comment).


Reply to this email directly or view it on GitHub
#12 (comment).

Raymond Camden, Web Developer for Adobe

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden


Reply to this email directly or view it on GitHub
#12 (comment).

from cflint.

cfjedimaster avatar cfjedimaster commented on June 2, 2024

Ok, I'll blog it tomorrow.

On Wed, Jul 30, 2014 at 6:34 PM, ryaneberly [email protected]
wrote:

Great, glad you were able to roll it out. I don't have a local CFBuilder
install at the moment, just CFEclipse. I am interested in reading what you
put down about it though.

On Wed, Jul 30, 2014 at 4:54 PM, Raymond Camden [email protected]

wrote:

i just mandhandled it myself. Want a copy of the extension before I blog
it?

On Wed, Jul 30, 2014 at 3:41 PM, ryaneberly [email protected]
wrote:

Hmm. I didn't put much thought into making it a friendly java API to
consume.

You can get an array of arrays with
lint.getBugs().getBugList().values()

which isn't much a simplification over struct of arrays.

On Wed, Jul 30, 2014 at 3:09 PM, Raymond Camden <
[email protected]>

wrote:

Hmm. If I run getBugList on it, I get a struct based on the type of
error,
and then arrays in there. That works, but is there a way to get list
as
is,
in the order found? I can easily convert a struct of arrays into one
array,
but just asking if there is something baked in.


Reply to this email directly or view it on GitHub
<
https://github.com/ryaneberly/CFLint/issues/12#issuecomment-50664564>.


Reply to this email directly or view it on GitHub
#12 (comment).

Raymond Camden, Web Developer for Adobe

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden


Reply to this email directly or view it on GitHub
#12 (comment).


Reply to this email directly or view it on GitHub
#12 (comment).

Raymond Camden, Web Developer for Adobe

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden

from cflint.

ryaneberly avatar ryaneberly commented on June 2, 2024

I enhanced the API to include a progress monitor, but you have to explicitly ask for it.

linter = createObject("java","com.cflint.CFLint");
linter.setShowProgress(true);
linter.scan(selection.path);

And added
linter.getBugs().getFlatBugList()
returns an array. (java list == CF array)

It will be available in the next version.

from 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.