Skip to content

Commit

Permalink
Finish 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amb1ent committed Sep 9, 2023
2 parents a112a45 + bc01d1e commit 8e76b12
Show file tree
Hide file tree
Showing 51 changed files with 3,321 additions and 137 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.gradle
/.idea
/build
/bin
/.docker-build
/tokens/err0agent.json
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The err0agent automatically detects the following programming language.
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/c/c-original.svg" width="50" height="50"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/cplusplus/cplusplus-original.svg" width="50" height="50"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/csharp/csharp-original.svg" width="50" height="50"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/objectivec/objectivec-plain.svg" width="50" height="50" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/java/java-original-wordmark.svg" width="50" height="50"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg" width="50" height="50" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/typescript/typescript-original.svg" width="50" height="50"/>
Expand All @@ -57,7 +58,9 @@ The err0agent automatically detects the following programming language.
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/rust/rust-plain.svg" width="50" height="50"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/go/go-original-wordmark.svg" width="50" height="50"/>
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/lua/lua-plain-wordmark.svg" width="50" height="50" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/swift/swift-original.svg" width="50" height="50" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/ruby/ruby-original.svg" width="50" height="50" />
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/kotlin/kotlin-original.svg" width="50" height="50" />
</div>

## Can it handle custom log or error handlers?
Expand Down
68 changes: 43 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ plugins {
}

group = "io.err0"
version = "1.4.1-BETA"
version = "1.5.0-BETA"

repositories {
mavenCentral()
Expand Down Expand Up @@ -73,13 +73,15 @@ dependencies {
//implementation("io.vertx:vertx-web-client")
//testImplementation("io.vertx:vertx-junit5")
testImplementation("org.junit.jupiter:junit-jupiter:$junitJupiterVersion")
implementation("com.google.code.gson:gson:2.8.7")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")


// https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit
implementation("org.eclipse.jgit:org.eclipse.jgit:5.12.0.202106070339-r")

// https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5
implementation("org.apache.httpcomponents.client5:httpclient5:5.2")
implementation("org.apache.httpcomponents.client5:httpclient5:5.2.1")

// https://mvnrepository.com/artifact/commons-cli/commons-cli
implementation("commons-cli:commons-cli:1.5.0")
Expand Down Expand Up @@ -123,6 +125,14 @@ tasks.withType<JavaExec> {
// Check-out the open-source-bundle project at the same parent level as this project:
args = listOf(
// pass #1 -- insert error codes (or re-insert error codes).
"--token", "../open-source-bundle/dev-localhost/err0-kotlinx-html-20230818-e52cfc88-3dbd-11ee-8cc8-305a3ac84b71.json", "--insert", "../open-source-bundle/kotlinx.html", // Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-ktor-20230818-d2e19b37-3dbd-11ee-8cc8-305a3ac84b71.json", "--insert", "../open-source-bundle/ktor", // Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-telegram-20230818-bfd50cc6-3dbd-11ee-8cc8-305a3ac84b71.json", "--insert", "../open-source-bundle/Telegram", // Java/Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-signal-android-20230818-b0602405-3dbd-11ee-8cc8-305a3ac84b71.json", "--insert", "../open-source-bundle/Signal-Android", // Java/Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-telegram-ios-20230818-99ec9cd4-3dbd-11ee-8cc8-305a3ac84b71.json", "--insert", "../open-source-bundle/Telegram-iOS", // Swift/Obj-C
"--token", "../open-source-bundle/dev-localhost/err0-signal-ios-20230818-886f39e3-3dbd-11ee-8cc8-305a3ac84b71.json", "--insert", "../open-source-bundle/Signal-iOS", // Swift/Obj-C
"--token", "../open-source-bundle/dev-localhost/err0-utm-20230818-69ee3c52-3dbd-11ee-8cc8-305a3ac84b71.json", "--insert", "../open-source-bundle/UTM", // Swift
"--token", "../open-source-bundle/dev-localhost/err0-vapor-20230816-b6fc8533-3c11-11ee-a93e-305a3ac84b71.json", "--insert", "../open-source-bundle/vapor", // Swift
"--token", "../open-source-bundle/dev-localhost/err0-smartthingsedgedrivers-20230603-077907dc-0214-11ee-a0ed-305a3ac84b71.json", "--insert", "../open-source-bundle/SmartThingsEdgeDrivers", // Lua
"--token", "../open-source-bundle/dev-localhost/err0-leptos-20221220-7c62eafd-806b-11ed-b59e-4401bb8de3b3.json", "--insert", "../open-source-bundle/leptos", // Rust
"--token", "../open-source-bundle/dev-localhost/err0-postfix-20221220-5cd5d49b-806b-11ed-b59e-4401bb8de3b3.json", "--insert", "../open-source-bundle/postfix", // C
Expand All @@ -146,28 +156,36 @@ tasks.withType<JavaExec> {
"--token", "../open-source-bundle/dev-localhost/err0-rails-20230723-82c92bf1-1997-11ee-8025-305a3ac84b71.json", "--insert", "../open-source-bundle/rails", // Ruby
"--token", "../open-source-bundle/dev-localhost/err0-pytorch-20221209-6cd848c3-77ab-11ed-b3c0-4401bb8de3b3.json", "--insert", "../open-source-bundle/pytorch", // Python/C++
// pass #2 -- analyse source code, ignoring dirty checkout.
"--token", "../open-source-bundle/dev-localhost/err0-smartthingsedgedrivers-20230603-077907dc-0214-11ee-a0ed-305a3ac84b71.json", "--analyse", "--dirty", "../open-source-bundle/SmartThingsEdgeDrivers", // Lua
"--token", "../open-source-bundle/dev-localhost/err0-leptos-20221220-7c62eafd-806b-11ed-b59e-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/leptos", // Rust
"--token", "../open-source-bundle/dev-localhost/err0-postfix-20221220-5cd5d49b-806b-11ed-b59e-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/postfix", // C
"--token", "../open-source-bundle/dev-localhost/err0-bitcoin-20221220-6dcc7b5c-806b-11ed-b59e-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/bitcoin", // C++
"--token", "../open-source-bundle/dev-localhost/err0-spring-framework-20221207-7772c640-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/spring-framework", // java
"--token", "../open-source-bundle/dev-localhost/err0-django-20221207-3c39a436-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/django", // python
"--token", "../open-source-bundle/dev-localhost/err0-kubernetes-20221207-4fc303c9-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/kubernetes", // go
"--token", "../open-source-bundle/dev-localhost/err0-roslyn-20221207-7166770f-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/roslyn", // c#
"--token", "../open-source-bundle/dev-localhost/err0-node-bb-20221207-65fd799d-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/NodeBB", // node.js
"--token", "../open-source-bundle/dev-localhost/err0-zf2-orders-20221207-9952cd55-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/zf2-orders", // php + Zend framework
"--token", "../open-source-bundle/dev-localhost/err0-moodle-20221207-6052f97c-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/moodle", // very tidy php lms for universities
"--token", "../open-source-bundle/dev-localhost/err0-magneto-2-20221207-55b2551a-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/magento2", // php e-commerce
"--token", "../open-source-bundle/dev-localhost/err0-umbraco-20221207-8dcaaf23-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/Umbraco-CMS", // c#
"--token", "../open-source-bundle/dev-localhost/err0-drupal-20221207-41dbe6f7-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/drupal", // php
"--token", "../open-source-bundle/dev-localhost/err0-tomcat-20221207-88958612-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/tomcat", // java
"--token", "../open-source-bundle/dev-localhost/err0-wordpress-20221207-93b2d484-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/WordPress", // php
"--token", "../open-source-bundle/dev-localhost/err0-ratpack-20221207-6ba317be-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/ratpack", // java
"--token", "../open-source-bundle/dev-localhost/err0-strapi-20221207-82bf8921-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/strapi", // javascript
"--token", "../open-source-bundle/dev-localhost/err0-cerbos-20221207-33d4bf05-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/cerbos", // go
"--token", "../open-source-bundle/dev-localhost/err0-mender-20221207-5b47787b-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/mender", // go
"--token", "../open-source-bundle/dev-localhost/err0-rails-20230723-82c92bf1-1997-11ee-8025-305a3ac84b71.json", "--analyse", "--dirty", "../open-source-bundle/rails", // Ruby
"--token", "../open-source-bundle/dev-localhost/err0-pytorch-20221209-6cd848c3-77ab-11ed-b3c0-4401bb8de3b3.json", "--analyse", "--dirty", "../open-source-bundle/pytorch", // Python/C++
"--token", "../open-source-bundle/dev-localhost/err0-vapor-20230816-b6fc8533-3c11-11ee-a93e-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/vapor", // Swift
"--token", "../open-source-bundle/dev-localhost/err0-smartthingsedgedrivers-20230603-077907dc-0214-11ee-a0ed-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/SmartThingsEdgeDrivers", // Lua
"--token", "../open-source-bundle/dev-localhost/err0-leptos-20221220-7c62eafd-806b-11ed-b59e-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/leptos", // Rust
"--token", "../open-source-bundle/dev-localhost/err0-postfix-20221220-5cd5d49b-806b-11ed-b59e-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/postfix", // C
"--token", "../open-source-bundle/dev-localhost/err0-bitcoin-20221220-6dcc7b5c-806b-11ed-b59e-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/bitcoin", // C++
"--token", "../open-source-bundle/dev-localhost/err0-spring-framework-20221207-7772c640-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/spring-framework", // java
"--token", "../open-source-bundle/dev-localhost/err0-django-20221207-3c39a436-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/django", // python
"--token", "../open-source-bundle/dev-localhost/err0-kubernetes-20221207-4fc303c9-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/kubernetes", // go
"--token", "../open-source-bundle/dev-localhost/err0-roslyn-20221207-7166770f-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/roslyn", // c#
"--token", "../open-source-bundle/dev-localhost/err0-node-bb-20221207-65fd799d-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/NodeBB", // node.js
"--token", "../open-source-bundle/dev-localhost/err0-zf2-orders-20221207-9952cd55-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/zf2-orders", // php + Zend framework
"--token", "../open-source-bundle/dev-localhost/err0-moodle-20221207-6052f97c-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/moodle", // very tidy php lms for universities
"--token", "../open-source-bundle/dev-localhost/err0-magneto-2-20221207-55b2551a-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/magento2", // php e-commerce
"--token", "../open-source-bundle/dev-localhost/err0-umbraco-20221207-8dcaaf23-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/Umbraco-CMS", // c#
"--token", "../open-source-bundle/dev-localhost/err0-drupal-20221207-41dbe6f7-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/drupal", // php
"--token", "../open-source-bundle/dev-localhost/err0-tomcat-20221207-88958612-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/tomcat", // java
"--token", "../open-source-bundle/dev-localhost/err0-wordpress-20221207-93b2d484-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/WordPress", // php
"--token", "../open-source-bundle/dev-localhost/err0-ratpack-20221207-6ba317be-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/ratpack", // java
"--token", "../open-source-bundle/dev-localhost/err0-strapi-20221207-82bf8921-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/strapi", // javascript
"--token", "../open-source-bundle/dev-localhost/err0-cerbos-20221207-33d4bf05-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/cerbos", // go
"--token", "../open-source-bundle/dev-localhost/err0-mender-20221207-5b47787b-763f-11ed-8b95-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/mender", // go
"--token", "../open-source-bundle/dev-localhost/err0-rails-20230723-82c92bf1-1997-11ee-8025-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/rails", // Ruby
"--token", "../open-source-bundle/dev-localhost/err0-pytorch-20221209-6cd848c3-77ab-11ed-b3c0-4401bb8de3b3.json", "--analyse", "--dirty", "--check", "../open-source-bundle/pytorch", // Python/C++
"--token", "../open-source-bundle/dev-localhost/err0-kotlinx-html-20230818-e52cfc88-3dbd-11ee-8cc8-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/kotlinx.html", // Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-ktor-20230818-d2e19b37-3dbd-11ee-8cc8-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/ktor", // Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-telegram-20230818-bfd50cc6-3dbd-11ee-8cc8-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/Telegram", // Java/Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-signal-android-20230818-b0602405-3dbd-11ee-8cc8-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/Signal-Android", // Java/Kotlin
"--token", "../open-source-bundle/dev-localhost/err0-telegram-ios-20230818-99ec9cd4-3dbd-11ee-8cc8-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/Telegram-iOS", // Swift/Obj-C
"--token", "../open-source-bundle/dev-localhost/err0-signal-ios-20230818-886f39e3-3dbd-11ee-8cc8-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/Signal-iOS", // Swift/Obj-C
"--token", "../open-source-bundle/dev-localhost/err0-utm-20230818-69ee3c52-3dbd-11ee-8cc8-305a3ac84b71.json", "--analyse", "--dirty", "--check", "../open-source-bundle/UTM", // Swift
)

//args = listOf("--version", "--help")
Expand Down
2 changes: 1 addition & 1 deletion docker/agent/err0.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

java -Xmx4096m -jar /root/err0agent.jar $@
java -Xmx8192m -Xms4096m -jar /root/err0agent.jar $@
2 changes: 1 addition & 1 deletion docker/agent/err0agent.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

java -Xmx4096m -jar /root/err0agent.jar $@
java -Xmx8192m -Xms4096m -jar /root/err0agent.jar $@
Loading

0 comments on commit 8e76b12

Please sign in to comment.