A low resource c++ urban terror bot that keeps track of players on specified servers and applies bans keeping the servers hacker clean :)
FS#95 - Risultato analisi del codice
Attached to Project:
2Steps2Hell's -BanBot-
Opened by Simone (Zamy) - Sunday, 24 July 2011, 17:58 GMT+2
Opened by Simone (Zamy) - Sunday, 24 July 2011, 17:58 GMT+2
|
DetailsEcco qua il risultato dell'analisi statica sul codice:
[/home/zamy/Documenti/2s2h/progetto bot/banbot/src/FileLister.h:39]: (information) Include file: "string.h" not found. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/ConfigLoader.h:61]: (warning) Member variable 'Options::serverNumber' is not initialised in the constructor. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:101]: (warning) Member variable 'Analyzer::commandexecuted' is not initialised in the constructor. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.h:209]: (performance) Function parameter 'numero' should be passed by reference. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.h:209]: (performance) Function parameter 'nick' should be passed by reference. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:2560]: (performance) Function parameter 'numero' should be passed by reference. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:2560]: (performance) Function parameter 'nick' should be passed by reference. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/InstructionsBlock.h:345]: (performance) Possible inefficient checking for 'players' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:807]: (performance) Possible inefficient checking for 'risultatoEsatto' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:1249]: (performance) Possible inefficient checking for 'risultatoEsatto' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:2338]: (performance) Possible inefficient checking for 'precise' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:2341]: (performance) Possible inefficient checking for 'approx' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:2598]: (performance) Possible inefficient checking for 'records' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:2636]: (performance) Possible inefficient checking for 'risultato' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Analyzer.cpp:637]: (performance) Prefer prefix ++/-- operators for non-primitive types. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/InstructionsBlock.h:440]: (error) Memory leak: InstructionsBlock::m_list [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/Scheduler.cpp:76]: (style) Found obsolete function 'usleep'. It is recommended that new applications use the 'nanosleep' or 'setitimer' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/connection.cpp:41]: (style) Found obsolete function 'bzero'. It is recommended that new applications use the 'memset' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/connection.cpp:87]: (style) Found obsolete function 'bzero'. It is recommended that new applications use the 'memset' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/connection.cpp:92]: (style) Found obsolete function 'gethostbyname'. It is recommended that new applications use the 'getaddrinfo' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/connection.cpp:96]: (style) Found obsolete function 'gethostbyname'. It is recommended that new applications use the 'getaddrinfo' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/connection.cpp:226]: (style) Found obsolete function 'usleep'. It is recommended that new applications use the 'nanosleep' or 'setitimer' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/connection.cpp:367]: (style) Found obsolete function 'usleep'. It is recommended that new applications use the 'nanosleep' or 'setitimer' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/connection.cpp:381]: (style) Found obsolete function 'usleep'. It is recommended that new applications use the 'nanosleep' or 'setitimer' function [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/db.cpp:863]: (performance) Possible inefficient checking for 'm_data' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/db.cpp:887]: (performance) Possible inefficient checking for 'm_data' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/db.cpp:913]: (performance) Possible inefficient checking for 'm_data' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/db.cpp:1029]: (performance) Possible inefficient checking for 'm_data' emptiness. [/home/zamy/Documenti/2s2h/progetto bot/banbot/src/db.cpp:1078]: (performance) Possible inefficient checking for 'm_data' emptiness. Tutto sommato neanche tanti problemi xD |
This task depends upon