apache / openoffice-org
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
po
txt
snip
xsl
diff
eps
gsp
in
rss
mk
htaccess
xsd
properties
patch
vim
sed
reg
el
cfg
asc
cvsignore
project
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.

main2157339 LOC (81%) 9,395 files
test27042 LOC (1%) 92 files
generated142767 LOC (5%) 408 files
build and deployment2944 LOC (<1%) 48 files
other310846 LOC (11%) 2,141 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
po
xsl
xsd
rss
gsp
in
sed
cfg
asc
reg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 9395 files match defined criteria (2,157,339 LOC, 100.0% vs. main code):
    • 7,475 *.html files (1,721,514 LOC)
    • 305 *.po files (198,301 LOC)
    • 259 *.js files (69,620 LOC)
    • 181 *.xsl files (60,152 LOC)
    • 507 *.xml files (44,496 LOC)
    • 216 *.css files (26,985 LOC)
    • 338 *.htm files (22,414 LOC)
    • 31 *.java files (3,435 LOC)
    • 18 *.pl files (2,572 LOC)
    • 10 *.py files (1,893 LOC)
    • 3 *.xsd files (1,516 LOC)
    • 2 *.mm files (1,003 LOC)
    • 4 *.rss files (994 LOC)
    • 16 *.gsp files (884 LOC)
    • 4 *.cxx files (490 LOC)
    • 9 *.in files (403 LOC)
    • 2 *.sed files (140 LOC)
    • 1 *.rdf files (133 LOC)
    • 2 *.awk files (120 LOC)
    • 3 *.yaml files (107 LOC)
    • 4 *.inc files (92 LOC)
    • 1 *.perl files (28 LOC)
    • 1 *.cfg files (24 LOC)
    • 1 *.asc files (19 LOC)
    • 2 *.reg files (4 LOC)
  • " *.html" is biggest, containing 79.8% of LOC.
  • " *.reg" is smallest, containing 0% of LOC.


*.html1721514 LOC (79%) 7,475 files
*.po198301 LOC (9%) 305 files
*.js69620 LOC (3%) 259 files
*.xsl60152 LOC (2%) 181 files
*.xml44496 LOC (2%) 507 files
*.css26985 LOC (1%) 216 files
*.htm22414 LOC (1%) 338 files
*.java3435 LOC (<1%) 31 files
*.pl2572 LOC (<1%) 18 files
*.py1893 LOC (<1%) 10 files
*.xsd1516 LOC (<1%) 3 files
*.mm1003 LOC (<1%) 2 files
*.rss994 LOC (<1%) 4 files
*.gsp884 LOC (<1%) 16 files
*.cxx490 LOC (<1%) 4 files
*.in403 LOC (<1%) 9 files
*.sed140 LOC (<1%) 2 files
*.rdf133 LOC (<1%) 1 file
*.awk120 LOC (<1%) 2 files
*.yaml107 LOC (<1%) 3 files
*.inc92 LOC (<1%) 4 files
*.perl28 LOC (<1%) 1 file
*.cfg24 LOC (<1%) 1 file
*.asc19 LOC (<1%) 1 file
*.reg4 LOC (<1%) 2 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 ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 92 files match defined criteria (27,042 LOC, 1.3% vs. main code):
    • 73 *.html files (21,197 LOC)
    • 11 *.js files (4,150 LOC)
    • 7 *.css files (1,694 LOC)
    • 1 *.php files (1 LOC)
  • " *.html" is biggest, containing 78.39% of LOC.
  • " *.php" is smallest, containing 0% of LOC.


*.html21197 LOC (78%) 73 files
*.js4150 LOC (15%) 11 files
*.css1694 LOC (6%) 7 files
*.php1 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
eps
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
    • files with paths like ".*[.](ps|eps|pfa)".
  • 408 files match defined criteria (142,767 LOC, 6.6% vs. main code):
    • 36 *.eps files (77,880 LOC)
    • 371 *.html files (64,724 LOC)
    • 1 *.xhtml files (163 LOC)
  • " *.eps" is biggest, containing 54.55% of LOC.
  • " *.xhtml" is smallest, containing 0.11% of LOC.


*.eps77880 LOC (54%) 36 files
*.html64724 LOC (45%) 371 files
*.xhtml163 LOC (<1%) 1 file
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 ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]cvsignore".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/build[.]xml".
  • 48 files match defined criteria (2,944 LOC, 0.1% vs. main code):
    • 38 *.sh files (2,589 LOC)
    • 4 *.mk files (201 LOC)
    • 5 *.bat files (82 LOC)
    • 1 *.xml files (72 LOC)
  • " *.sh" is biggest, containing 87.94% of LOC.
  • " *.xml" is smallest, containing 2.45% of LOC.


*.sh2589 LOC (87%) 38 files
*.mk201 LOC (6%) 4 files
*.bat82 LOC (2%) 5 files
*.xml72 LOC (2%) 1 file
Other Code
txt
snip
diff
po
xsl
vim
patch
properties
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]cvsignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]vim".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[Mm]an/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]diff".
    • files with paths like ".*/[.]htaccess".
    • files with paths like ".*[.]ini".
  • 2141 files match defined criteria (310,846 LOC, 14.4% vs. main code):
    • 355 *.txt files (134,716 LOC)
    • 533 *.html files (85,520 LOC)
    • 59 *.svg files (34,613 LOC)
    • 770 *.md files (23,158 LOC)
    • 208 *.snip files (20,470 LOC)
    • 8 *.js files (3,271 LOC)
    • 118 *.diff files (2,995 LOC)
    • 1 *.po files (1,247 LOC)
    • 18 *.htm files (1,240 LOC)
    • 43 *.xml files (1,036 LOC)
    • 5 *.xsl files (754 LOC)
    • 2 *.vim files (462 LOC)
    • 7 *.py files (397 LOC)
    • 4 *.pm files (375 LOC)
    • 4 *.css files (337 LOC)
    • 2 *.patch files (163 LOC)
    • 2 *.properties files (44 LOC)
    • 1 *.pl files (43 LOC)
    • 1 *.ini files (5 LOC)
  • " *.txt" is biggest, containing 43.34% of LOC.
  • " *.ini" is smallest, containing 0% of LOC.


*.txt134716 LOC (43%) 355 files
*.html85520 LOC (27%) 533 files
*.svg34613 LOC (11%) 59 files
*.md23158 LOC (7%) 770 files
*.snip20470 LOC (6%) 208 files
*.js3271 LOC (1%) 8 files
*.diff2995 LOC (<1%) 118 files
*.po1247 LOC (<1%) 1 file
*.htm1240 LOC (<1%) 18 files
*.xml1036 LOC (<1%) 43 files
*.xsl754 LOC (<1%) 5 files
*.vim462 LOC (<1%) 2 files
*.py397 LOC (<1%) 7 files
*.pm375 LOC (<1%) 4 files
*.css337 LOC (<1%) 4 files
*.patch163 LOC (<1%) 2 files
*.properties44 LOC (<1%) 2 files
*.pl43 LOC (<1%) 1 file
*.ini5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:23