Report

792 statements analysed.

Messages by category

type number previous difference
convention 22 22 =
refactor 17 17 =
warning 6 6 =
error 0 0 =

% errors / warnings by module

module error warning refactor convention
LaZy_NT.carve_object 0.00 100.00 47.06 36.36

Messages

message id occurrences
invalid-name 19
locally-disabled 14
too-many-branches 5
too-many-arguments 4
too-few-public-methods 3
bad-continuation 3
unused-variable 2
too-many-locals 2
too-many-instance-attributes 2
bad-builtin 2
unused-import 1
too-many-statements 1
protected-access 1

Global evaluation

Your code has been rated at 9.43/10 (previous run: 9.43/10, +0.00)

Duplication

  now previous difference
nb duplicated lines 0 0 =
percent duplicated lines 0.000 0.000 =

External dependencies

LaZy_NT 
  \-carve_object (LaZy_NT.app,LaZy_NT.disk_image)
  \-config (LaZy_NT.app,LaZy_NT.disk_image,LaZy_NT.carve_object)
  \-disk_image (LaZy_NT.app)
PIL 
  \-ExifTags (LaZy_NT.carve_object)
  \-Image (LaZy_NT.carve_object)
argparse (LaZy_NT.app)
hachoir_core 
  \-cmd_line (LaZy_NT.carve_object)
hachoir_metadata (LaZy_NT.carve_object)
hachoir_parser (LaZy_NT.carve_object)
md5 (LaZy_NT.carve_object)
openxmllib (LaZy_NT.carve_object)
os (LaZy_NT.app,LaZy_NT.disk_image,LaZy_NT.carve_object)
pyPdf (LaZy_NT.carve_object)
re (LaZy_NT.disk_image,LaZy_NT.carve_object)
sqlite3 (LaZy_NT.app)
warnings (LaZy_NT.app,LaZy_NT.carve_object)
zipfile (LaZy_NT.carve_object)

Statistics by type

type number old number difference %documented %badname
module 6 6 = 100.00 16.67
class 7 7 = 100.00 28.57
method 32 32 = 100.00 9.38
function 7 7 = 100.00 0.00

Raw metrics

type number % previous difference
code 1026 57.22 1026 =
docstring 506 28.22 506 =
comment 74 4.13 74 =
empty 187 10.43 187 =

Messages

type module object line col_offset message
info LaZy_NT   1 0 Locally disabling pointless-string-statement (W0105)
info LaZy_NT   1 0 Locally disabling relative-import (W0403)
convention LaZy_NT   1 0 Invalid module name "LaZy_NT"
info LaZy_NT.app   1 0 Locally disabling pointless-string-statement (W0105)
info LaZy_NT.app   1 0 Locally disabling relative-import (W0403)
info LaZy_NT.app   83 0 Locally disabling anomalous-backslash-in-string (W1401)
refactor LaZy_NT.app App.run 173 4 Too many branches (15/12)
info LaZy_NT.carve_object   1 0 Locally disabling pointless-string-statement (W0105)
info LaZy_NT.carve_object   1 0 Locally disabling relative-import (W0403)
info LaZy_NT.carve_object   373 0 Locally disabling bare-except (W0702)
info LaZy_NT.carve_object   416 0 Locally disabling bare-except (W0702)
convention LaZy_NT.carve_object   337 0 Wrong continued indentation. chr(0xF0)): | ^
convention LaZy_NT.carve_object   340 0 Wrong continued indentation. chr(0x03)): | ^
convention LaZy_NT.carve_object   343 0 Wrong continued indentation. chr(0xF0)): | ^
convention LaZy_NT.carve_object   22 0 Invalid constant name "module_status"
convention LaZy_NT.carve_object CarveObject.__init__ 152 8 Invalid attribute name "id"
refactor LaZy_NT.carve_object CarveObject 130 0 Too many instance attributes (9/7)
refactor LaZy_NT.carve_object CarveObject.__init__ 135 4 Too many arguments (8/5)
refactor LaZy_NT.carve_object CarveObject 130 0 Too few public methods (0/2)
convention LaZy_NT.carve_object vFile 193 0 Invalid class name "vFile"
convention LaZy_NT.carve_object vFile.__init__ 220 8 Invalid attribute name "ASCII_flag"
refactor LaZy_NT.carve_object vFile.__init__ 197 4 Too many arguments (9/5)
refactor LaZy_NT.carve_object vFile.__analyze_subheaders 324 4 Too many branches (14/12)
warning LaZy_NT.carve_object vFile.__validate_carved_file 395 41 Used builtin function 'file'
warning LaZy_NT.carve_object vFile.__validate_carved_file 388 20 Unused variable 'img'
warning LaZy_NT.carve_object vFile.__validate_carved_file 395 16 Unused variable 'pdf_file'
refactor LaZy_NT.carve_object vFile.__get_meta 408 4 Too many local variables (16/15)
warning LaZy_NT.carve_object vFile.__get_meta 424 31 Access to a protected member _getexif of a client class
warning LaZy_NT.carve_object vFile.__get_meta 437 41 Used builtin function 'file'
refactor LaZy_NT.carve_object vFile.__get_meta 408 4 Too many branches (15/12)
convention LaZy_NT.carve_object vString 565 0 Invalid class name "vString"
refactor LaZy_NT.carve_object vString.__init__ 570 4 Too many arguments (8/5)
warning LaZy_NT.carve_object   37 4 Unused import pyPdf
info LaZy_NT.config   1 0 Locally disabling pointless-string-statement (W0105)
info LaZy_NT.config   1 0 Locally disabling anomalous-backslash-in-string (W1401)
convention LaZy_NT.config   26 0 Invalid constant name "options"
convention LaZy_NT.config   66 0 Invalid constant name "audit"
convention LaZy_NT.config   68 0 Invalid constant name "sqldb"
convention LaZy_NT.config   70 0 Invalid constant name "ascii_raw_log"
convention LaZy_NT.config   72 0 Invalid constant name "deep_raw_log"
refactor LaZy_NT.config Signature.__init__ 80 4 Too many arguments (6/5)
refactor LaZy_NT.config Signature 75 0 Too few public methods (0/2)
refactor LaZy_NT.config StringTemplate 113 0 Too few public methods (0/2)
convention LaZy_NT.config   150 0 Invalid constant name "signatures"
convention LaZy_NT.config   197 0 Invalid constant name "templates"
convention LaZy_NT.config   238 0 Invalid constant name "histogram"
info LaZy_NT.disk_image   1 0 Locally disabling pointless-string-statement (W0105)
info LaZy_NT.disk_image   1 0 Locally disabling relative-import (W0403)
info LaZy_NT.disk_image   1 0 Locally disabling no-self-use (R0201)
convention LaZy_NT.disk_image DiskImage.__init__ 32 8 Invalid attribute name "mm"
convention LaZy_NT.disk_image DiskImage.__init__ 52 8 Invalid attribute name "__wait_for_ASCII"
refactor LaZy_NT.disk_image DiskImage 14 0 Too many instance attributes (15/7)
refactor LaZy_NT.disk_image DiskImage.analyze_chunk 55 4 Too many branches (21/12)
convention LaZy_NT.disk_image DiskImage.finish_inprocess_vFiles 138 4 Invalid method name "finish_inprocess_vFiles"
refactor LaZy_NT.disk_image DiskImage.process_comp_stream 193 4 Too many local variables (20/15)
refactor LaZy_NT.disk_image DiskImage.process_comp_stream 193 4 Too many branches (24/12)
refactor LaZy_NT.disk_image DiskImage.process_comp_stream 193 4 Too many statements (70/50)
convention LaZy_NT.disk_image DiskImage.__instantiate_vFile 505 4 Invalid method name "__instantiate_vFile"
convention LaZy_NT.disk_image DiskImage.__instantiate_vString 590 4 Invalid method name "__instantiate_vString"