Report Banner - Edit rsm.cfg File
Resource Standard Metrics™ for C, C++, C# and Java
Version 7.50 - mSquaredTechnologies.com
License Type: Site Multi-Network License - 10 Users
Licensed To : M Squared Technologies LLC
License No. : ST1000 License Date: May 31, 2007
Build Date : Apr 5 2008 Maintenance Date: May 31, 2010
©1996-2008 M Squared Technologies™ Run Date: Apr 05, 2008
________________________________________________________________________
License File: C:\Program Files\MSquared\M2 RSM\rsm.lic
Config. File: C:\Program Files\MSquared\M2 RSM\rsm.cfg
Command Line: -H -SQuality Notice Report -fa -fp -o -n cell.h game.h oce
an.h player.h sub.h target.h timer.h utility.h cell.cpp ga
me.cpp ocean.cpp player.cpp player_solution.cpp seahunt.cp
p sub.cpp target.cpp timer.cpp utility.cpp Fibonacci.cs
UDQN File : C:\Program Files\MSquared\M2 RSM\rsm_udqn.cfg
Quality Notice Report
~~ Function Metrics ~~
~~ Class/Struct Metrics ~~
~~ Quality Analysis ~~
File: cell.h
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 16 -------------------------
Class: Seahunt::Cell
Notice #52: Line 16, A class has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 20, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 20, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 20, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #130: A data member in the header file is not of the form m_*
File: cell.h
Line: 30| bool hit_status; // true if the cell is hit
Notice #34: Line 31, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
Notice #46: Class blank line percent, 5.3% is less than 10.0%.
Class: Seahunt::Cell
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 9 Prot 0 Private 1 Total 10
LOC 19 eLOC 17 lLOC 15 Comment 6 Lines 19
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
-------------------------- Class End Line: 35 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 27 eLOC 23 lLOC 16 Comment 13 Lines 41
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
________________________________________________________________________
End of File: cell.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: cell.h
File: game.h
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 15 -------------------------
Class: Seahunt::Game
Notice #52: Line 15, A class has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #34: Line 22, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
Notice #34: Line 23, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
Notice #130: A data member in the header file is not of the form m_*
File: game.h
Line: 24| bool status;
Notice #31: Class comments, 0.0% are less than 10.0%.
Notice #16: Class white space, 0.0% is less than 10.0%.
Notice #46: Class blank line percent, 0.0% is less than 10.0%.
Class: Seahunt::Game
Attributes Publ 0 Prot 0 Private 3 Total 3
Methods Publ 4 Prot 0 Private 0 Total 4
LOC 13 eLOC 11 lLOC 8 Comment 0 Lines 12
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
-------------------------- Class End Line: 27 --------------------------
Namespace End: Seahunt
Notice #20: File comment line percentage, 4.2% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 23 eLOC 19 lLOC 9 Comment 1 Lines 31
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
________________________________________________________________________
End of File: game.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: game.h
File: ocean.h
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 19 -------------------------
Class: Seahunt::Ocean
Notice #52: Line 19, A class has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #130: A data member in the header file is not of the form m_*
File: ocean.h
Line: 33| std::string name;
Notice #130: A data member in the header file is not of the form m_*
File: ocean.h
Line: 34| int target_count;
Notice #130: A data member in the header file is not of the form m_*
File: ocean.h
Line: 35| int active_targets;
Notice #130: A data member in the header file is not of the form m_*
File: ocean.h
Line: 36| int destroyed_targets;
Notice #34: Line 38, A pointer to a data object has been detected
within the specification for a class. This class must
be inspected to insure proper memory allocation and
de-allocation. This class must implement a public copy
constructor or a private copy constructor where by the
compiler will enforce no pass-by-value.
Notice #31: Class comments, 0.0% are less than 10.0%.
Notice #16: Class white space, 0.0% is less than 10.0%.
Notice #46: Class blank line percent, 0.0% is less than 10.0%.
Class: Seahunt::Ocean
Attributes Publ 0 Prot 0 Private 6 Total 6
Methods Publ 9 Prot 0 Private 2 Total 11
LOC 23 eLOC 21 lLOC 19 Comment 0 Lines 22
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
-------------------------- Class End Line: 41 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 34 eLOC 30 lLOC 20 Comment 5 Lines 47
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
________________________________________________________________________
End of File: ocean.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: ocean.h
File: player.h
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 17 -------------------------
Class: Seahunt::Player
Notice #52: Line 17, A class has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #130: A data member in the header file is not of the form m_*
File: player.h
Line: 32| std::string name;
Notice #130: A data member in the header file is not of the form m_*
File: player.h
Line: 33| int score;
Notice #130: A data member in the header file is not of the form m_*
File: player.h
Line: 34| int number_tries;
Notice #130: A data member in the header file is not of the form m_*
File: player.h
Line: 35| int number_hits;
Notice #130: A data member in the header file is not of the form m_*
File: player.h
Line: 36| time_t begintime;
Notice #31: Class comments, 0.0% are less than 10.0%.
Notice #46: Class blank line percent, 5.0% is less than 10.0%.
Class: Seahunt::Player
Attributes Publ 0 Prot 0 Private 5 Total 5
Methods Publ 11 Prot 0 Private 0 Total 11
LOC 20 eLOC 18 lLOC 16 Comment 0 Lines 20
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
-------------------------- Class End Line: 37 --------------------------
Namespace End: Seahunt
Notice #20: File comment line percentage, 3.0% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 32 eLOC 28 lLOC 17 Comment 1 Lines 41
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
________________________________________________________________________
End of File: player.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: player.h
File: sub.h
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 15 -------------------------
Class: Seahunt::Sub
Inheritance: Target
Notice #52: Line 15, A class has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
------------------------ Function Begin Line: 22 -----------------------
Function: Seahunt::Sub::Abstract
Parameters: (void)
Notice #51: Line 22, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #48: The number of logical lines of code or statements
0 is <= to the specified minimum of 0. This could
indicate a null function with no operational purpose.
Function: Seahunt::Sub::Abstract
LOC 1 eLOC 1 lLOC 0 Comment 0 Lines 1
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 22 ------------------------
Notice #31: Class comments, 0.0% are less than 10.0%.
Notice #16: Class white space, 0.0% is less than 10.0%.
Notice #46: Class blank line percent, 0.0% is less than 10.0%.
Class: Seahunt::Sub
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 1 Total 7
LOC 11 eLOC 9 lLOC 6 Comment 0 Lines 10
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
-------------------------- Class End Line: 25 --------------------------
Namespace End: Seahunt
Notice #20: File comment line percentage, 8.7% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 21 eLOC 17 lLOC 7 Comment 2 Lines 29
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 1
Total Function LOC.....: 1 Total Function Pts LOC : 0.0
Total Function eLOC....: 1 Total Function Pts eLOC: 0.0
Total Function lLOC....: 0 Total Function Pts lLOC: 0.0
Total Function Params .: 0 Total Function Return .: 1
Total Cyclo Complexity : 1 Total Function Complex.: 2
------ ----- ----- ------ ------ -----
Max Function LOC ......: 1 Average Function LOC ..: 1.00
Max Function eLOC .....: 1 Average Function eLOC .: 1.00
Max Function lLOC .....: 0 Average Function lLOC .: 0.00
________________________________________________________________________
End of File: sub.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: sub.h
File: target.h
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 28 -------------------------
Class: Seahunt::Target
------------------------ Function Begin Line: 46 -----------------------
Function: Seahunt::Target::Get_armor
Parameters: (void)
Function: Seahunt::Target::Get_armor
LOC 1 eLOC 1 lLOC 1 Comment 1 Lines 1
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 46 ------------------------
Notice #36: Line 57, Protected data has been identified with a class
specification. This design allows the protected data
to be freely accessed down the inheritance tree.
Notice #130: A data member in the header file is not of the form m_*
File: target.h
Line: 57| TargetStatus status;
Notice #36: Line 58, Protected data has been identified with a class
specification. This design allows the protected data
to be freely accessed down the inheritance tree.
Notice #130: A data member in the header file is not of the form m_*
File: target.h
Line: 58| std::string name;
Notice #36: Line 59, Protected data has been identified with a class
specification. This design allows the protected data
to be freely accessed down the inheritance tree.
Notice #130: A data member in the header file is not of the form m_*
File: target.h
Line: 59| int armor;
Notice #36: Line 60, Protected data has been identified with a class
specification. This design allows the protected data
to be freely accessed down the inheritance tree.
Notice #130: A data member in the header file is not of the form m_*
File: target.h
Line: 60| int hits;
Notice #36: Line 61, Protected data has been identified with a class
specification. This design allows the protected data
to be freely accessed down the inheritance tree.
Notice #130: A data member in the header file is not of the form m_*
File: target.h
Line: 61| int depth_limit;
------------------------ Function Begin Line: 65 -----------------------
Function: Seahunt::Target::Target
Parameters: (const Target & t)
Notice #51: Line 65, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #48: The number of logical lines of code or statements
0 is <= to the specified minimum of 0. This could
indicate a null function with no operational purpose.
Function: Seahunt::Target::Target
LOC 2 eLOC 0 lLOC 0 Comment 2 Lines 4
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 68 ------------------------
Class: Seahunt::Target
Attributes Publ 0 Prot 5 Private 0 Total 5
Methods Publ 10 Prot 0 Private 1 Total 11
LOC 29 eLOC 25 lLOC 16 Comment 8 Lines 42
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
-------------------------- Class End Line: 70 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 46 eLOC 38 lLOC 18 Comment 15 Lines 77
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 2
Total Function LOC.....: 3 Total Function Pts LOC : 0.0
Total Function eLOC....: 1 Total Function Pts eLOC: 0.0
Total Function lLOC....: 1 Total Function Pts lLOC: 0.0
Total Function Params .: 1 Total Function Return .: 2
Total Cyclo Complexity : 2 Total Function Complex.: 5
------ ----- ----- ------ ------ -----
Max Function LOC ......: 2 Average Function LOC ..: 1.50
Max Function eLOC .....: 1 Average Function eLOC .: 0.50
Max Function lLOC .....: 1 Average Function lLOC .: 0.50
________________________________________________________________________
End of File: target.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: target.h
File: timer.h
________________________________________________________________________
------------------------- Class Begin Line: 17 -------------------------
Class: Timer
Notice #52: Line 17, A class has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 49 eLOC 47 lLOC 19 Comment 12 Lines 78
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
________________________________________________________________________
End of File: timer.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: timer.h
File: utility.h
________________________________________________________________________
Namespace Begin: Seahunt
------------------------- Class Begin Line: 13 -------------------------
Class: Seahunt::Utility
Notice #52: Line 13, A class has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #16: Class white space, 0.0% is less than 10.0%.
Notice #46: Class blank line percent, 0.0% is less than 10.0%.
Class: Seahunt::Utility
Attributes Publ 0 Prot 0 Private 0 Total 0
Methods Publ 6 Prot 0 Private 0 Total 6
LOC 11 eLOC 9 lLOC 7 Comment 2 Lines 12
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
-------------------------- Class End Line: 25 --------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 20 eLOC 16 lLOC 8 Comment 3 Lines 30
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
________________________________________________________________________
End of File: utility.h
Notice #124: The test string, "Test Copyright" was not found in the file
File: utility.h
File: cell.cpp
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 14 -----------------------
Function: Seahunt::Cell::Cell
Parameters: ()
Notice #51: Line 14, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 16, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 17, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 18, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 19, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Notice #49: The function contains no input parameters or void.
Suggest using explict parameters for interface clarity.
Function: Seahunt::Cell::Cell
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 20 ------------------------
------------------------ Function Begin Line: 23 -----------------------
Function: Seahunt::Cell::Cell
Parameters: (const Cell & c)
Notice #51: Line 23, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Cell::Cell
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 29 ------------------------
------------------------ Function Begin Line: 32 -----------------------
Function: Seahunt::Cell::~Cell
Parameters: ()
Notice #51: Line 32, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #48: The number of logical lines of code or statements
0 is <= to the specified minimum of 0. This could
indicate a null function with no operational purpose.
Function: Seahunt::Cell::~Cell
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 34 ------------------------
------------------------ Function Begin Line: 38 -----------------------
Function: Seahunt::Cell::Set_xyz
Parameters: (int _x, int _y, int _z)
Notice #51: Line 38, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Function: Seahunt::Cell::Set_xyz
LOC 3 eLOC 1 lLOC 3 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.1
------------------------- Function End Line: 40 ------------------------
------------------------ Function Begin Line: 45 -----------------------
Function: Seahunt::Cell::Get_x
Parameters: (void)
Notice #51: Line 45, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 46 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Cell::Get_x
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 47 ------------------------
------------------------ Function Begin Line: 52 -----------------------
Function: Seahunt::Cell::Get_y
Parameters: (void)
Notice #51: Line 52, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 53 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Cell::Get_y
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 54 ------------------------
------------------------ Function Begin Line: 59 -----------------------
Function: Seahunt::Cell::Get_z
Parameters: (void)
Notice #51: Line 59, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 60 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Cell::Get_z
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 61 ------------------------
------------------------ Function Begin Line: 65 -----------------------
Function: Seahunt::Cell::Set_target
Parameters: (Target * t)
Notice #51: Line 65, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 72 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Cell::Set_target
LOC 9 eLOC 5 lLOC 4 Comment 0 Lines 9
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 73 ------------------------
------------------------ Function Begin Line: 77 -----------------------
Function: Seahunt::Cell::Get_target
Parameters: (void)
Notice #51: Line 77, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 78 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Cell::Get_target
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 79 ------------------------
------------------------ Function Begin Line: 83 -----------------------
Function: Seahunt::Cell::Hit
Parameters: (void)
Notice #51: Line 83, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 108 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Cell::Hit
LOC 27 eLOC 15 lLOC 9 Comment 0 Lines 27
Function Points FP(LOC) 0.5 FP(eLOC) 0.3 FP(lLOC) 0.2
------------------------ Function End Line: 109 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 119 -----------------------
Function: main
Parameters: (void)
Notice #51: Line 119, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 126, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 128, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 130, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #119: Line: 161 Return is not a function,
no parenthesis should be used.
Function: main
LOC 31 eLOC 21 lLOC 19 Comment 4 Lines 44
Function Points FP(LOC) 0.6 FP(eLOC) 0.4 FP(lLOC) 0.4
------------------------ Function End Line: 162 ------------------------
Notice #20: File comment line percentage, 9.3% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 127 eLOC 83 lLOC 49 Comment 13 Lines 167
Function Points FP(LOC) 2.4 FP(eLOC) 1.6 FP(lLOC) 0.9
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 11
Total Function LOC.....: 98 Total Function Pts LOC : 2.4
Total Function eLOC....: 56 Total Function Pts eLOC: 1.6
Total Function lLOC....: 49 Total Function Pts lLOC: 0.9
Total Function Params .: 5 Total Function Return .: 11
Total Cyclo Complexity : 19 Total Function Complex.: 35
------ ----- ----- ------ ------ -----
Max Function LOC ......: 31 Average Function LOC ..: 8.91
Max Function eLOC .....: 21 Average Function eLOC .: 5.09
Max Function lLOC .....: 19 Average Function lLOC .: 4.45
________________________________________________________________________
End of File: cell.cpp
Notice #124: The test string, "Test Copyright" was not found in the file
File: cell.cpp
File: game.cpp
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 9 ------------------------
Function: Seahunt::Game::Game
Parameters: ()
Notice #51: Line 9, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Notice #49: The function contains no input parameters or void.
Suggest using explict parameters for interface clarity.
Function: Seahunt::Game::Game
LOC 15 eLOC 9 lLOC 7 Comment 0 Lines 15
Function Points FP(LOC) 0.3 FP(eLOC) 0.2 FP(lLOC) 0.1
------------------------- Function End Line: 23 ------------------------
------------------------ Function Begin Line: 26 -----------------------
Function: Seahunt::Game::~Game
Parameters: ()
Notice #51: Line 26, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 30, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 35, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Game::~Game
LOC 12 eLOC 6 lLOC 4 Comment 0 Lines 12
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 37 ------------------------
------------------------ Function Begin Line: 41 -----------------------
Function: Seahunt::Game::Play
Parameters: ()
Notice #51: Line 41, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 43, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 46, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #43: Line 63, The keyword 'continue' has been found.
The use of 'continue' can create code which is difficult
to maintain where the logic flow jumps to the beginning
of the framing control structure.
Notice #43: Line 69, The keyword 'continue' has been found.
The use of 'continue' can create code which is difficult
to maintain where the logic flow jumps to the beginning
of the framing control structure.
Notice #43: Line 79, The keyword 'continue' has been found.
The use of 'continue' can create code which is difficult
to maintain where the logic flow jumps to the beginning
of the framing control structure.
Notice #17: Function comments, 3.6% are less than 10.0%.
Notice #49: The function contains no input parameters or void.
Suggest using explict parameters for interface clarity.
Function: Seahunt::Game::Play
LOC 53 eLOC 31 lLOC 21 Comment 2 Lines 65
Function Points FP(LOC) 1.0 FP(eLOC) 0.6 FP(lLOC) 0.4
------------------------ Function End Line: 105 ------------------------
Namespace End: Seahunt
Notice #20: File comment line percentage, 4.3% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 88 eLOC 52 lLOC 32 Comment 4 Lines 107
Function Points FP(LOC) 1.7 FP(eLOC) 1.0 FP(lLOC) 0.6
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 3
Total Function LOC.....: 80 Total Function Pts LOC : 1.7
Total Function eLOC....: 46 Total Function Pts eLOC: 1.0
Total Function lLOC....: 32 Total Function Pts lLOC: 0.6
Total Function Params .: 0 Total Function Return .: 3
Total Cyclo Complexity : 16 Total Function Complex.: 19
------ ----- ----- ------ ------ -----
Max Function LOC ......: 53 Average Function LOC ..: 26.67
Max Function eLOC .....: 31 Average Function eLOC .: 15.33
Max Function lLOC .....: 21 Average Function lLOC .: 10.67
________________________________________________________________________
End of File: game.cpp
Notice #124: The test string, "Test Copyright" was not found in the file
File: game.cpp
File: ocean.cpp
________________________________________________________________________
Namespace Begin: Anonymous - File Scope
Notice #1: Line 20, Line character length = 81. This width
exceeds the standard terminal width of 80 characters.
Namespace End: Anonymous - File Scope
Namespace Begin: Seahunt
------------------------ Function Begin Line: 28 -----------------------
Function: Seahunt::Ocean::Ocean
Parameters: ()
Notice #51: Line 28, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Notice #49: The function contains no input parameters or void.
Suggest using explict parameters for interface clarity.
Function: Seahunt::Ocean::Ocean
LOC 8 eLOC 6 lLOC 4 Comment 0 Lines 8
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 35 ------------------------
------------------------ Function Begin Line: 39 -----------------------
Function: Seahunt::Ocean::Init
Parameters: (void)
Notice #51: Line 39, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 40, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 41, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 44, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #7: Line 44, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
Notice #50: Line 46, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 48, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 50, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 52, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 5.3% are less than 10.0%.
Notice #46: Function blank line percent, 5.0% is less than 10.0%.
Function: Seahunt::Ocean::Init
LOC 18 eLOC 8 lLOC 8 Comment 1 Lines 20
Function Points FP(LOC) 0.3 FP(eLOC) 0.2 FP(lLOC) 0.2
------------------------- Function End Line: 58 ------------------------
------------------------ Function Begin Line: 61 -----------------------
Function: Seahunt::Ocean::~Ocean
Parameters: ()
Notice #51: Line 61, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 63, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #7: Line 63, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
Notice #50: Line 68, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 7.1% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Ocean::~Ocean
LOC 13 eLOC 7 lLOC 4 Comment 1 Lines 14
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 74 ------------------------
------------------------ Function Begin Line: 78 -----------------------
Function: Seahunt::Ocean::PlaceTarget
Parameters: (void)
Notice #51: Line 78, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 79, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Ocean::PlaceTarget
LOC 13 eLOC 7 lLOC 4 Comment 0 Lines 13
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 90 ------------------------
------------------------ Function Begin Line: 94 -----------------------
Function: Seahunt::Ocean::TargetPlacement
Parameters: (Target * t)
Notice #51: Line 94, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 95, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 100, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 101, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 102, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #1: Line 107, Line character length = 83. This width
exceeds the standard terminal width of 80 characters.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Ocean::TargetPlacement
LOC 28 eLOC 18 lLOC 13 Comment 0 Lines 28
Function Points FP(LOC) 0.5 FP(eLOC) 0.3 FP(lLOC) 0.2
------------------------ Function End Line: 121 ------------------------
----------------------- Function Begin Line: 125 -----------------------
Function: Seahunt::Ocean::Hit
Parameters: (void)
Notice #51: Line 125, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 126, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 127, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 128, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #119: Line: 144 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Ocean::Hit
LOC 21 eLOC 15 lLOC 13 Comment 0 Lines 21
Function Points FP(LOC) 0.4 FP(eLOC) 0.3 FP(lLOC) 0.2
------------------------ Function End Line: 145 ------------------------
----------------------- Function Begin Line: 149 -----------------------
Function: Seahunt::Ocean::Show
Parameters: (void)
Notice #51: Line 149, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 150, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 151, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 152, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 153, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #7: Line 153, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
Notice #50: Line 158, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #7: Line 158, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
Notice #50: Line 169, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #7: Line 169, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 2.7% is less than 10.0%.
Function: Seahunt::Ocean::Show
LOC 36 eLOC 20 lLOC 16 Comment 0 Lines 37
Function Points FP(LOC) 0.7 FP(eLOC) 0.4 FP(lLOC) 0.3
------------------------ Function End Line: 185 ------------------------
----------------------- Function Begin Line: 189 -----------------------
Function: Seahunt::Ocean::ShowTargets
Parameters: (void)
Notice #51: Line 189, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 196, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #7: Line 196, pre-increment '++ operator' identified.
This can be a problematic construct in compound statements.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Ocean::ShowTargets
LOC 17 eLOC 11 lLOC 5 Comment 0 Lines 17
Function Points FP(LOC) 0.3 FP(eLOC) 0.2 FP(lLOC) 0.1
------------------------ Function End Line: 205 ------------------------
----------------------- Function Begin Line: 209 -----------------------
Function: Seahunt::Ocean::Get_target_count
Parameters: (void)
Notice #51: Line 209, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 210 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Ocean::Get_target_count
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 211 ------------------------
----------------------- Function Begin Line: 215 -----------------------
Function: Seahunt::Ocean::Get_active_targets
Parameters: (void)
Notice #51: Line 215, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 216 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Ocean::Get_active_targets
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 217 ------------------------
----------------------- Function Begin Line: 221 -----------------------
Function: Seahunt::Ocean::Get_destroyed_targets
Parameters: (void)
Notice #51: Line 221, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 222 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Ocean::Get_destroyed_targets
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 223 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 231 -----------------------
Function: main
Parameters: (void)
Notice #51: Line 231, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 249 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Function: main
LOC 12 eLOC 10 lLOC 10 Comment 0 Lines 20
Function Points FP(LOC) 0.2 FP(eLOC) 0.2 FP(lLOC) 0.2
------------------------ Function End Line: 250 ------------------------
Notice #20: File comment line percentage, 3.1% is less than 10.0%
NOTICE #45: New and delete counts do not match for this file.
This could indicate the potential for a memory leak.
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 217 eLOC 143 lLOC 83 Comment 7 Lines 252
Function Points FP(LOC) 4.1 FP(eLOC) 2.7 FP(lLOC) 1.6
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 12
Total Function LOC.....: 175 Total Function Pts LOC : 4.1
Total Function eLOC....: 105 Total Function Pts eLOC: 2.7
Total Function lLOC....: 80 Total Function Pts lLOC: 1.6
Total Function Params .: 1 Total Function Return .: 12
Total Cyclo Complexity : 32 Total Function Complex.: 45
------ ----- ----- ------ ------ -----
Max Function LOC ......: 36 Average Function LOC ..: 14.58
Max Function eLOC .....: 20 Average Function eLOC .: 8.75
Max Function lLOC .....: 16 Average Function lLOC .: 6.67
________________________________________________________________________
End of File: ocean.cpp
Notice #124: The test string, "Test Copyright" was not found in the file
File: ocean.cpp
File: player.cpp
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 9 ------------------------
Function: Seahunt::Player::Player
Parameters: ()
Notice #51: Line 9, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 10, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 12, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 13, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Notice #49: The function contains no input parameters or void.
Suggest using explict parameters for interface clarity.
Function: Seahunt::Player::Player
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 15 ------------------------
------------------------ Function Begin Line: 18 -----------------------
Function: Seahunt::Player::Player
Parameters: (std::string n)
Notice #51: Line 18, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 21, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 22, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 23, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Player::Player
LOC 7 eLOC 5 lLOC 5 Comment 0 Lines 7
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 24 ------------------------
------------------------ Function Begin Line: 27 -----------------------
Function: Seahunt::Player::~Player
Parameters: ()
Notice #51: Line 27, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #48: The number of logical lines of code or statements
0 is <= to the specified minimum of 0. This could
indicate a null function with no operational purpose.
Function: Seahunt::Player::~Player
LOC 2 eLOC 0 lLOC 0 Comment 1 Lines 3
Function Points FP(LOC) 0.0 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 29 ------------------------
------------------------ Function Begin Line: 33 -----------------------
Function: Seahunt::Player::Hit
Parameters: (Ocean * ocean)
Notice #51: Line 33, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 41 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Player::Hit
LOC 10 eLOC 6 lLOC 5 Comment 0 Lines 10
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 42 ------------------------
------------------------ Function Begin Line: 46 -----------------------
Function: Seahunt::Player::Score
Parameters: (Ocean * ocean)
Notice #51: Line 46, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 50 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Player::Score
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.0
------------------------- Function End Line: 51 ------------------------
------------------------ Function Begin Line: 55 -----------------------
Function: Seahunt::Player::Show
Parameters: (void)
Notice #51: Line 55, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Player::Show
LOC 18 eLOC 14 lLOC 10 Comment 0 Lines 18
Function Points FP(LOC) 0.3 FP(eLOC) 0.3 FP(lLOC) 0.2
------------------------- Function End Line: 72 ------------------------
------------------------ Function Begin Line: 76 -----------------------
Function: Seahunt::Player::Get_score
Parameters: (void)
Notice #51: Line 76, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 77 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Player::Get_score
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 78 ------------------------
------------------------ Function Begin Line: 82 -----------------------
Function: Seahunt::Player::Get_number_hits
Parameters: (void)
Notice #51: Line 82, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 83 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Player::Get_number_hits
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 84 ------------------------
------------------------ Function Begin Line: 88 -----------------------
Function: Seahunt::Player::Get_number_tries
Parameters: (void)
Notice #51: Line 88, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 89 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Player::Get_number_tries
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 90 ------------------------
------------------------ Function Begin Line: 94 -----------------------
Function: Seahunt::Player::Get_name
Parameters: (void)
Notice #51: Line 94, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 95 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Player::Get_name
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 96 ------------------------
----------------------- Function Begin Line: 100 -----------------------
Function: Seahunt::Player::Set_name
Parameters: (std::string n)
Notice #51: Line 100, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Function: Seahunt::Player::Set_name
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 102 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 109 -----------------------
Function: main
Parameters: (void)
Notice #51: Line 109, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 117 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Function: main
LOC 8 eLOC 6 lLOC 6 Comment 0 Lines 10
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------ Function End Line: 118 ------------------------
Notice #20: File comment line percentage, 2.9% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 100 eLOC 70 lLOC 38 Comment 3 Lines 126
Function Points FP(LOC) 1.9 FP(eLOC) 1.3 FP(lLOC) 0.7
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 12
Total Function LOC.....: 73 Total Function Pts LOC : 1.9
Total Function eLOC....: 45 Total Function Pts eLOC: 1.3
Total Function lLOC....: 38 Total Function Pts lLOC: 0.7
Total Function Params .: 4 Total Function Return .: 12
Total Cyclo Complexity : 14 Total Function Complex.: 30
------ ----- ----- ------ ------ -----
Max Function LOC ......: 18 Average Function LOC ..: 6.08
Max Function eLOC .....: 14 Average Function eLOC .: 3.75
Max Function lLOC .....: 10 Average Function lLOC .: 3.17
________________________________________________________________________
End of File: player.cpp
Notice #124: The test string, "Test Copyright" was not found in the file
File: player.cpp
File: player_solution.cpp
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 10 -----------------------
Function: Seahunt::Player::Player
Parameters: ()
Notice #50: Line 11, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 12, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 13, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 9.1% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Notice #49: The function contains no input parameters or void.
Suggest using explict parameters for interface clarity.
Function: Seahunt::Player::Player
LOC 10 eLOC 8 lLOC 6 Comment 1 Lines 10
Function Points FP(LOC) 0.2 FP(eLOC) 0.2 FP(lLOC) 0.1
------------------------- Function End Line: 19 ------------------------
------------------------ Function Begin Line: 23 -----------------------
Function: Seahunt::Player::Player
Parameters: (const std::string& label)
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Player::Player
LOC 9 eLOC 7 lLOC 5 Comment 1 Lines 9
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 31 ------------------------
------------------------ Function Begin Line: 35 -----------------------
Function: Seahunt::Player::~Player
Parameters: ()
Function: Seahunt::Player::~Player
LOC 5 eLOC 3 lLOC 1 Comment 2 Lines 6
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.0
------------------------- Function End Line: 40 ------------------------
------------------------ Function Begin Line: 44 -----------------------
Function: Seahunt::Player::reset
Parameters: (void)
Notice #50: Line 45, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 46, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 47, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Function: Seahunt::Player::reset
LOC 5 eLOC 3 lLOC 3 Comment 1 Lines 5
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 48 ------------------------
------------------------ Function Begin Line: 52 -----------------------
Function: Seahunt::Player::begin
Parameters: (void)
Notice #119: Line: 54 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Player::begin
LOC 4 eLOC 2 lLOC 2 Comment 1 Lines 4
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 55 ------------------------
------------------------ Function Begin Line: 59 -----------------------
Function: Seahunt::Player::elapsed
Parameters: (void)
Notice #119: Line: 61 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Player::elapsed
LOC 4 eLOC 2 lLOC 2 Comment 1 Lines 4
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 62 ------------------------
------------------------ Function Begin Line: 67 -----------------------
Function: Seahunt::Player::hit
Parameters: (Ocean* ocean)
Notice #17: Function comments, 8.3% are less than 10.0%.
Function: Seahunt::Player::hit
LOC 11 eLOC 7 lLOC 6 Comment 1 Lines 16
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 82 ------------------------
------------------------ Function Begin Line: 86 -----------------------
Function: Seahunt::Player::place_targets
Parameters: (Ocean* ocean)
Function: Seahunt::Player::place_targets
LOC 3 eLOC 1 lLOC 1 Comment 1 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 88 ------------------------
------------------------ Function Begin Line: 93 -----------------------
Function: Seahunt::Player::score
Parameters: (Ocean* ocean)
Function: Seahunt::Player::score
LOC 5 eLOC 3 lLOC 2 Comment 1 Lines 5
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.0
------------------------- Function End Line: 97 ------------------------
----------------------- Function Begin Line: 102 -----------------------
Function: Seahunt::Player::show
Parameters: (void)
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Player::show
LOC 8 eLOC 6 lLOC 6 Comment 1 Lines 8
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------ Function End Line: 109 ------------------------
----------------------- Function Begin Line: 114 -----------------------
Function: Seahunt::Player::get_score
Parameters: (void)
Function: Seahunt::Player::get_score
LOC 3 eLOC 1 lLOC 1 Comment 1 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 116 ------------------------
----------------------- Function Begin Line: 121 -----------------------
Function: Seahunt::Player::get_number_hits
Parameters: (void)
Function: Seahunt::Player::get_number_hits
LOC 3 eLOC 1 lLOC 1 Comment 1 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 123 ------------------------
----------------------- Function Begin Line: 128 -----------------------
Function: Seahunt::Player::get_number_tries
Parameters: (void)
Function: Seahunt::Player::get_number_tries
LOC 3 eLOC 1 lLOC 1 Comment 1 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 130 ------------------------
----------------------- Function Begin Line: 135 -----------------------
Function: Seahunt::Player::get_name
Parameters: (void)
Function: Seahunt::Player::get_name
LOC 3 eLOC 1 lLOC 1 Comment 1 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 137 ------------------------
----------------------- Function Begin Line: 142 -----------------------
Function: Seahunt::Player::set_name
Parameters: (const std::string& n)
Function: Seahunt::Player::set_name
LOC 3 eLOC 1 lLOC 1 Comment 1 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 144 ------------------------
----------------------- Function Begin Line: 149 -----------------------
Function: Seahunt::Player::set_name
Parameters: (void)
Function: Seahunt::Player::set_name
LOC 3 eLOC 1 lLOC 1 Comment 1 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------ Function End Line: 151 ------------------------
Namespace End: Seahunt
----------------------- Function Begin Line: 159 -----------------------
Function: main
Parameters: (void)
Notice #119: Line: 179 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 5.6% are less than 10.0%.
Function: main
LOC 17 eLOC 11 lLOC 8 Comment 1 Lines 22
Function Points FP(LOC) 0.3 FP(eLOC) 0.2 FP(lLOC) 0.2
------------------------ Function End Line: 180 ------------------------
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 132 eLOC 90 lLOC 48 Comment 20 Lines 188
Function Points FP(LOC) 2.5 FP(eLOC) 1.7 FP(lLOC) 0.9
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 17
Total Function LOC.....: 99 Total Function Pts LOC : 2.5
Total Function eLOC....: 59 Total Function Pts eLOC: 1.7
Total Function lLOC....: 48 Total Function Pts lLOC: 0.9
Total Function Params .: 5 Total Function Return .: 17
Total Cyclo Complexity : 21 Total Function Complex.: 43
------ ----- ----- ------ ------ -----
Max Function LOC ......: 17 Average Function LOC ..: 5.82
Max Function eLOC .....: 11 Average Function eLOC .: 3.47
Max Function lLOC .....: 8 Average Function lLOC .: 2.82
________________________________________________________________________
End of File: player_solution.cpp
Notice #124: The test string, "Test Copyright" was not found in the file
File: player_solution.cpp
File: seahunt.cpp
________________________________________________________________________
------------------------ Function Begin Line: 11 -----------------------
Function: main
Parameters: (void)
Notice #51: Line 11, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 15 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: main
LOC 6 eLOC 4 lLOC 4 Comment 0 Lines 6
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 16 ------------------------
Notice #20: File comment line percentage, 7.7% is less than 10.0%
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 12 eLOC 10 lLOC 4 Comment 1 Lines 18
Function Points FP(LOC) 0.2 FP(eLOC) 0.2 FP(lLOC) 0.1
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 1
Total Function LOC.....: 6 Total Function Pts LOC : 0.2
Total Function eLOC....: 4 Total Function Pts eLOC: 0.2
Total Function lLOC....: 4 Total Function Pts lLOC: 0.1
Total Function Params .: 0 Total Function Return .: 1
Total Cyclo Complexity : 1 Total Function Complex.: 2
------ ----- ----- ------ ------ -----
Max Function LOC ......: 6 Average Function LOC ..: 6.00
Max Function eLOC .....: 4 Average Function eLOC .: 4.00
Max Function lLOC .....: 4 Average Function lLOC .: 4.00
________________________________________________________________________
End of File: seahunt.cpp
Notice #124: The test string, "Test Copyright" was not found in the file
File: seahunt.cpp
File: sub.cpp
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 12 -----------------------
Function: Seahunt::Sub::Create
Parameters: (void)
Notice #51: Line 12, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 14, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #50: Line 15, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #119: Line: 21 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Sub::Create
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 11
Function Points FP(LOC) 0.2 FP(eLOC) 0.2 FP(lLOC) 0.2
------------------------- Function End Line: 22 ------------------------
------------------------ Function Begin Line: 26 -----------------------
Function: Seahunt::Sub::Create
Parameters: (std::string name, int a, int d)
Notice #51: Line 26, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 28 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Sub::Create
LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 29 ------------------------
------------------------ Function Begin Line: 33 -----------------------
Function: Seahunt::Sub::Sub
Parameters: (std::string name, int a, int d)
Notice #51: Line 33, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Function: Seahunt::Sub::Sub
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.0
------------------------- Function End Line: 37 ------------------------
------------------------ Function Begin Line: 40 -----------------------
Function: Seahunt::Sub::~Sub
Parameters: ()
Notice #51: Line 40, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Function: Seahunt::Sub::~Sub
LOC 5 eLOC 3 lLOC 1 Comment 0 Lines 5
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.0
------------------------- Function End Line: 44 ------------------------
------------------------ Function Begin Line: 48 -----------------------
Function: Seahunt::Sub::Show
Parameters: (void)
Notice #51: Line 48, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Function: Seahunt::Sub::Show
LOC 5 eLOC 3 lLOC 3 Comment 0 Lines 5
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 52 ------------------------
------------------------ Function Begin Line: 56 -----------------------
Function: Seahunt::Sub::Hit
Parameters: (void)
Notice #51: Line 56, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 65 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Sub::Hit
LOC 11 eLOC 5 lLOC 3 Comment 0 Lines 11
Function Points FP(LOC) 0.2 FP(eLOC) 0.1 FP(lLOC) 0.1
------------------------- Function End Line: 66 ------------------------
Namespace End: Seahunt
------------------------ Function Begin Line: 73 -----------------------
Function: main
Parameters: (void)
Notice #51: Line 73, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 86 Return is not a function,
no parenthesis should be used.
Notice #17: Function comments, 0.0% are less than 10.0%.
Function: main
LOC 11 eLOC 9 lLOC 9 Comment 0 Lines 15
Function Points FP(LOC) 0.2 FP(eLOC) 0.2 FP(lLOC) 0.2
------------------------- Function End Line: 87 ------------------------
Notice #20: File comment line percentage, 4.0% is less than 10.0%
NOTICE #45: New and delete counts do not match for this file.
This could indicate the potential for a memory leak.
------------------------------------------------------------------------
~~ Total File Summary ~~
LOC 72 eLOC 52 lLOC 28 Comment 3 Lines 91
Function Points FP(LOC) 1.4 FP(eLOC) 1.0 FP(lLOC) 0.5
------------------------------------------------------------------------
~~ File Functional Summary ~~
File Function Count....: 7
Total Function LOC.....: 52 Total Function Pts LOC : 1.4
Total Function eLOC....: 34 Total Function Pts eLOC: 1.0
Total Function lLOC....: 28 Total Function Pts lLOC: 0.5
Total Function Params .: 6 Total Function Return .: 7
Total Cyclo Complexity : 9 Total Function Complex.: 22
------ ----- ----- ------ ------ -----
Max Function LOC ......: 11 Average Function LOC ..: 7.43
Max Function eLOC .....: 9 Average Function eLOC .: 4.86
Max Function lLOC .....: 9 Average Function lLOC .: 4.00
________________________________________________________________________
End of File: sub.cpp
Notice #124: The test string, "Test Copyright" was not found in the file
File: sub.cpp
File: target.cpp
________________________________________________________________________
Namespace Begin: Seahunt
------------------------ Function Begin Line: 17 -----------------------
Function: Seahunt::Target::Target
Parameters: (std::string n, int a, int d)
Notice #51: Line 17, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #50: Line 20, A variable has been identified which is
assigned to a literal number. Symbolic constants should
be used to enhance maintainability.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Target::Target
LOC 11 eLOC 9 lLOC 7 Comment 0 Lines 11
Function Points FP(LOC) 0.2 FP(eLOC) 0.2 FP(lLOC) 0.1
------------------------- Function End Line: 27 ------------------------
------------------------ Function Begin Line: 30 -----------------------
Function: Seahunt::Target::~Target
Parameters: ()
Notice #51: Line 30, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #17: Function comments, 0.0% are less than 10.0%.
Notice #46: Function blank line percent, 0.0% is less than 10.0%.
Function: Seahunt::Target::~Target
LOC 6 eLOC 4 lLOC 2 Comment 0 Lines 6
Function Points FP(LOC) 0.1 FP(eLOC) 0.1 FP(lLOC) 0.0
------------------------- Function End Line: 35 ------------------------
------------------------ Function Begin Line: 39 -----------------------
Function: Seahunt::Target::Get_status
Parameters: (void)
Notice #51: Line 39, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 40 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Target::Get_status
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 41 ------------------------
------------------------ Function Begin Line: 45 -----------------------
Function: Seahunt::Target::Get_depth_limit
Parameters: (void)
Notice #51: Line 45, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 46 Return is not a function,
no parenthesis should be used.
Function: Seahunt::Target::Get_depth_limit
LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3
Function Points FP(LOC) 0.1 FP(eLOC) 0.0 FP(lLOC) 0.0
------------------------- Function End Line: 47 ------------------------
------------------------ Function Begin Line: 51 -----------------------
Function: Seahunt::Target::Get_name
Parameters: (void)
Notice #51: Line 51, A function has been identified which does not
have a preceding comment. Comments that detail the purpose,
algorithms, and parameter/return definitions are suggested.
Notice #119: Line: 52 Return is not a function,