Problem report by location – PicInfo sample application
PicBMP
21 Type field written, not read: BITMAPFILEHEADER.bfSize - 0 reads, 1 write24 Type field written, not read: BITMAPFILEHEADER.bfOffBits - 0 reads, 1 write
25 Too many uncommented lines: 27
27 Type field written, not read: BITMAPINFOHEADER.biSize - 0 reads, 1 write
30 Type field written, not read: BITMAPINFOHEADER.biPlanes - 0 reads, 1 write
33 Type field written, not read: BITMAPINFOHEADER.biSizeImage - 0 reads, 1 write
34 Type field written, not read: BITMAPINFOHEADER.biXPelsPerMeter - 0 reads, 1 write
35 Type field written, not read: BITMAPINFOHEADER.biYPelsPerMeter - 0 reads, 1 write
36 Type field written, not read: BITMAPINFOHEADER.biClrUsed - 0 reads, 1 write
37 Type field written, not read: BITMAPINFOHEADER.biClrImportant - 0 reads, 1 write
40 Type field written, not read: BITMAPCOREHEADER.bcSize - 0 reads, 1 write
43 Type field written, not read: BITMAPCOREHEADER.bcPlanes - 0 reads, 1 write
49 Dead constant: BI_
52 Dead constant: BI_
57 Variable written, not read: IsRLE - 0 reads, 2 writes
60 Variable read, not written: StoredFilename - 1 read, 0 writes
Property IPicInfo_ MaxColors [Get]
128 Case branch(es) missing for Enum - bmpUnknownProperty IPicInfo_ Size [Get]
153 Case branch(es) missing for Enum - bmpUnknownPicForm
1 Form missing Icon1 Control outside visible area: CommandButton SaveFile - Too far right
Sub Form_ KeyPress
Dead procedure - KeyPreview property is False49 Possibly commented-out code
PicGIF
31 Type field written, not read: TLogicalScreenDescriptor.BackgroundColorIndex - 0 reads, 1 write32 Type field written, not read: TLogicalScreenDescriptor.PixelAspectRatio - 0 reads, 1 write
Function ReadGIF
90 Assigned value not used: FileNr - IntegerProperty Version [Get]
Dead procedurePicMain
Declare Function GetSaveFileNameA
Dead declaration044 Dead enum constant: OFN_
045 Dead enum constant: OFN_
045 Line too long: 181
049 Dead enum constant: OFN_
054 Dead enum constant: OFN_
057 Dead enum constant: OFN_
064 Dead enum constant: OFN_
076 Dead enum constant: OFN_
080 Dead enum constant: OFN_
092 Dead enum constant: OFN_
Function ShowFileOpenDialog
Too many parameters: ShowFileOpenDialog117 Line too long: 296
Optional parameter never passed a value: DialogTitle
Optional parameter never passed a value: InitialDir
Optional parameter never passed a value: Flags
Optional parameter never passed a value: FilterIndex
Function FileDialog
Too many parameters: FileDialog135 Line too long: 234
190 Too many uncommented lines: 34
Number of problems by file
File | Problems | Distribution |
---|---|---|
PicMain | 20 | ******************** |
PicBMP | 18 | ****************** |
PicGIF | 4 | **** |
PicForm | 4 | **** |
Problem statistics
Problem | Count | Type |
---|---|---|
Assigned value not used | 1 | Logic |
Case branch(es) missing for Enum | 2 | Logic |
Control outside visible area | 1 | Dead |
Dead constant | 2 | Dead |
Dead enum constant | 9 | Dead |
Dead procedure/declaration/event | 3 | Dead |
Form missing Icon | 1 | Func |
Line too long | 3 | Style |
Optional parameter never passed a value | 4 | Dead |
Possibly commented-out code | 1 | Style |
Too many parameters | 2 | Style |
Too many uncommented lines | 2 | Style |
Type field written, not read | 13 | Dead |
Variable read, not written | 1 | Dead |
Variable written, not read | 1 | Dead |
Type | Count | |
Style | 8 | |
Functionality | 1 | |
Logic | 3 | |
Dead code | 34 | |
Total | 46 | |
Problems/logical code line | 0,12 |
Filter: <Default>