epam / gpac
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
vcxproj
mk
vtt
txt
dsp
xslt
rss
filters
properties
project
plist
classpath
cfg
srt
spec
nsi
gitattributes
inl
prefs
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.

main557226 LOC (97%) 1,479 files
test52 LOC (<1%) 2 files
generated1132 LOC (<1%) 12 files
build and deployment1092 LOC (<1%) 55 files
other10207 LOC (1%) 119 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
vcxproj
vtt
srt
filters
nsi
xslt
inl
rss
spec
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1479 files match defined criteria (557,226 LOC, 100.0% vs. main code):
    • 424 *.c files (353,815 LOC)
    • 725 *.h files (102,946 LOC)
    • 72 *.cpp files (35,538 LOC)
    • 111 *.vcxproj files (32,569 LOC)
    • 39 *.js files (14,672 LOC)
    • 37 *.vtt files (6,987 LOC)
    • 19 *.java files (2,630 LOC)
    • 3 *.srt files (1,834 LOC)
    • 4 *.filters files (1,587 LOC)
    • 5 *.html files (941 LOC)
    • 1 *.nsi files (800 LOC)
    • 17 *.xml files (577 LOC)
    • 6 *.xslt files (567 LOC)
    • 1 *.asm files (522 LOC)
    • 1 *.r files (427 LOC)
    • 3 *.m files (310 LOC)
    • 1 *.inl files (132 LOC)
    • 5 *.rss files (111 LOC)
    • 1 *.css files (110 LOC)
    • 1 *.spec files (86 LOC)
    • 3 *.cfg files (65 LOC)
  • " *.c" is biggest, containing 63.5% of LOC.
  • " *.cfg" is smallest, containing 0.01% of LOC.


*.c353815 LOC (63%) 424 files
*.h102946 LOC (18%) 725 files
*.cpp35538 LOC (6%) 72 files
*.vcxproj32569 LOC (5%) 111 files
*.js14672 LOC (2%) 39 files
*.vtt6987 LOC (1%) 37 files
*.java2630 LOC (<1%) 19 files
*.srt1834 LOC (<1%) 3 files
*.filters1587 LOC (<1%) 4 files
*.html941 LOC (<1%) 5 files
*.nsi800 LOC (<1%) 1 file
*.xml577 LOC (<1%) 17 files
*.xslt567 LOC (<1%) 6 files
*.asm522 LOC (<1%) 1 file
*.r427 LOC (<1%) 1 file
*.m310 LOC (<1%) 3 files
*.inl132 LOC (<1%) 1 file
*.rss111 LOC (<1%) 5 files
*.css110 LOC (<1%) 1 file
*.spec86 LOC (<1%) 1 file
*.cfg65 LOC (<1%) 3 files
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[.].*".
    • files with paths like ".*_tests[.].*".
  • 2 files match defined criteria (52 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh52 LOC (100%) 2 files
Generated Code
Automatically generated files, not manually changed after generation.
dsp
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]dsp" AND any line of content like ".*[#] Microsoft Developer Studio Generated Build File.*".
  • 12 files match defined criteria (1,132 LOC, 0.2% vs. main code). All matches are in *.dsp files.


*.dsp1132 LOC (100%) 12 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*/build[.]xml".
  • 55 files match defined criteria (1,092 LOC, 0.2% vs. main code):
    • 41 *.mk files (608 LOC)
    • 5 *.bat files (172 LOC)
    • 5 *.sh files (165 LOC)
    • 4 *.xml files (147 LOC)
  • " *.mk" is biggest, containing 55.68% of LOC.
  • " *.xml" is smallest, containing 13.46% of LOC.


*.mk608 LOC (55%) 41 files
*.bat172 LOC (15%) 5 files
*.sh165 LOC (15%) 5 files
*.xml147 LOC (13%) 4 files
Other Code
txt
dsp
plist
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]plist".
    • files with paths like ".*[.]dsp".
    • files with paths like ".*[.]properties".
  • 119 files match defined criteria (10,207 LOC, 1.8% vs. main code):
    • 24 *.txt files (5,601 LOC)
    • 74 *.svg files (2,776 LOC)
    • 12 *.dsp files (1,132 LOC)
    • 3 *.plist files (651 LOC)
    • 4 *.properties files (34 LOC)
    • 1 *.md files (12 LOC)
    • 1 *.json files (1 LOC)
  • " *.txt" is biggest, containing 54.87% of LOC.
  • " *.json" is smallest, containing 0.01% of LOC.


*.txt5601 LOC (54%) 24 files
*.svg2776 LOC (27%) 74 files
*.dsp1132 LOC (11%) 12 files
*.plist651 LOC (6%) 3 files
*.properties34 LOC (<1%) 4 files
*.md12 LOC (<1%) 1 file
*.json1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 15:02