House of Fusion
Home of the ColdFusion Community

Search cf-talk

October 07, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

Code Scan Tool Released!

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Tomlinson
07/03/2008 08:58 AM

Just wanted to share my work with the community. It's the least I can do after asking for help on here all the time. :) About my work ... it's a code review tool. I know there are already some out there but I wanted to build my own, and use it mostly as a tool to learn RegExs. There are already some RegExs in the library - they could probably be improved.   Now, I'll tell you, I built it fairly quick, so some of it is a bit crude. But I'm sure you can tweak it however you like. It's a combo of procedural and OO. I didn't add a var scoper tool since it already exists. You can integrate that yourself if you like.   There are still some loose ends. I think it'd be better to just go ahead and release it so some of you folks can give it a workout and give me some feedback. http://willtomlinson.wordpress.com/2008/07/03/announcing-code-scanner-10/ On a side note, I'm blogging about my first experiences with Model Glue and Coldbox, and showing a side-by-side comparison. I plan to post more on that in the coming days. Thanks, Will

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Faircloth
07/03/2008 09:54 AM

Hi, Will... I read your blog on your code review tool.  Looks interesting. I've never used a tool like this and was wondering if you would explain exactly what it does.  What does it scan for? (Knowing my code is always *perfect* and very *sexy* (as you like to say), I'm wondering if it would be of use for me? ;o) Seriously, just wondering what it does exactly. Rick > Just wanted to share my work with the community. It's the least I can do after asking for help on here > all the time. :) > > About my work ... it's a code review tool. I know there are already some out there but I wanted to build > my own, and use it mostly as a tool to learn RegExs. There are already some RegExs in the library - they > could probably be improved. > > Now, I'll tell you, I built it fairly quick, so some of it is a bit crude. But I'm sure you can tweak it > however you like. It's a combo of procedural and OO. > > I didn't add a var scoper tool since it already exists. You can integrate that yourself if you like. > > There are still some loose ends. I think it'd be better to just go ahead and release it so some of you > folks can give it a workout and give me some feedback. > > http://willtomlinson.wordpress.com/2008/07/03/announcing-code-scanner-10/ > > On a side note, I'm blogging about my first experiences with Model Glue and Coldbox, and showing a side- > by-side comparison. I plan to post more on that in the coming days. > > Thanks, > Will >

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Tomlinson
07/03/2008 10:03 AM

----- Excess quoted text cut - see Original Post for more ----- Well the oode in the scan tool definitely AIN'T sexy! It's kind of disruptor'ish. :) I have a readme.txt file in the zip that explains why I built it. THAT pretty much explains what it does. My company uses a code review tool that scans your code that you've submitted, and spits out a report of errors. What's an error? Any piece of code that doesn't fit their standards. For instance, they do not allow tab characters. I can add \t (tab) to my regex library and it will automatically scan the file for \t (tab). Or you name it. If you can write a regex, you can scan your file for it. That's mostly why I think it's cool. I can practice learning regex with this tool. I can read over the company's standards doc, pick out items to test, and write regexs. I've screwed up a lot but that's not a bad thing. And if you want, it'll even remove them all and rewrite the file back out to the directory!   Hope that helps explain it some. Again, it's kind of crude and needs work, but it's a good start I think. Will

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Faircloth
07/03/2008 11:13 AM

Yes, it does.  It seems to be more of a tool to determine whether or not code complies with custom coding standards. Since my code has no one to answer to, except the browsing public and my clients (who wouldn't know enough to have standards requirements at this point) I'm not the target user for this type of tool. But it's good to know it's there! And, Will, I'm shocked that you would even admit to writing other than *sexy* code!  :o) Rick ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Tomlinson
07/03/2008 10:11 AM

> Hi, Will... > > I read your blog on your code review tool.  Looks interesting. > I've never used a tool like this and was wondering if you would > explain exactly what it does.  What does it scan for? I was basically building a pre-scan code review tool. lol.... Once your code is submitted here at work, the errors are emailed to the project managers. Errors don't look good. But once you submit it, it's done. There's no turning back. So why not build my own code review tool? Well I did. And it seems to work well. I tested it on a directory with 256 pages (A MG site), and it spit out 15,000 errors according to my company's standards. Yes, it took it about 5 minutes to run on my local machine, but that's fine. Will

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Sonny Savage
07/03/2008 10:38 AM

Out of curiosity, why aren't tabs allowed?  I personally prefer tabs because their width can be adjusted by settings. On Thu, Jul 3, 2008 at 10:08 AM, Will Tomlinson <will@wtomlinson.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Tomlinson
07/03/2008 10:43 AM

>Out of curiosity, why aren't tabs allowed?  I personally prefer tabs because >their width can be adjusted by settings. > >On Thu, Jul 3, 2008 at 10:08 AM, Will Tomlinson <will@wtomlinson.com> wrote: > >> I was afraid this would become a topic of discussion. :) Ok, they just don't allow them. Can we leave it at that? lol! Will

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Sonny Savage
07/03/2008 11:09 AM

That's fine, I wasn't trying to start a flame war! On Thu, Jul 3, 2008 at 10:40 AM, Will Tomlinson <will@wtomlinson.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Tomlinson
07/03/2008 11:14 AM

>That's fine, I wasn't trying to start a flame war! > heehee... yeah, I've never started any of those on here myself <AHEMMM>. My company has over 150 standards we must adhere to. No tabs, no carriage returns This: if (someVar EQ 0) { Do this } Must be: if(someVar EQ 0){ Do this } That's why I've been asking these RegEx questions on the list lately. I've gotten a much better handle on them BTW. They're kind of addictive. :) Thanks sonny, Will

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Sonny Savage
07/03/2008 01:01 PM

I use Eclipse and CFEclipse.  Eclipse uses an XML-based build engine called Ant.  It seems that Ant would be a perfect fit for something like what you're describing.  You would be able to code however you like and then run the Ant script before committing the code. On Thu, Jul 3, 2008 at 11:10 AM, Will Tomlinson <will@wtomlinson.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Will Tomlinson
07/03/2008 01:04 PM

>I use Eclipse and CFEclipse.  Eclipse uses an XML-based build engine called >Ant.  It seems that Ant would be a perfect fit for something like what >you're describing.  You would be able to code however you like and then run >the Ant script before committing the code. Leave it to me to reinvent the wheel. :)

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
07/03/2008 01:38 PM

>> Leave it to me to reinvent the wheel. :) We all do it at one point or another. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56551#306262 On Thu, Jul 3, 2008 at 1:01 PM, Will Tomlinson <will@wtomlinson.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Adam Haskell
07/03/2008 09:23 PM

Most good languages also have an IDE that can format code for you, check out Eclipse's (or maybe it is MyEclipse's not sure) Java code formatter it is very nice and fairly configurable. Unfortunately I've never done one and I know if I ask Mark he'll tell me to start coding ;) Adam! On Thu, Jul 3, 2008 at 12:59 PM, Sonny Savage <sonnysavage@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists