Loading...
 
Skip to main content

History: CountLocsDev

Preview of version: 1

Status/RoadMap
  • Where are we?

Whe have a simple bash command to do a count of LOCs over all relevant files:

Image
Copy to clipboard
find <tiki-base-dir> -type f -print0 -wholename "./templates_c" -prune\ -name "*.php" -o -name "*.sql" -o -name "*.css" -o -name "*.js" -o \ -name "*.tpl" -o -name "*.inc" | xargs -0 cat | pcregrep -cv \s*\n


As you can see, this counts just not empty lines.

pcregrep is a special grep-command evaluating the pattern as a Perl regular expression. The commandline-switch -c does a count and -v negates the regular expression.

  • Where do we want to be?

It would be nice to have some script (maybe in doc/devtools) to automate this process and output some more differentiated information (effective LOCs, comments, how many in which type of file, etc.)

amette: A Perl script would be good!? Better ideas? Are there any tools out there, that could do the job? I evaluated sloccount, but that doesn't consider the files we want and can't be customized easily to do it.

  • Who is working on what? (Priorities/goals/majors issues/roles)

TikiTeam

Who is working here generally? Link UserPage.
amette

Trackers
  • Bugs
  • RFEs
  • tech support
  • patches



Competition and standards

List of other products with similar/interesting/related features.

Here I would like to see some "editorial" content. How do our features compare to others?

CVS Doc section

This is where new features being developed and only in CVS are documented. When the CVS becomes RC/official release, the info in the CVS docs is transferred to update the official docs (FeatureXDoc).


Discussion/participation

Where ideas can be exchanged, debated, etc. Interested people can subscribe to the wiki page and/or to these forums as they would a mailing list.

History

Information Version
Marc Laporte 9
View
amette added info on the used command not being very portable 8
View
amette added info on the used command not being very portable 7
View
amette added info on the used command not being very portable 4
View
amette 3
View
Marc Laporte what is LOC? 2
View
amette 1
View