Comments (8)
Is at as simple as linter.getBugs()?
from cflint.
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.
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.
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.
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.
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.
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.
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)
- Not parsing array appends correctly. HOT 1
- CFlint via -stdin no longer works/runs HOT 2
- Add support for static accessor operator (`::`) HOT 3
- Catch java exception when try to check folder HOT 2
- Annotation-based configuration HOT 6
- Null pointer on `!C::b` HOT 4
- CFScript function length check is off by one HOT 1
- CFScript in <cffunction> length check doesn't work
- cflint ignore:QUERYPARAM_REQ does not work on multiline code
- Null pointer exception with missing semi colon in closures
- Inconsistent local variable detection?
- cflint missing_var script loop not working
- Add new option to identify new vs existing code
- allow .cflint as well as .cflintrc to be used for config HOT 1
- MISSING_VAR incorrect in array loop HOT 1
- dfdfgd
- Warn or error when using the "caller" scope
- Possibility of changing the severity of the rules
- CFLint and cfmleditor/CFLint
- Abstract component
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 cflint.