Changeset 6527bcd67e083c4a08555446cf6020693ada4fdd
- Timestamp:
- 03/24/2008 11:03:38 AM
(10 months ago)
- Author:
- Robin Luckey <robin@Tangier.local>
- git-committer:
- Robin Luckey <robin@Tangier.local> 1206381818 -0700
- git-parent:
[cc77c844971abc101b94fd9a7a093c0526ab484b]
- git-author:
- Robin Luckey <robin@Tangier.local> 1206381818 -0700
- Message:
[FIX] For --individual, move filenames to end of line (helps readability with long names). Whitespace cleanups.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcc77c84 |
r6527bcd |
|
| 104 | 104 | end |
|---|
| 105 | 105 | |
|---|
| 106 | | def individual |
|---|
| | 106 | def individual |
|---|
| 107 | 107 | STDOUT.write "Examining #{files.size} file(s)" |
|---|
| 108 | 108 | |
|---|
| 109 | | puts |
|---|
| 110 | | puts "Ohloh Line Count".center(76) |
|---|
| 111 | | puts "File Language Code Comment Comment % Blank Total" |
|---|
| 112 | | puts "----------------------------------------------- -------------- --------- --------- --------- --------- ---------" |
|---|
| | 109 | puts |
|---|
| | 110 | puts "Ohloh Line Count".center(76) |
|---|
| | 111 | puts "Language Code Comment Comment % Blank Total File" |
|---|
| | 112 | puts "-------------- --------- --------- --------- --------- --------- -----------------------------------------------" |
|---|
| 113 | 113 | |
|---|
| 114 | 114 | files.each do |file| |
|---|
| … | … | |
| 132 | 132 | |
|---|
| 133 | 133 | def write_individual_row(file, name, code, comment, blank) |
|---|
| 134 | | printf("%-48s", file) |
|---|
| 135 | | printf(" %-14s",name) |
|---|
| | 134 | printf("%-14s",name) |
|---|
| 136 | 135 | printf(" %10d",code) |
|---|
| 137 | 136 | printf(" %10d",comment) |
|---|
| … | … | |
| 142 | 141 | end |
|---|
| 143 | 142 | printf(" %10d",blank) |
|---|
| 144 | | printf(" %10d\n",code+comment+blank) |
|---|
| | 143 | printf(" %10d",code+comment+blank) |
|---|
| | 144 | printf(" %s\n", file) |
|---|
| 145 | 145 | end |
|---|
| 146 | 146 | |
|---|