Skip to content

Commit 661e38c

Browse files
committed
System Touch
1 parent 5bf89ba commit 661e38c

91 files changed

Lines changed: 81 additions & 34 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
#-------------------------------------------------------------------------------#
2+
# Discover additional configuration options in our documentation #
3+
# https://www.jetbrains.com/help/qodana/github.html #
4+
#-------------------------------------------------------------------------------#
5+
16
name: Qodana
27
on:
38
workflow_dispatch:
49
pull_request:
510
push:
6-
branches: # Specify your branches here
7-
- main # The 'main' branch
8-
- 'releases/*' # The release branches
11+
branches:
12+
- main
13+
- master
914

1015
jobs:
1116
qodana:
@@ -15,14 +20,21 @@ jobs:
1520
pull-requests: write
1621
checks: write
1722
steps:
18-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
1924
with:
20-
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
21-
fetch-depth: 0 # a full history is required for pull request analysis
25+
ref: ${{ github.event.pull_request.head.sha }}
26+
fetch-depth: 0
2227
- name: 'Qodana Scan'
2328
uses: JetBrains/qodana-action@v2026.1
29+
env:
30+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
2431
with:
32+
# When pr-mode is set to true, Qodana analyzes only the files that have been changed
2533
pr-mode: false
26-
env:
27-
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_2047940364 }}
28-
QODANA_ENDPOINT: 'https://qodana.cloud'
34+
use-caches: true
35+
post-pr-comment: true
36+
use-annotations: true
37+
# Upload Qodana results (SARIF, other artifacts, logs) as an artifact to the job
38+
upload-result: false
39+
# quick-fixes available in Ultimate and Ultimate Plus plans
40+
push-fixes: 'none'

qodana.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,36 @@
22
# Qodana analysis is configured by qodana.yaml file #
33
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
44
#-------------------------------------------------------------------------------#
5+
56
#################################################################################
67
# WARNING: Do not store sensitive information in this file, #
78
# as its contents will be included in the Qodana report. #
89
#################################################################################
910
version: "1.0"
11+
1012
#Specify inspection profile for code analysis
1113
profile:
1214
name: qodana.starter
15+
1316
#Enable inspections
1417
#include:
1518
# - name: <SomeEnabledInspectionId>
19+
1620
#Disable inspections
1721
#exclude:
1822
# - name: <SomeDisabledInspectionId>
1923
# paths:
2024
# - <path/where/not/run/inspection>
25+
2126
projectJDK: "25" #(Applied in CI/CD pipeline)
27+
2228
#Execute shell command before Qodana execution (Applied in CI/CD pipeline)
2329
#bootstrap: sh ./prepare-qodana.sh
30+
2431
#Install IDE plugins before Qodana execution (Applied in CI/CD pipeline)
2532
#plugins:
2633
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
34+
2735
# Quality gate. Will fail the CI/CD pipeline if any condition is not met
2836
# severityThresholds - configures maximum thresholds for different problem severities
2937
# testCoverageThresholds - configures minimum code coverage on a whole project and newly added code
@@ -35,10 +43,6 @@ projectJDK: "25" #(Applied in CI/CD pipeline)
3543
# testCoverageThresholds:
3644
# fresh: 70
3745
# total: 50
46+
3847
#Specify Qodana linter for analysis (Applied in CI/CD pipeline)
3948
linter: jetbrains/qodana-jvm:2026.1
40-
include:
41-
- name: SizeReplaceableByIsEmpty
42-
- name: CommentedOutCode
43-
- name: Deprecation
44-
- name: UnnecessaryModifier

source/Main.class

3.43 KB
Binary file not shown.
5.48 KB
Binary file not shown.

source/bitcoin/base/BitcoinBase.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import server.nitro.NitroWebExpress;
99
import server.nitro.WebExpress;
1010

11+
import exceptions.ExceptionHandler;
1112
import java.io.BufferedReader;
1213
import java.io.IOException;
1314
import java.io.InputStreamReader;
@@ -83,6 +84,7 @@ public void start_server_instance(final String url)
8384
}
8485
catch (Exception e)
8586
{
87+
ExceptionHandler.dispatch(e);
8688
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
8789
}
8890
}
@@ -97,6 +99,7 @@ public void load_wallet(final String url) throws IOException
9799
}
98100
catch (Exception e)
99101
{
102+
ExceptionHandler.dispatch(e);
100103
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
101104
}
102105
}
@@ -135,6 +138,7 @@ public String get_wallet_name(final String url)
135138
}
136139
catch (Exception e)
137140
{
141+
ExceptionHandler.dispatch(e);
138142
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
139143
}
140144

@@ -169,6 +173,7 @@ public void delete_wallet(final String url) throws IOException
169173
}
170174
catch (Exception e)
171175
{
176+
ExceptionHandler.dispatch(e);
172177
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
173178
}
174179
}
@@ -183,6 +188,7 @@ public void unload_wallet(final String url) throws IOException
183188
}
184189
catch (Exception e)
185190
{
191+
ExceptionHandler.dispatch(e);
186192
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
187193
}
188194
}
@@ -197,6 +203,7 @@ public void rename_wallet(final String url)
197203
}
198204
catch (Exception e)
199205
{
206+
ExceptionHandler.dispatch(e);
200207
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
201208
}
202209
}
@@ -211,6 +218,7 @@ public void add_new_wallet(final String url)
211218
}
212219
catch (Exception e)
213220
{
221+
ExceptionHandler.dispatch(e);
214222
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
215223
}
216224
}
@@ -225,6 +233,7 @@ public void send_local_wallet_to_remote_wallet(final String url)
225233
}
226234
catch (Exception e)
227235
{
236+
ExceptionHandler.dispatch(e);
228237
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
229238
}
230239
}
515 Bytes
Binary file not shown.
1.67 KB
Binary file not shown.
5.6 KB
Binary file not shown.

source/bitcoin/module/TraderModule.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import server.nitro.NitroWebExpress;
88
import server.nitro.WebExpress;
99

10+
import exceptions.ExceptionHandler;
1011
import java.io.BufferedReader;
1112
import java.io.IOException;
1213
import java.io.InputStreamReader;
@@ -86,6 +87,7 @@ public void start_server_instance(final String url)
8687
}
8788
catch (Exception e)
8889
{
90+
ExceptionHandler.dispatch(e);
8991
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
9092
}
9193
}
@@ -100,6 +102,7 @@ public void load_wallet(final String url) throws IOException
100102
}
101103
catch (Exception e)
102104
{
105+
ExceptionHandler.dispatch(e);
103106
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
104107
}
105108
}
@@ -138,6 +141,7 @@ public String get_wallet_name(final String url)
138141
}
139142
catch (Exception e)
140143
{
144+
ExceptionHandler.dispatch(e);
141145
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
142146
}
143147

@@ -172,6 +176,7 @@ public void delete_wallet(final String url) throws IOException
172176
}
173177
catch (Exception e)
174178
{
179+
ExceptionHandler.dispatch(e);
175180
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
176181
}
177182
}
@@ -186,6 +191,7 @@ public void unload_wallet(final String url) throws IOException
186191
}
187192
catch (Exception e)
188193
{
194+
ExceptionHandler.dispatch(e);
189195
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
190196
}
191197
}
@@ -200,6 +206,7 @@ public void rename_wallet(final String url)
200206
}
201207
catch (Exception e)
202208
{
209+
ExceptionHandler.dispatch(e);
203210
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
204211
}
205212
}
@@ -214,6 +221,7 @@ public void add_new_wallet(final String url)
214221
}
215222
catch (Exception e)
216223
{
224+
ExceptionHandler.dispatch(e);
217225
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
218226
}
219227
}
@@ -228,6 +236,7 @@ public void send_local_wallet_to_remote_wallet(final String url)
228236
}
229237
catch (Exception e)
230238
{
239+
ExceptionHandler.dispatch(e);
231240
CommonRails.printSystemComponent(this, this.hashCode(), "0x8A66Ea");
232241
}
233242
}
1.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)