2 |
--------------------------------------------------------------------------------
/plugins/search/common/src/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
--------------------------------------------------------------------------------
/plugins/search/service/search-java/src/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
--------------------------------------------------------------------------------
/webgui-new/.env:
--------------------------------------------------------------------------------
1 | PUBLIC_URL=
2 | BACKEND_URL=http://localhost:8080
3 | DEVSERVER_PORT=3000
--------------------------------------------------------------------------------
/doc/logo/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/doc/logo/logo.png
--------------------------------------------------------------------------------
/doc/images/docker.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/doc/images/docker.jpg
--------------------------------------------------------------------------------
/webgui/images/git.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/git.png
--------------------------------------------------------------------------------
/webgui/images/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/home.png
--------------------------------------------------------------------------------
/webgui/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/logo.png
--------------------------------------------------------------------------------
/lib/java/log4j-1.2.17.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/lib/java/log4j-1.2.17.jar
--------------------------------------------------------------------------------
/webgui/images/earhart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/earhart.png
--------------------------------------------------------------------------------
/webgui/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/favicon.ico
--------------------------------------------------------------------------------
/webgui/images/infotree.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/infotree.png
--------------------------------------------------------------------------------
/webgui/images/loading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/loading.gif
--------------------------------------------------------------------------------
/lib/java/httpcore-4.4.10.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/lib/java/httpcore-4.4.10.jar
--------------------------------------------------------------------------------
/webgui-new/src/themes/globals.scss:
--------------------------------------------------------------------------------
1 | * {
2 | box-sizing: border-box;
3 | padding: 0;
4 | margin: 0;
5 | }
6 |
--------------------------------------------------------------------------------
/webgui/fonts/codecompass.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/fonts/codecompass.eot
--------------------------------------------------------------------------------
/webgui/fonts/codecompass.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/fonts/codecompass.ttf
--------------------------------------------------------------------------------
/webgui/images/codebites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/codebites.png
--------------------------------------------------------------------------------
/webgui/images/textmodule.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/textmodule.png
--------------------------------------------------------------------------------
/lib/java/httpclient-4.5.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/lib/java/httpclient-4.5.6.jar
--------------------------------------------------------------------------------
/lib/java/libthrift-0.16.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/lib/java/libthrift-0.16.0.jar
--------------------------------------------------------------------------------
/lib/java/slf4j-api-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/lib/java/slf4j-api-1.7.25.jar
--------------------------------------------------------------------------------
/plugins/dummy/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory(parser)
2 | #add_subdirectory(test)
3 | add_subdirectory(service)
4 |
--------------------------------------------------------------------------------
/webgui-new/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/favicon.ico
--------------------------------------------------------------------------------
/webgui/fonts/codecompass.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/fonts/codecompass.woff
--------------------------------------------------------------------------------
/webgui/fonts/codecompass.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/fonts/codecompass.woff2
--------------------------------------------------------------------------------
/webgui/images/bugstep_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/bugstep_icon.png
--------------------------------------------------------------------------------
/webgui/images/filemanager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/filemanager.png
--------------------------------------------------------------------------------
/.github/scripts/ubuntu-22.04/setup_sqlite3.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Install SQLite3
4 | sudo apt-get install libsqlite3-dev
--------------------------------------------------------------------------------
/lib/java/slf4j-log4j12-1.7.25.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/lib/java/slf4j-log4j12-1.7.25.jar
--------------------------------------------------------------------------------
/webgui-new/public/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/logo.png
--------------------------------------------------------------------------------
/plugins/search/indexer/indexer-java/src/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Main-Class: cc.search.indexer.Indexer
3 |
--------------------------------------------------------------------------------
/webgui/images/infotree_functions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui/images/infotree_functions.png
--------------------------------------------------------------------------------
/lib/java/javax.annotation-api-1.3.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/lib/java/javax.annotation-api-1.3.2.jar
--------------------------------------------------------------------------------
/plugins/metrics/webgui/images/metrics.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/metrics/webgui/images/metrics.png
--------------------------------------------------------------------------------
/plugins/search/webgui/images/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/webgui/images/search.png
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_codebites.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_codebites.png
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_diagrams.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_diagrams.png
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_info_tree.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_info_tree.png
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_metrics.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_metrics.png
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_overview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_overview.png
--------------------------------------------------------------------------------
/.github/scripts/ubuntu-22.04/setup_postgresql.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Install PostgreSQL
4 | sudo apt-get install postgresql-server-dev-14
--------------------------------------------------------------------------------
/plugins/search/lib/java/simplemagic-1.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/simplemagic-1.6.jar
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_revcontrol.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_revcontrol.png
--------------------------------------------------------------------------------
/plugins/metrics/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory(model)
2 | add_subdirectory(parser)
3 | add_subdirectory(service)
4 |
5 | install_webplugin(webgui)
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-core-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-core-4.9.0.jar
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-misc-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-misc-4.9.0.jar
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_search_results.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_search_results.png
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-memory-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-memory-4.9.0.jar
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-queries-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-queries-4.9.0.jar
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-suggest-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-suggest-4.9.0.jar
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_header_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_header_settings.png
--------------------------------------------------------------------------------
/plugins/git/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | find_package(LibGit2 REQUIRED)
2 |
3 | add_subdirectory(parser)
4 | add_subdirectory(service)
5 |
6 | install_webplugin(webgui)
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_file_manager_tree.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_file_manager_tree.png
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-highlighter-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-highlighter-4.9.0.jar
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-queryparser-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-queryparser-4.9.0.jar
--------------------------------------------------------------------------------
/webgui-new/public/images/cc_file_manager_explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/webgui-new/public/images/cc_file_manager_explorer.png
--------------------------------------------------------------------------------
/plugins/cpp/webgui/images/cpp_collaboration_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/cpp/webgui/images/cpp_collaboration_diagram.png
--------------------------------------------------------------------------------
/plugins/cpp/webgui/images/cpp_detailed_class_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/cpp/webgui/images/cpp_detailed_class_diagram.png
--------------------------------------------------------------------------------
/plugins/cpp/webgui/images/cpp_function_call_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/cpp/webgui/images/cpp_function_call_diagram.png
--------------------------------------------------------------------------------
/plugins/dummy/service/dummy.thrift:
--------------------------------------------------------------------------------
1 | namespace cpp cc.service.dummy
2 | namespace java cc.service.dummy
3 |
4 | service DummyService
5 | {
6 | string getDummyString()
7 | }
--------------------------------------------------------------------------------
/plugins/search/lib/java/lucene-analyzers-common-4.9.0.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Ericsson/CodeCompass/HEAD/plugins/search/lib/java/lucene-analyzers-common-4.9.0.jar
--------------------------------------------------------------------------------
/logger/src/ldlogger-hooks.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_LOGGER_HOOKS_H
2 | #define CC_LOGGER_HOOKS_H
3 |
4 | int logExec(int argc_, const char** argv_);
5 |
6 | #endif // CC_LOGGER_HOOKS_H
7 |
--------------------------------------------------------------------------------
/plugins/cpp/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory(model)
2 | add_subdirectory(parser)
3 | add_subdirectory(service)
4 | add_subdirectory(test)
5 |
6 | install_webplugin(webgui)
7 |
--------------------------------------------------------------------------------
/.idea/codeStyles/codeStyleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/service/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory(authentication)
2 | add_subdirectory(language)
3 | add_subdirectory(lsp)
4 | add_subdirectory(plugin)
5 | add_subdirectory(project)
6 | add_subdirectory(workspace)
7 |
--------------------------------------------------------------------------------
/webgui-new/src/enums/tab-enum.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable no-unused-vars */
2 | export enum TabName {
3 | WELCOME,
4 | CODE,
5 | METRICS,
6 | DIAGRAMS,
7 | GIT_DIFF,
8 | USER_GUIDE,
9 | CREDITS,
10 | }
11 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/module_b/b2.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_MODULE_METRICS_TEST_B2
2 | #define CC_CPP_MODULE_METRICS_TEST_B2
3 |
4 | namespace CC_CPP_MODULE_METRICS_TEST
5 | {
6 | class B2 {};
7 | }
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_a/a3.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_A3
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_A3
3 |
4 | namespace CC_CPP_RC_MODULE_METRICS_TEST
5 | {
6 | class A3 {};
7 | }
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_b/b1.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_B1
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_B1
3 |
4 | namespace CC_CPP_RC_MODULE_METRICS_TEST
5 | {
6 | class B1 {};
7 | }
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_c/c3.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_C3
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_C3
3 |
4 | namespace CC_CPP_RC_MODULE_METRICS_TEST
5 | {
6 | class C3 {};
7 | }
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_c/c4.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_C4
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_C4
3 |
4 | namespace CC_CPP_RC_MODULE_METRICS_TEST
5 | {
6 | class C4 {};
7 | }
8 |
9 | #endif
10 |
--------------------------------------------------------------------------------
/scripts/remover.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES=$(ls *.js)
4 |
5 | for FILE in $FILES
6 | do
7 | if [ -f "$FILE" ]
8 | then
9 | sed -i -e "/if (typeof Int64 === 'undefined' && typeof require === 'function') {/,+2 d" "$FILE"
10 | fi
11 | done
12 |
--------------------------------------------------------------------------------
/plugins/metrics/model/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(ODB_SOURCES
2 | include/model/metrics.h)
3 |
4 | generate_odb_files("${ODB_SOURCES}")
5 |
6 | add_odb_library(metricsmodel ${ODB_CXX_SOURCES})
7 | add_dependencies(metricsmodel model)
8 |
9 | install_sql()
10 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/service/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 2.6)
2 | project(CppMetricsTestProject)
3 |
4 | add_library(CppMetricsTestProject STATIC
5 | functionmccabe.cpp
6 | typemccabe.cpp
7 | lackofcohesion.cpp
8 | bumpyroad.cpp)
9 |
--------------------------------------------------------------------------------
/plugins/search/common/src/cc/search/common/config/InvalidValueException.java:
--------------------------------------------------------------------------------
1 | package cc.search.common.config;
2 |
3 | public class InvalidValueException extends Exception {
4 | public InvalidValueException(String message_) {
5 | super(message_);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/plugins/search/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_subdirectory(common)
2 | add_subdirectory(indexer)
3 | add_subdirectory(parser)
4 | add_subdirectory(service)
5 |
6 | install_webplugin(webgui)
7 | install(DIRECTORY
8 | lib/java/
9 | DESTINATION "${INSTALL_JAVA_LIB_DIR}")
10 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/module_a/a1.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_MODULE_METRICS_TEST_A1
2 | #define CC_CPP_MODULE_METRICS_TEST_A1
3 |
4 | #include "./a2.h"
5 |
6 | namespace CC_CPP_MODULE_METRICS_TEST
7 | {
8 | class A1 {
9 | A2 a2;
10 | };
11 | }
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/module_b/b1.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_MODULE_METRICS_TEST_B1
2 | #define CC_CPP_MODULE_METRICS_TEST_B1
3 |
4 | #include "./b2.h"
5 |
6 | namespace CC_CPP_MODULE_METRICS_TEST
7 | {
8 | class B1 {
9 | B2 b2;
10 | };
11 | }
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/plugins/dummy/test/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_executable(dummytest
2 | src/dummyparsertest.cpp
3 | src/dummyservicetest.cpp)
4 |
5 | target_link_libraries(dummytest ${GTEST_BOTH_LIBRARIES} pthread)
6 |
7 | # Add a test to the project to be run by ctest
8 | add_test(allDummyTest dummytest)
--------------------------------------------------------------------------------
/service/lsp/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(include)
2 |
3 | add_library(lspservice STATIC
4 | src/lspservice.cpp
5 | src/lsp_types.cpp)
6 |
7 | target_compile_options(lspservice PUBLIC -fPIC)
8 |
9 | target_link_libraries(lspservice
10 | ${Boost_LIBRARIES})
11 |
--------------------------------------------------------------------------------
/plugins/cpp/test/sources/parser/namespace.cpp:
--------------------------------------------------------------------------------
1 | namespace MyNamespace1
2 | {
3 | namespace MyNamespace2
4 | {
5 | void innerFunction () {}
6 | }
7 | }
8 |
9 | void namespaceUserFunction()
10 | {
11 | using namespace MyNamespace1;
12 | MyNamespace2::innerFunction();
13 | }
14 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/module_a/a2.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_MODULE_METRICS_TEST_A2
2 | #define CC_CPP_MODULE_METRICS_TEST_A2
3 |
4 | #include "../module_b/b1.h"
5 |
6 | namespace CC_CPP_MODULE_METRICS_TEST
7 | {
8 | class A2 {
9 | B1 b1;
10 | };
11 | }
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/plugins/search/common/src/cc/search/common/config/UnknownArgumentException.java:
--------------------------------------------------------------------------------
1 | package cc.search.common.config;
2 |
3 | public class UnknownArgumentException extends Exception {
4 | public UnknownArgumentException(String arg_) {
5 | super("Unknown argument: " + arg_);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_a/a2.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_A2
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_A2
3 |
4 | #include "./a3.h"
5 |
6 | namespace CC_CPP_RC_MODULE_METRICS_TEST
7 | {
8 | class A2 {
9 | A3 a3;
10 | };
11 | }
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_c/c2.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_C2
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_C2
3 |
4 | #include "./c1.h"
5 |
6 | namespace CC_CPP_RC_MODULE_METRICS_TEST
7 | {
8 | class C2 {
9 | C1 c1;
10 | };
11 | }
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/webgui/scripts/codecompass/view/text.js:
--------------------------------------------------------------------------------
1 | require([
2 | 'codecompass/viewHandler',
3 | 'codecompass/view/component/Text'],
4 | function (viewHandler, Text) {
5 |
6 | viewHandler.registerModule(new Text({ id : 'text' }), {
7 | type : viewHandler.moduleType.Center
8 | });
9 | });
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## IDEs and editors
2 | # NetBeans
3 | nbproject/
4 | # JetBrains CLion
5 | .idea/*
6 | !.idea/codeStyles/
7 | # Visual Studio Code
8 | .vscode/
9 | # Vim
10 | *.swp
11 | # clangd cache directory
12 | .cache/
13 |
14 |
15 | ## Build folders
16 | build/
17 | build_*/
18 | install/
19 | install_*/
20 |
21 |
--------------------------------------------------------------------------------
/.devcontainer/devcontainer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "CodeCompass-devcontainer",
3 | "image": "modelcpp/codecompass:dev",
4 | "workspaceFolder": "/CodeCompass/CodeCompass",
5 | "workspaceMount": "src=${localWorkspaceFolder}/..,dst=/CodeCompass,type=bind,consistency=cached",
6 | "appPort": [
7 | "8001:8080"
8 | ]
9 | }
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/module_c/c1.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_MODULE_METRICS_TEST_C1
2 | #define CC_CPP_MODULE_METRICS_TEST_C1
3 |
4 | #include "../module_b/b1.h"
5 | #include "./c2.h"
6 |
7 | namespace CC_CPP_MODULE_METRICS_TEST
8 | {
9 | class C1 {
10 | B1 b1;
11 | C2 c2;
12 | };
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_a/a1.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_A1
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_A1
3 |
4 | #include "./a2.h"
5 | #include "./a3.h"
6 |
7 | namespace CC_CPP_RC_MODULE_METRICS_TEST
8 | {
9 | class A1 {
10 | A2 a2;
11 | A3 a3;
12 | };
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/docker/web/entrypoint.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [ "$(id -u)" == '0' ]; then
4 | # Change the owner of the workspace directory
5 | mkdir -p /workspace
6 | chown codecompass:codecompass /workspace
7 |
8 | # Execute this script again with codecompass user.
9 | exec gosu codecompass "$0" "$@"
10 | fi
11 |
12 | exec "$@"
13 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/module_c/c2.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_MODULE_METRICS_TEST_C2
2 | #define CC_CPP_MODULE_METRICS_TEST_C2
3 |
4 | #include "../module_a/a2.h"
5 | #include "../module_b/b1.h"
6 |
7 | namespace CC_CPP_MODULE_METRICS_TEST
8 | {
9 | class C2 {
10 | A2 a2;
11 | B1 b1;
12 | };
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/module_d/d1.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_MODULE_METRICS_TEST_D1
2 | #define CC_CPP_MODULE_METRICS_TEST_D1
3 |
4 | #include "../module_c/c1.h"
5 | #include "../module_c/c2.h"
6 |
7 | namespace CC_CPP_MODULE_METRICS_TEST
8 | {
9 | class D1 {
10 | C1 c1;
11 | C2 c2;
12 | };
13 | }
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/plugins/cpp/test/sources/service/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 2.6)
2 | project(CppTestProject)
3 |
4 | # This is a dummy CMakeList that can be used to generate a build for the
5 | # C++ test input files.
6 |
7 | add_library(CppTestProject STATIC
8 | inheritance.cpp
9 | nestedclass.cpp
10 | simpleclass.cpp)
11 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 2.6)
2 | project(CppMetricsTestProject)
3 |
4 | add_library(CppMetricsTestProject STATIC
5 | functionmccabe.cpp
6 | typemccabe.cpp
7 | lackofcohesion.cpp
8 | bumpyroad.cpp
9 | efferentcoupling.cpp
10 | afferentcoupling.cpp
11 | modulemetrics.cpp)
12 |
--------------------------------------------------------------------------------
/plugins/cpp/test/sources/parser/function.cpp:
--------------------------------------------------------------------------------
1 | void singleFunc()
2 | {
3 |
4 | }
5 |
6 | void funcDecl();
7 |
8 | void multiFunction();
9 | void multiFunction();
10 | void multiFunction() {}
11 |
12 | int callee(char c, bool b)
13 | {
14 | int i = b + c - 42;
15 | return i;
16 | }
17 |
18 | void caller()
19 | {
20 | callee('x', true);
21 | }
22 |
--------------------------------------------------------------------------------
/plugins/cpp/test/sources/parser/variable.cpp:
--------------------------------------------------------------------------------
1 | struct S{};
2 |
3 | void f(int) {}
4 | void g(int&) {}
5 |
6 | void varContainingFunction()
7 | {
8 | int variableDefinition;
9 | extern bool variableDeclaration;
10 | int (*variableFunctionPointer)(char, double);
11 | S variableUserType;
12 |
13 | f(variableDefinition);
14 | g(variableDefinition);
15 | }
16 |
--------------------------------------------------------------------------------
/.github/scripts/ubuntu-22.04/setup_build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Install required packages for CodeCompass build
4 | sudo apt install git cmake make g++ libboost-all-dev \
5 | llvm-15-dev clang-15 libclang-15-dev \
6 | gcc-11-plugin-dev thrift-compiler libthrift-dev \
7 | default-jdk libssl-dev libgraphviz-dev libmagic-dev libgit2-dev exuberant-ctags doxygen \
8 | libldap2-dev libgtest-dev
--------------------------------------------------------------------------------
/plugins/cpp/test/sources/parser/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 2.6)
2 | project(CppTestProject)
3 |
4 | # This is a dummy CMakeList that can be used to generate a build for the
5 | # C++ test input files.
6 |
7 | add_library(CppTestProject STATIC
8 | typedef.cpp
9 | cxxrecord.cpp
10 | enum.cpp
11 | function.cpp
12 | using.cpp
13 | variable.cpp
14 | namespace.cpp)
15 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/test/sources/parser/rc_module_c/c1.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_CPP_RC_MODULE_METRICS_TEST_C1
2 | #define CC_CPP_RC_MODULE_METRICS_TEST_C1
3 |
4 | #include "../rc_module_a/a1.h"
5 | #include "../rc_module_a/a2.h"
6 | #include "../rc_module_a/a3.h"
7 |
8 | namespace CC_CPP_RC_MODULE_METRICS_TEST
9 | {
10 | class C1 {
11 | A1 a1;
12 | A2 a2;
13 | A3 a3;
14 | };
15 | }
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/webgui-new/src/enums/accordion-enum.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable no-unused-vars */
2 | import i18n from 'i18n/i18n';
3 |
4 | export const AccordionLabel = {
5 | FILE_MANAGER: i18n.t('accordionMenu.fileManager'),
6 | SEARCH_RESULTS: i18n.t('accordionMenu.searchResults'),
7 | INFO_TREE: i18n.t('accordionMenu.infoTree'),
8 | REVISION_CONTROL_NAVIGATOR: i18n.t('accordionMenu.revisionControl'),
9 | };
10 |
--------------------------------------------------------------------------------
/.github/scripts/ubuntu-22.04/postcompile_build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # Post compilation configuration for building (environmental variables, library location settings etc..)
4 |
5 | echo "${INSTALL_PATH}/odb/bin" >> $GITHUB_PATH
6 | echo "CMAKE_PREFIX_PATH=${INSTALL_PATH}/odb:$CMAKE_PREFIX_PATH" >> $GITHUB_ENV
7 |
8 | # Clean up dependency sources and intermediate binaries to save space
9 | rm -rf ${DOWNLOAD_PATH}/odb
--------------------------------------------------------------------------------
/plugins/dummy/parser/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | include
3 | ${PROJECT_SOURCE_DIR}/model/include
4 | ${PROJECT_SOURCE_DIR}/util/include
5 | ${PROJECT_SOURCE_DIR}/parser/include)
6 |
7 | add_library(dummyparser SHARED
8 | src/dummyparser.cpp)
9 |
10 | target_compile_options(dummyparser PUBLIC -Wno-unknown-pragmas)
11 |
12 | install(TARGETS dummyparser DESTINATION ${INSTALL_PARSER_DIR})
13 |
--------------------------------------------------------------------------------
/plugins/cpp/test/sources/parser/typedef.cpp:
--------------------------------------------------------------------------------
1 | typedef int Integer;
2 |
3 | Integer globalInteger;
4 |
5 | Integer typedefUserFunction(
6 | Integer funcParamInteger)
7 | {
8 | Integer localInteger;
9 | typedefUserFunction(Integer());
10 | typedef Integer Integer2;
11 |
12 | try
13 | {
14 | throw localInteger;
15 | }
16 | catch (Integer i)
17 | {
18 | }
19 |
20 | return localInteger;
21 | }
22 |
--------------------------------------------------------------------------------
/model/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | set(ODB_SOURCES
2 | include/model/buildaction.h
3 | include/model/buildlog.h
4 | include/model/buildsourcetarget.h
5 | include/model/filecontent.h
6 | include/model/file.h
7 | include/model/fileloc.h
8 | include/model/position.h
9 | include/model/statistics.h)
10 |
11 | generate_odb_files("${ODB_SOURCES}")
12 |
13 | add_odb_library(model ${ODB_CXX_SOURCES})
14 |
15 | install_sql()
16 |
--------------------------------------------------------------------------------
/webgui/scripts/codecompass/view/component/HtmlTree.js:
--------------------------------------------------------------------------------
1 | define([
2 | 'dojo/_base/declare',
3 | 'dijit/Tree'],
4 | function (declare, Tree) {
5 | var HtmlTreeNode = declare(Tree._TreeNode, {
6 | _setLabelAttr : { node : "labelNode", type : "innerHTML" }
7 | });
8 |
9 | return declare(Tree, {
10 | _createTreeNode : function (args) {
11 | return new HtmlTreeNode(args);
12 | }
13 | });
14 | });
15 |
--------------------------------------------------------------------------------
/scripts/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | install(FILES
2 | setldlogenv.sh
3 | PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
4 | GROUP_EXECUTE GROUP_READ
5 | WORLD_EXECUTE WORLD_READ
6 | DESTINATION "share/codecompass")
7 |
8 | install(FILES
9 | CodeCompass_logger
10 | PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
11 | GROUP_EXECUTE GROUP_READ
12 | WORLD_EXECUTE WORLD_READ
13 | DESTINATION ${INSTALL_BIN_DIR})
14 |
--------------------------------------------------------------------------------
/webgui-new/src/i18n/i18n.ts:
--------------------------------------------------------------------------------
1 | import i18n from 'i18next';
2 | import { initReactI18next } from 'react-i18next';
3 |
4 | const resources = {
5 | en: {
6 | translation: require('./locales/en.json'),
7 | },
8 | };
9 |
10 | i18n.use(initReactI18next).init({
11 | resources,
12 | lng: 'en',
13 | fallbackLng: 'en',
14 | interpolation: {
15 | escapeValue: false,
16 | },
17 | });
18 |
19 | export default i18n;
20 |
--------------------------------------------------------------------------------
/webserver/authenticators/plain/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | include
3 | ${PROJECT_SOURCE_DIR}/util/include
4 | ${PROJECT_SOURCE_DIR}/webserver/include)
5 |
6 | add_library(plainauth SHARED
7 | src/plugin.cpp)
8 |
9 | target_compile_options(plainauth PUBLIC -Wno-unknown-pragmas)
10 |
11 | target_link_libraries(plainauth
12 | util)
13 |
14 | install(TARGETS plainauth DESTINATION ${INSTALL_AUTH_DIR})
15 |
--------------------------------------------------------------------------------
/webgui/userguide/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | install(FILES
2 | header.html
3 | footer.html
4 | Doxyfile
5 | DESTINATION ${INSTALL_WEBROOT_DIR}/userguide)
6 |
7 | install(CODE "set(INSTALL_USERGUIDE_DIR \"${INSTALL_WEBROOT_DIR}/userguide\")")
8 | get_property(_userguides GLOBAL PROPERTY USERGUIDES)
9 | install(CODE "set(USERGUIDES \"${_userguides}\")")
10 | install(SCRIPT InstallUserguide.cmake)
11 |
12 | install_webplugin(webgui)
13 |
--------------------------------------------------------------------------------
/plugins/git/parser/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | include
3 | ${PROJECT_SOURCE_DIR}/util/include
4 | ${PROJECT_SOURCE_DIR}/parser/include)
5 |
6 | add_library(gitparser SHARED
7 | src/gitparser.cpp)
8 |
9 | target_compile_options(gitparser PUBLIC -Wno-unknown-pragmas)
10 |
11 | target_link_libraries(gitparser
12 | util
13 | git2
14 | ssl)
15 |
16 | install(TARGETS gitparser DESTINATION ${INSTALL_PARSER_DIR})
17 |
--------------------------------------------------------------------------------
/webgui/scripts/codecompass/view/component/TooltipTreeMixin.js:
--------------------------------------------------------------------------------
1 | define([
2 | 'dojo/_base/declare',
3 | 'dijit/Tooltip'],
4 | function (declare, Tooltip) {
5 | return declare(null, {
6 | _onNodeMouseEnter : function (node, evt) {
7 | Tooltip.show(node.item.name, node.labelNode, ['above']);
8 | },
9 |
10 | _onNodeMouseLeave : function (node, evt) {
11 | Tooltip.hide(node.labelNode);
12 | }
13 | });
14 | });
15 |
--------------------------------------------------------------------------------
/webgui/userguide/webgui/js/userguide.js:
--------------------------------------------------------------------------------
1 | require([
2 | 'dijit/layout/ContentPane',
3 | 'codecompass/viewHandler'],
4 | function (ContentPane, viewHandler) {
5 |
6 | var infoPage = new ContentPane({
7 | id : 'userguide',
8 | href : 'userguide/doc/html/userguide.html',
9 | title : 'User Guide'
10 | });
11 |
12 | viewHandler.registerModule(infoPage, {
13 | type : viewHandler.moduleType.InfoPage
14 | });
15 | });
16 |
--------------------------------------------------------------------------------
/plugins/cpp_metrics/model/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | include_directories(
2 | include
3 | ${cpp_PLUGIN_DIR}/model/include)
4 |
5 | set(ODB_SOURCES
6 | include/model/cppastnodemetrics.h
7 | include/model/cppcohesionmetrics.h
8 | include/model/cppfilemetrics.h)
9 |
10 | generate_odb_files("${ODB_SOURCES}" "cpp")
11 |
12 | add_odb_library(cppmetricsmodel ${ODB_CXX_SOURCES})
13 | target_link_libraries(cppmetricsmodel cppmodel)
14 |
15 | install_sql()
16 |
--------------------------------------------------------------------------------
/service/workspace/workspace.thrift:
--------------------------------------------------------------------------------
1 | namespace cpp cc.service.workspace
2 | namespace java cc.service.workspace
3 |
4 | /**
5 | * Workspace description.
6 | */
7 | struct WorkspaceInfo
8 | {
9 | 1:string id,
10 | 2:string description
11 | }
12 |
13 | /**
14 | * The workspace service.
15 | */
16 | service WorkspaceService
17 | {
18 | /**
19 | * Returns a list of active workspaces
20 | */
21 | list
getWorkspaces()
22 | }
23 |
--------------------------------------------------------------------------------
/plugins/cpp/test/sources/service/simpleclass.cpp:
--------------------------------------------------------------------------------
1 | #include "simpleclass.h"
2 |
3 | namespace cc
4 | {
5 | namespace test
6 | {
7 |
8 | SimpleClass::SimpleClass() : _locPrivX(-1), _locProtX(-1)
9 | {
10 | }
11 |
12 | SimpleClass::~SimpleClass()
13 | {
14 | }
15 |
16 | int SimpleClass::getPrivX() const
17 | {
18 | return _locPrivX;
19 | }
20 |
21 | void SimpleClass::setPrivX(int x_)
22 | {
23 | _locPrivX = x_;
24 | }
25 |
26 | } // test
27 | } // cc
28 |
--------------------------------------------------------------------------------
/webgui/userguide/Doxyfile:
--------------------------------------------------------------------------------
1 | PROJECT_NAME = "CodeCompass"
2 | PROJECT_BRIEF = "Source-code navigator for programmers"
3 | OUTPUT_DIRECTORY = "doc"
4 | INPUT =
5 | FILE_PATTERNS = *.md
6 | RECURSIVE = NO
7 | INPUT_FILTER =
8 | SEARCHENGINE = NO
9 | HTML_HEADER = header.html
10 | HTML_FOOTER = footer.html
11 | DISABLE_INDEX = YES
12 | GENERATE_LATEX = NO
--------------------------------------------------------------------------------
/util/include/util/webserverutil.h:
--------------------------------------------------------------------------------
1 | #ifndef CC_WEBSERVER_UTIL_H
2 | #define CC_WEBSERVER_UTIL_H
3 |
4 | #include
5 | #include