You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gh-pages/_docs/01-overview/01-introduction.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ understanding of code onto a visual and understandable map.
23
23
24
24
# Different parts of CodeCharta
25
25
26
-
We split CodeCharta into two different parts. The CCSH(CodeCharta Shell) which is the base for extracting metrics and
26
+
We split CodeCharta into two different parts. The CCSH(CodeCharta Shell) which is the base for extracting metrics and
27
27
our [Web Studio](https://maibornwolff.github.io/codecharta/visualization/app/index.html?file=codecharta.cc.json.gz&file=codecharta_analysis.cc.json.gz¤tFilesAreSampleFiles=true&area=rloc&height=sonar_complexity&color=sonar_complexity) which is there to visualize these metrics as a city like map.
28
28
From here you can move around, look at metrics and even 3D print them.
to move around and check out our example maps that are already in place.
40
40
41
+
## Docker
42
+
43
+
Both the Web Studio and the CodeCharta Shell are available as docker containers. For more information, see [Docker Containers]({{site.docs_overview/dockerized}}).
44
+
41
45
## Installation
42
46
43
-
To install our [CodeCharta Shell]({{site.docs_overview}}/analysis), simply install it via npm:
47
+
To install our [CodeCharta Shell]({{site.docs_overview}}/analysis), which is used to generate the code maps, simply install it via npm:
Copy file name to clipboardExpand all lines: gh-pages/_docs/01-overview/02-getting-started.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,28 @@ gallery:
19
19
20
20
Before you start doing anything, you should have a look at our [Web Studio](https://maibornwolff.github.io/codecharta/visualization/app/index.html?file=codecharta.cc.json.gz&file=codecharta_analysis.cc.json.gz¤tFilesAreSampleFiles=true&area=rloc&height=sonar_complexity&color=sonar_complexity) you can try everything out yourself. You could also have a look at our [User Controls]({{site.docs_visualization}}/user-controls) to help you navigate.
21
21
22
+
You can also run the Web Studio offline by running:
23
+
24
+
```bash
25
+
docker run -p 9000:80 codecharta/codecharta-visualization
26
+
```
27
+
This will automatically pull the docker container and start the Web Studio under `localhost:9000`
28
+
29
+
For more details about our docker images, see [Docker Containers]({{site.docs_overview/dockerized}}).
30
+
22
31
# CCSH (CodeCharta Shell)
23
32
24
-
After trying out the WebStudio, you may be wondering how to get your own project metrics into CodeCharta. You need to download our pre-build [CCSH (CodeCharta Shell)]({{site.docs_analysis}}/codecharta-shell), which will generate the metrics that can later be imported into our [Web Studio](https://maibornwolff.github.io/codecharta/visualization/app/index.html?file=codecharta.cc.json.gz&file=codecharta_analysis.cc.json.gz¤tFilesAreSampleFiles=true&area=rloc&height=sonar_complexity&color=sonar_complexity).
33
+
After trying out the WebStudio, you may be wondering how to get your own project metrics into CodeCharta. You can either download and install our pre-build [CCSH (CodeCharta Shell)]({{site.docs_analysis}}/codecharta-shell) or use our provided docker container. Both can be used to generate the metrics that can later be imported into our [Web Studio](https://maibornwolff.github.io/codecharta/visualization/app/index.html?file=codecharta.cc.json.gz&file=codecharta_analysis.cc.json.gz¤tFilesAreSampleFiles=true&area=rloc&height=sonar_complexity&color=sonar_complexity).
34
+
35
+
## Docker
36
+
37
+
Using the CodeCharta Shell docker container, a simple analysis can be analysis can be executed in one command:
38
+
```bash
39
+
docker run -v .:/mnt/src codecharta/codecharta-analysis bash -c 'git config --global --add safe.directory /mnt/src; cd /mnt/src/; simplecc.sh create tutorial'
40
+
```
41
+
Simply run this command in the directory you want to analyze. It will automatically pull the docker container and start the `simplecc.sh` script, which uses a combination of different analyzers to generate a well-rounded code map.
42
+
43
+
For more details about our docker images, see [Docker Containers]({{site.docs_overview/dockerized}})
25
44
26
45
## Installation
27
46
@@ -43,12 +62,12 @@ $ ccsh -h
43
62
Now you need to decide where you want to get your metrics from. Every parser and importer has their own metrics that can be exported.
44
63
Checkout [Analysis]({{site.docs_overview}}/analysis) to see an overview.
45
64
46
-
In this example we will use our [Raw Text Parser]({{site.docs_parser}}/raw-text) as it works on nearly every format.
65
+
In this example we will use our [Unified Parser]({{site.docs_parser}}/unified) as it works on nearly every format.
47
66
48
67
```bash
49
68
# -o output file
50
69
# <path> enter a path to your project or a file you want to analyze
NOTE: Your current directory will be used for the analysis if not specified otherwise.
44
+
45
+
# Docker images from local CodeCharta instance
46
+
47
+
If you have the CodeCharta repo cloned locally, you can start all containers, by typing `docker compose pull && docker compose up--detach`while you're in the same directory as our docker-compose.yml
13
48
14
49
## The Container Landscape
15
50
@@ -24,12 +59,6 @@ docker-compose.yml
24
59
All containers share a volume for the quick transfer of files. You can find it under /mnt/data in each container.
25
60
Please note that you will need to copy finished cc.json files to **your** hard-drive to open them in Visualization.
26
61
27
-
# Docker Hub Install
28
-
29
-
Both the visualization and the analysis are published on Docker Hub:
Copy file name to clipboardExpand all lines: gh-pages/_docs/02-visualization/01-web-studio.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ gallery:
15
15
title: "Visualization"
16
16
---
17
17
18
-
Our Web Studio allows you to import metrics from the CCSH(CodeCharta shell) and visualize them.
18
+
Our Web Studio allows you to import metrics from the CCSH(CodeCharta shell) and visualize them.
19
19
20
20
> Please note that CodeCharta runs only on your client. No metrics that you analyze or visualize will ever leave your computer unless you distribute it yourself.
21
21
@@ -40,3 +40,5 @@ $ npm i
40
40
# Start the dev server
41
41
$ npm run dev
42
42
```
43
+
44
+
You can also run it locally via docker. For more information, see [Docker Containers](https://codecharta.com/docs/overview/dockerized)
Copy file name to clipboardExpand all lines: gh-pages/_docs/05-parser/05-unified.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ CodeCharta. It generates either a cc.json or a csv file.
41
41
| Number of functions | The number of functions and methods in a file |
42
42
| Lines of code (LOC) | Lines of code including empty lines and comments |
43
43
| Real lines of code (RLOC) | Number of lines that contain at least one character which is neither a whitespace nor a tabulation nor part of a comment |
44
+
44
45
Some metrics are calculated on a per-function basis rather than per-file. Each of these metrics has max, min, mean and median values for each file.
0 commit comments