apache / brpc-website
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
nuspec
gitmodules
webmanifest
gitattributes
stylelintignore
editorconfig
eslintignore
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.

main2631 LOC (8%) 102 files
test0 LOC (0%) 0 files
generated9020 LOC (29%) 2 files
build and deployment7 LOC (<1%) 2 files
other19035 LOC (62%) 27 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
webmanifest
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 102 files match defined criteria (2,631 LOC, 100.0% vs. main code):
    • 53 *.html files (955 LOC)
    • 26 *.scss files (817 LOC)
    • 12 *.toml files (538 LOC)
    • 5 *.js files (159 LOC)
    • 3 *.xml files (67 LOC)
    • 1 *.rdf files (41 LOC)
    • 1 *.css files (35 LOC)
    • 1 *.webmanifest files (19 LOC)
  • " *.html" is biggest, containing 36.3% of LOC.
  • " *.webmanifest" is smallest, containing 0.72% of LOC.


*.html955 LOC (36%) 53 files
*.scss817 LOC (31%) 26 files
*.toml538 LOC (20%) 12 files
*.js159 LOC (6%) 5 files
*.xml67 LOC (2%) 3 files
*.rdf41 LOC (1%) 1 file
*.css35 LOC (1%) 1 file
*.webmanifest19 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 2 files match defined criteria (9,020 LOC, 342.8% vs. main code). All matches are in *.json files.


*.json9020 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]nuspec".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/[.]gitmodules".
  • 2 files match defined criteria (7 LOC, 0.3% vs. main code). All matches are in *.sh files.


*.sh7 LOC (100%) 2 files
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[.]eslintignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 27 files match defined criteria (19,035 LOC, 723.5% vs. main code):
    • 7 *.svg files (9,617 LOC)
    • 4 *.json files (9,077 LOC)
    • 16 *.md files (341 LOC)
  • " *.svg" is biggest, containing 50.52% of LOC.
  • " *.md" is smallest, containing 1.79% of LOC.


*.svg9617 LOC (50%) 7 files
*.json9077 LOC (47%) 4 files
*.md341 LOC (1%) 16 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 19:58