Skip to content

Commit 2337baa

Browse files
committed
Rename into code-analyzer
1 parent bf03349 commit 2337baa

7 files changed

Lines changed: 19 additions & 19 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# code-agent
1+
# code-analyzer
22

33
This project is a tool that analyzes a Git repository containing a java project.
44

55
## Usage and Run Modes
66

7-
The property `explorviz.gitanalysis.run-mode` determines if the code-agent runs continuously with REST APIs or in a non-interactive mode for CI environments.
7+
The property `explorviz.gitanalysis.run-mode` determines if the code-analyzer runs continuously with REST APIs or in a non-interactive mode for CI environments.
88

99
### Launching The Web Interface for Development
1010

@@ -29,7 +29,7 @@ Legacy fields `applicationName` and `applicationRoot` still work when `applicati
2929
3030
### CI / Non-Interactive Mode
3131
32-
By changing some settings in the `application.properties` file, it is possible to run the code-agent as CI job.
32+
By changing some settings in the `application.properties` file, it is possible to run the code-analyzer as CI job.
3333
3434
| property name | property value |
3535
| --------------------------------------- | ------------------------ |
@@ -45,7 +45,7 @@ The CI-Pipeline normally runs on the latest commit so the value of the property
4545
4646
## Settings
4747
48-
As the code-agent is made to run against your specific repository, you have to change some settings before it is able to analyze it.
48+
As the code-analyzer is made to run against your specific repository, you have to change some settings before it is able to analyze it.
4949
All settings can be manipulated via the `application.properties` file.
5050
5151
### Selecting the Repository Source

compose-local-export.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
2-
code-agent:
3-
image: explorviz/code-agent-jvm:latest
2+
code-analyzer:
3+
image: explorviz/code-analyzer:latest
44
volumes:
55
- ./.analysis-data:/home/jboss/analysis-data
66
environment:
@@ -12,7 +12,7 @@ services:
1212
- ANALYSIS_SOURCE_DIRS=src/main/java
1313
- ANALYSIS_RESTRICT_DIRS=src/main/java
1414
- ANALYSIS_END_COMMIT=f48227aea0e4056e1b9105494ea2f6360f3975f3
15-
# Explanation: This compose file starts the code agent and exports the file reports and
15+
# Explanation: This compose file starts the code analyzer and exports the file reports and
1616
# commit reports as JSON file in the hidden folder ./.analysis-folder. The end commit is the
1717
# first commit of the PetClinic that includes the package structure src/main/java, since there
1818
# it was first refactored.

compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
2-
code-agent:
3-
image: explorviz/code-agent-jvm:latest
2+
code-analyzer:
3+
image: explorviz/code-analyzer:latest
44
networks:
55
- explorviz
66
environment:

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ pluginManagement {
88
id "${quarkusPluginId}" version "${quarkusPluginVersion}"
99
}
1010
}
11-
rootProject.name='code-agent'
11+
rootProject.name='code-analyzer'

src/main/resources/META-INF/resources/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
6-
<title>ExplorViz Code Agent</title>
6+
<title>ExplorViz Code Analyzer</title>
77
<link href="styles.css" rel="stylesheet" />
88
</head>
99
<body>
1010
<main>
1111
<header>
1212
<div>
13-
<h1>ExplorViz Code Agent</h1>
13+
<h1>ExplorViz Code Analyzer</h1>
1414
<p class="subtitle">
1515
Web interface to trigger code analysis via the REST API under
1616
<code>/api/analysis/trigger</code>.

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ quarkus.log.category."net.explorviz".level=${EXPLORVIZ_LOG_LVL:INFO}
5555
## Jib Image Build ##
5656
#####################
5757
quarkus.container-image.group=explorviz
58-
quarkus.container-image.name=code-agent-jvm
58+
quarkus.container-image.name=code-analyzer
5959
quarkus.container-image.tag=latest
6060
quarkus.jib.base-jvm-image=eclipse-temurin:21.0.1_12-jdk-alpine@sha256:075f8207cbfecf7e509e2d93e2ffc36c097b52a8109a9bfd40326fa12bd5c438

src/test/java/net/explorviz/code/analysis/git/GitRepositoryHandlerTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ void testSshConversion() {
143143

144144
// GitHub SSH URL with .git suffix
145145
Assertions.assertEquals(
146-
Map.entry(true, "https://github.com/ExplorViz/code-agent.git"),
147-
GitRepositoryHandler.convertSshToHttps("git@github.com:ExplorViz/code-agent.git"));
146+
Map.entry(true, "https://github.com/ExplorViz/code-analyzer.git"),
147+
GitRepositoryHandler.convertSshToHttps("git@github.com:ExplorViz/code-analyzer.git"));
148148

149149
// GitHub SSH URL without .git suffix
150150
Assertions.assertEquals(
151-
Map.entry(true, "https://github.com/ExplorViz/code-agent"),
152-
GitRepositoryHandler.convertSshToHttps("git@github.com:ExplorViz/code-agent"));
151+
Map.entry(true, "https://github.com/ExplorViz/code-analyzer"),
152+
GitRepositoryHandler.convertSshToHttps("git@github.com:ExplorViz/code-analyzer"));
153153

154154
// GitHub SSH URL with hyphenated org/repo names
155155
Assertions.assertEquals(
@@ -159,8 +159,8 @@ void testSshConversion() {
159159

160160
// ssh:// style GitHub URL
161161
Assertions.assertEquals(
162-
Map.entry(true, "https://github.com/ExplorViz/code-agent.git"),
163-
GitRepositoryHandler.convertSshToHttps("ssh://git@github.com/ExplorViz/code-agent.git"));
162+
Map.entry(true, "https://github.com/ExplorViz/code-analyzer.git"),
163+
GitRepositoryHandler.convertSshToHttps("ssh://git@github.com/ExplorViz/code-analyzer.git"));
164164

165165
// if the url looks off, assume the user wants it that way
166166
final String urlUnderTest2 = "abc.xyz";

0 commit comments

Comments
 (0)