forked from FeKozma/Code-check
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FeKozma:main' into main
- Loading branch information
Showing
11 changed files
with
281 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
LOGGING_LEVEL=DEBUG | ||
# This is related to TEMP_FILE below. | ||
TEMP_FILE_ENABLED=false | ||
# If enabled, this file will be deleted and replaced every run instead of using the results files. | ||
TEMP_FILE=debugFile.txt | ||
# Directory of where the result files are saved. They range from 0 to 99. | ||
# Valid values in order: OFF, ERROR, WARNING, INFO, DEBUG, TRACE. | ||
LOGGING_LEVEL=INFO | ||
# Directory path to where the code will be scanned. | ||
PATH_TO_CODE=src/test/resources/ | ||
# Directory of where the result files are saved. By default, it ranges from 0 to 99, and can be changed in `RESULTS_FILE_LIMIT`. | ||
PATH_TO_RESULTS=results | ||
# Set this property to a path that should be excluded. It's regex based, so writing [file1, file2] would exclude any file containing file1 and file2. | ||
EXCLUDED_PATHS=[] | ||
# Prefix for the result files. | ||
RESULT_NAME_PREFIX=result_{nr} | ||
# The LLM located in project root. | ||
LLM_FILE=models/ggml-model-gpt4all-falcon-q4_0.bin | ||
# Max amount of results files to create before the limit is reached. Starting from 0. The default value is 100. | ||
RESULTS_FILE_LIMIT=100 | ||
# Set this property to a path that should be excluded. It's regex based, so writing [file1, file2] would exclude any file containing file1 and file2. | ||
EXCLUDED_PATHS=[] | ||
# Run with LLM - needs a model defined and will take more computing power and time to run. | ||
RUN_WITH_LLM=false | ||
# Directory path to where the code is to be scanned. | ||
PATH_TO_CODE=src/test/resources/ | ||
# The LLM located in project root. | ||
LLM_FILE=models/ggml-model-gpt4all-falcon-q4_0.bin | ||
# How many threads the LLM will be using when it's running. | ||
LLM_THREADS=4 | ||
# This is related to the `TEMP_FILE` option. If the temp file option should be enabled or not. | ||
TEMP_FILE_ENABLED=false | ||
# If enabled, this file will be deleted and replaced every run instead of using the result files option. | ||
TEMP_FILE=debugFile.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
package CodeCheck; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.format.DateTimeFormatter; | ||
|
||
public class Main { | ||
|
||
public static void main(String[] args) throws Exception { | ||
Log.log("Starting up..."); | ||
long startTime = System.currentTimeMillis(); | ||
Log.log("Starting up at: %s.".formatted(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS")))); | ||
Log.log("Running on %s.".formatted(System.getProperty("os.name"))); | ||
|
||
CodeCheck.execute(); | ||
|
||
Log.log("Shutting down..."); | ||
Log.log("Shutting down at: %s.".formatted(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS")))); | ||
Log.log("Total duration: %s".formatted(Util.getFormattedDurationTime(startTime))); | ||
} | ||
} |
Oops, something went wrong.