aws / amazon-redshift-odbc-driver
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
txt
po
in
mk
project
cproject
vcxproj
mak
filters
wxs
gitattributes
spec
ini
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main110144 LOC (87%) 463 files
test1031 LOC (<1%) 10 files
generated0 LOC (0%) 0 files
build and deployment1058 LOC (<1%) 18 files
other13017 LOC (10%) 51 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
vcxproj
wxs
spec
filters
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 463 files match defined criteria (110,144 LOC, 100.0% vs. main code):
    • 83 *.c files (42,245 LOC)
    • 303 *.h files (37,569 LOC)
    • 60 *.cpp files (23,356 LOC)
    • 1 *.html files (3,926 LOC)
    • 5 *.in files (1,223 LOC)
    • 1 *.py files (845 LOC)
    • 3 *.cmake files (584 LOC)
    • 1 *.vcxproj files (157 LOC)
    • 2 *.wxs files (129 LOC)
    • 1 *.spec files (45 LOC)
    • 1 *.filters files (33 LOC)
    • 1 *.pl files (22 LOC)
    • 1 *.ps1 files (10 LOC)
  • " *.c" is biggest, containing 38.35% of LOC.
  • " *.ps1" is smallest, containing 0.01% of LOC.


*.c42245 LOC (38%) 83 files
*.h37569 LOC (34%) 303 files
*.cpp23356 LOC (21%) 60 files
*.html3926 LOC (3%) 1 file
*.in1223 LOC (1%) 5 files
*.py845 LOC (<1%) 1 file
*.cmake584 LOC (<1%) 3 files
*.vcxproj157 LOC (<1%) 1 file
*.wxs129 LOC (<1%) 2 files
*.spec45 LOC (<1%) 1 file
*.filters33 LOC (<1%) 1 file
*.pl22 LOC (<1%) 1 file
*.ps110 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
  • 10 files match defined criteria (1,031 LOC, 0.9% vs. main code):
    • 9 *.cpp files (1,030 LOC)
    • 1 *.h files (1 LOC)
  • " *.cpp" is biggest, containing 99.9% of LOC.
  • " *.h" is smallest, containing 0.1% of LOC.


*.cpp1030 LOC (99%) 9 files
*.h1 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mak
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]mak".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
  • 18 files match defined criteria (1,058 LOC, 1.0% vs. main code):
    • 6 *.bat files (502 LOC)
    • 1 *.mak files (262 LOC)
    • 7 *.sh files (211 LOC)
    • 4 *.mk files (83 LOC)
  • " *.bat" is biggest, containing 47.45% of LOC.
  • " *.mk" is smallest, containing 7.84% of LOC.


*.bat502 LOC (47%) 6 files
*.mak262 LOC (24%) 1 file
*.sh211 LOC (19%) 7 files
*.mk83 LOC (7%) 4 files
Other Code
po
txt
vcxproj
filters
mak
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]json".
  • 51 files match defined criteria (13,017 LOC, 11.8% vs. main code):
    • 14 *.po files (10,387 LOC)
    • 20 *.txt files (1,897 LOC)
    • 5 *.md files (321 LOC)
    • 1 *.vcxproj files (167 LOC)
    • 1 *.c files (112 LOC)
    • 4 *.sh files (38 LOC)
    • 1 *.filters files (37 LOC)
    • 1 *.xml files (25 LOC)
    • 2 *.h files (13 LOC)
    • 1 *.mak files (12 LOC)
    • 1 *.ini files (8 LOC)
  • " *.po" is biggest, containing 79.8% of LOC.
  • " *.ini" is smallest, containing 0.06% of LOC.


*.po10387 LOC (79%) 14 files
*.txt1897 LOC (14%) 20 files
*.md321 LOC (2%) 5 files
*.vcxproj167 LOC (1%) 1 file
*.c112 LOC (<1%) 1 file
*.sh38 LOC (<1%) 4 files
*.filters37 LOC (<1%) 1 file
*.xml25 LOC (<1%) 1 file
*.h13 LOC (<1%) 2 files
*.mak12 LOC (<1%) 1 file
*.ini8 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-04 00:40