I'm trying to run sloccount against the Drupal project codebase. I understand that foo.module will not be counted as PHP code until I rename the file foo.module.php, but there is something else that I have not yet figured out. For some reason, I'm getting output reporting Pascal files.
The offending 'node' directory contains:
content_types.inc
node.css
node.info
node.module
It is a subversion-controlled working copy, so perhaps that has something to do with and I'll report more if I can isolate the cause of the problem.
OUTPUT DETAILS:
$ sloccount drupal/r5.1.0/modules/
Creating filelist for aggregator
Creating filelist for block
Creating filelist for blog
Creating filelist for blogapi
Creating filelist for book
Creating filelist for color
Creating filelist for comment
Creating filelist for contact
Creating filelist for drupal
Creating filelist for filter
Creating filelist for forum
Creating filelist for help
Creating filelist for legacy
Creating filelist for locale
Creating filelist for menu
Creating filelist for node
Creating filelist for path
Creating filelist for ping
Creating filelist for poll
Creating filelist for profile
Creating filelist for search
Creating filelist for statistics
Creating filelist for system
Creating filelist for taxonomy
Creating filelist for throttle
Creating filelist for tracker
Creating filelist for upload
Creating filelist for user
Creating filelist for watchdog
Categorizing files.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Finding a working MD5 command....
Found a working MD5 command.
Computing results.
Warning: newline in string - file /vendorsrc/drupal/r5.1.0/modules/node/content_types.inc, line 144
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
SLOC Directory SLOC-by-Language (Sorted)
196 node pascal=196
0 aggregator (none)
0 block (none)
0 blog (none)
0 blogapi (none)
0 book (none)
0 color (none)
0 comment (none)
0 contact (none)
0 drupal (none)
0 filter (none)
0 forum (none)
0 help (none)
0 legacy (none)
0 locale (none)
0 menu (none)
0 path (none)
0 ping (none)
0 poll (none)
0 profile (none)
0 search (none)
0 statistics (none)
0 system (none)
0 taxonomy (none)
0 throttle (none)
0 tracker (none)
0 upload (none)
0 user (none)
0 watchdog (none)
Totals grouped by language (dominant language first):
pascal: 196 (100.00%)