commit 004050c9eb11fae46e47e03f7cb336aef6bb0adc
parent ddf1f43c9396d7afa980649555e4ad6e24d42759
Author: Antoine A <>
Date: Wed, 25 Sep 2024 01:37:35 +0200
common: codespell
Diffstat:
6 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/contrib/ci/jobs/0-codespell/dictionary.txt b/contrib/ci/jobs/0-codespell/dictionary.txt
@@ -15,4 +15,5 @@ UE
Te
optin
claus
-pres
-\ No newline at end of file
+pres
+haa
+\ No newline at end of file
diff --git a/contrib/ci/jobs/0-codespell/job.sh b/contrib/ci/jobs/0-codespell/job.sh
@@ -19,8 +19,8 @@ configure~
*/build/*
*/*.xsd
*/*.xml
-*/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022ExternalCodeSets.kt
-*/nexus/src/main/kotlin/tech/libeufin/nexus/Iso20022BankTransactionCode.kt
+*/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/ExternalCodeSets.kt
+*/nexus/src/main/kotlin/tech/libeufin/nexus/iso20022/BankTransactionCode.kt
EOF
);
diff --git a/database-versioning/libeufin-nexus-procedures.sql b/database-versioning/libeufin-nexus-procedures.sql
@@ -92,10 +92,10 @@ IF out_found THEN
-- Check metadata
-- TODO take subject if missing and more detailed credit payto
IF local_subject IS DISTINCT FROM in_subject THEN
- RAISE NOTICE 'outgoing tx %: stored subjet is ''%'' got ''%''', in_end_to_end_id, local_subject, in_subject;
+ RAISE NOTICE 'outgoing tx %: stored subject is ''%'' got ''%''', in_end_to_end_id, local_subject, in_subject;
END IF;
IF local_credit_payto IS DISTINCT FROM in_credit_payto THEN
- RAISE NOTICE 'outgoing tx %: stored subjet credit payto is % got %', in_end_to_end_id, local_credit_payto, in_credit_payto;
+ RAISE NOTICE 'outgoing tx %: stored subject credit payto is % got %', in_end_to_end_id, local_credit_payto, in_credit_payto;
END IF;
IF local_amount IS DISTINCT FROM in_amount THEN
RAISE NOTICE 'outgoing tx %: stored amount is % got %', in_end_to_end_id, local_amount, in_amount;
@@ -120,10 +120,10 @@ IF out_initiated AND NOT out_found THEN
-- Check metadata
-- TODO take subject if missing and more detailed credit payto
IF local_subject IS DISTINCT FROM in_subject THEN
- RAISE NOTICE 'outgoing tx %: initiated subjet is ''%'' got ''%''', in_end_to_end_id, local_subject, in_subject;
+ RAISE NOTICE 'outgoing tx %: initiated subject is ''%'' got ''%''', in_end_to_end_id, local_subject, in_subject;
END IF;
IF local_credit_payto IS DISTINCT FROM in_credit_payto THEN
- RAISE NOTICE 'outgoing tx %: initiated subjet credit payto is % got %', in_end_to_end_id, local_credit_payto, in_credit_payto;
+ RAISE NOTICE 'outgoing tx %: initiated subject credit payto is % got %', in_end_to_end_id, local_credit_payto, in_credit_payto;
END IF;
IF local_amount IS DISTINCT FROM in_amount THEN
RAISE NOTICE 'outgoing tx %: initiated amount is % got %', in_end_to_end_id, local_amount, in_amount;
@@ -273,10 +273,10 @@ out_found=FOUND;
IF out_found THEN
-- Check metadata
IF local_subject != in_subject THEN
- RAISE NOTICE 'incoming tx %: stored subjet is ''%'' got ''%''', in_bank_id, local_subject, in_subject;
+ RAISE NOTICE 'incoming tx %: stored subject is ''%'' got ''%''', in_bank_id, local_subject, in_subject;
END IF;
IF local_debit_payto != in_debit_payto THEN
- RAISE NOTICE 'incoming tx %: stored subjet debit payto is % got %', in_bank_id, local_debit_payto, in_debit_payto;
+ RAISE NOTICE 'incoming tx %: stored subject debit payto is % got %', in_bank_id, local_debit_payto, in_debit_payto;
END IF;
IF local_amount != in_amount THEN
RAISE NOTICE 'incoming tx %: stored amount is % got %', in_bank_id, local_amount, in_amount;
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/db/Database.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/db/Database.kt
@@ -61,7 +61,7 @@ enum class SubmissionState {
unsubmitted,
// Submission failed, retry possible
transient_failure,
- // Submission succed, pending settltment
+ // Submission succeed, pending settltment
pending,
// Definitive failure, will never succeed
permanent_failure,
diff --git a/nexus/src/test/kotlin/DatabaseTest.kt b/nexus/src/test/kotlin/DatabaseTest.kt
@@ -90,7 +90,7 @@ class OutgoingPaymentsTest {
}
db.checkOutCount(nbIncoming = 2, nbTalerable = 1)
- // Register unknonwn
+ // Register unknown
for (subject in sequenceOf(
"not initiated by nexus",
"${ShortHashCode.rand()} https://exchange.com"
diff --git a/testbench/clean_test_logs.py b/testbench/clean_test_logs.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# Clean testbench logs directory to only keep unique and usefull files
+# Clean testbench logs directory to only keep unique and useful files
import hashlib
from pathlib import Path