Over the last couple of days in my free time, I've been working on a
modification to the code you guys posted, so it won't count blank lines
and lines that were commented out. Here are the results.
It looks for these comment types:
!--- ---
!-- --
/* */
It won't count single comment lines, nor
Piggy-backing this off the existing thread:
The one script that was shared was great, just one exception, what if
you wanted
to obtain the lines of actual code rather than code and comments?
The script will count each line.
TIA!
what if you wanted
to obtain the lines of actual code rather than code and comments?
Then it would be time to use CF_REextract and parse files! ;-)
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send
N, just roll without comments. I mean cmon, you wrote the code, you
should remember what it does!
Chris
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 2:56 PM
To: CF-Talk
Subject: Re: Line Counter (without Comments)
what
Problem is there are many developers that work with the code.
-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 3:15 PM
To: CF-Talk
Subject: RE: Line Counter (without Comments)
N, just roll without comments. I mean cmon, you
Subject: RE: Line Counter (without Comments)
N, just roll without comments. I mean cmon, you wrote the code, you
should remember what it does!
Chris
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard
, 2006 3:42 PM
To: CF-Talk
Subject: Re: Line Counter (without Comments)
I had a nightmare assignment once to fix two lines of code in a file
that had 7800 lines. There were nested tables, inside nested loops,
multiple CFiFs, lots of cfif clientID=x and version=y
And not one comment anywhere
--//-
-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 2:42 PM
To: CF-Talk
Subject: Re: Line Counter (without Comments)
I had a nightmare assignment once to fix two lines of code in a file
that had 7800 lines. There were
.
[EMAIL PROTECTED]
615.370.1530 x737
--//-
-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 2:42 PM
To: CF-Talk
Subject: Re: Line Counter (without Comments)
I had a nightmare assignment once to fix two lines of code
The ideal thing would have been to take this big file and break it
into smaller bits - cfcs or includes or custom tags, however that
wasnt an option apparently.
Since the actual work was only a 5 minute job but it took most of the
day to do, his decision not to have comments anywhere was an
On 9/13/06, Mike Kear [EMAIL PROTECTED] wrote:
The ideal thing would have been to take this big file and break it
into smaller bits - cfcs or includes or custom tags, however that
wasnt an option apparently.
Yeah, I like the small bits part, and personally, I roll without
comments 'cause my
11 matches
Mail list logo