gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] 03/03: -make code spell again


From: gnunet
Subject: [taler-merchant] 03/03: -make code spell again
Date: Wed, 13 Dec 2023 21:46:43 +0100

This is an automated email from the git hooks/post-receive script.

devan-carpenter pushed a commit to branch master
in repository merchant.

commit 18cb9a0b3c22d9dfd3fc0cf81a8e1dd0062fc4ae
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Wed Dec 13 20:55:15 2023 +0100

    -make code spell again
---
 contrib/ci/jobs/0-codespell/dictionary.txt         |  1 +
 contrib/ci/jobs/0-codespell/job.sh                 | 97 +++++++++++++++++++++-
 ...r-merchant-httpd_private-get-instances-ID-kyc.c |  6 +-
 src/backenddb/merchant-0001.sql                    |  2 +-
 src/include/taler_merchant_service.h               |  6 +-
 src/testing/testing_api_cmd_post_orders_paid.c     |  2 +-
 src/testing/testing_api_cmd_reward_authorize.c     |  2 +-
 7 files changed, 106 insertions(+), 10 deletions(-)

diff --git a/contrib/ci/jobs/0-codespell/dictionary.txt 
b/contrib/ci/jobs/0-codespell/dictionary.txt
index b4d64334..065c5ce3 100644
--- a/contrib/ci/jobs/0-codespell/dictionary.txt
+++ b/contrib/ci/jobs/0-codespell/dictionary.txt
@@ -27,6 +27,7 @@ ifset
 ist
 keypair
 nd
+oce
 onl
 openin
 ot
diff --git a/contrib/ci/jobs/0-codespell/job.sh 
b/contrib/ci/jobs/0-codespell/job.sh
index 58bd07b5..7b486bc7 100755
--- a/contrib/ci/jobs/0-codespell/job.sh
+++ b/contrib/ci/jobs/0-codespell/job.sh
@@ -3,4 +3,99 @@ set -exuo pipefail
 
 job_dir=$(dirname "${BASH_SOURCE[0]}")
 
-codespell -I "${job_dir}"/dictionary.txt -S 
"*.bib,*.bst,*.cls,*.json,*.png,*.svg,*.wav,*.gz,*/templating/test?/**,**/auditor/*.sql,**/templating/mustach**,*.fees,*key,*.tag,*.info,*.latexmkrc,*.ecc,*.jpg,*.zkey,*.sqlite,*/contrib/hellos/**,*/vpn/tests/**,*.priv,*.file,*.tgz,*.woff,*.gif,*.odt,*.fee,*.deflate,*.dat,*.jpeg,*.eps,*.odg,*/m4/ax_lib_postgresql.m4,*/m4/libgcrypt.m4,*.rpath,config.status,ABOUT-NLS,*/doc/texinfo.tex,*.PNG,*.??.json,*.docx,*.ods,*.doc,*.docx,*.xcf,*.xlsx,*.ecc,*
 [...]
+skip=$(cat <<EOF
+ABOUT-NLS
+*/afl-tests/*
+**/auditor/*.sql
+*.bbl
+*.bib
+*build-aux*
+*.bst
+*.cache/*
+*/cbdc-es.tex
+*/cbdc-it.tex
+ChangeLog
+*.cls
+configure*
+config.status
+config.guess
+depcomp
+*/contrib/*
+*/contrib/hellos/**
+*.dat
+*.deflate
+*.doc
+*/doc/*
+**/doc/flows/main.de.tex
+*/doc/texinfo.tex
+*.docx
+*.ecc
+*.eot
+*.epgz
+*.eps
+*.epub
+**/ExchangeSelection/example.ts
+*.fee
+*.fees
+*.file
+**/fonts/**
+*.gif
+*/.git/**
+*.gz
+*/i18n/strings.ts
+*.info
+*.jpeg
+*.jpg
+*.??.json
+*.json
+*.json-*
+*/keys/*
+*key
+*.latexmkrc
+*libtool*
+ltmain.sh
+*.log
+*/m4/*
+*.m4
+**/*.map
+*.min.js
+*.mp4
+*.odg
+*.ods
+*.odt
+*.pack.js
+*.pdf
+*.png
+*.PNG
+**/pnpm-lock.yaml
+*.po
+*.pptx
+*.priv
+**/rfc.bib
+*.rpath
+**/signing-key.asc
+*.sqlite
+*/src/anastasis-data.ts
+**/*.svg
+*.svg
+*.tag
+**/templating/mustach**
+*/templating/test?/**
+*/testcurl/test_tricky.c
+*.tgz
+*.ttf
+*.ttf
+**/valgrind.h
+*/vpn/tests/**
+*.wav
+*.woff
+*.woff2
+*.xcf
+*.xlsx
+*.zkey
+EOF
+);
+
+echo Current directory: `pwd`
+
+codespell -I "${job_dir}"/dictionary.txt -S ${skip//$'\n'/,}
diff --git a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c 
b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
index d269402b..8a338e7d 100644
--- a/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
+++ b/src/backend/taler-merchant-httpd_private-get-instances-ID-kyc.c
@@ -39,13 +39,13 @@
  * How long should clients cache a KYC failure response?
  */
 #define EXPIRATION_KYC_FAILURE GNUNET_TIME_relative_multiply ( \
-    GNUNET_TIME_UNIT_MINUTES, 5)
+          GNUNET_TIME_UNIT_MINUTES, 5)
 
 /**
  * How long should clients cache a KYC success response?
  */
 #define EXPIRATION_KYC_SUCCESS GNUNET_TIME_relative_multiply ( \
-    GNUNET_TIME_UNIT_HOURS, 1)
+          GNUNET_TIME_UNIT_HOURS, 1)
 
 
 /**
@@ -447,7 +447,7 @@ ekr_finished (struct ExchangeKycRequest *ekr)
   if (NULL != kc->exchange_pending_head)
     return; /* wait for more */
   /* All exchange requests done, create final
-     big response from cummulated replies */
+     big response from cumulated replies */
   if ( (0 == json_array_size (kc->pending_kycs)) &&
        (0 == json_array_size (kc->timeout_kycs)) )
   {
diff --git a/src/backenddb/merchant-0001.sql b/src/backenddb/merchant-0001.sql
index d6b25d8d..51fe5099 100644
--- a/src/backenddb/merchant-0001.sql
+++ b/src/backenddb/merchant-0001.sql
@@ -135,7 +135,7 @@ COMMENT ON COLUMN merchant_login_tokens.creation_time
 COMMENT ON COLUMN merchant_login_tokens.expiration_time
   IS 'determines when the token expires';
 COMMENT ON COLUMN merchant_login_tokens.validity_scope
-  IS 'identifies the opeations for which the token is valid';
+  IS 'identifies the operations for which the token is valid';
 COMMENT ON COLUMN merchant_login_tokens.merchant_serial
   IS 'identifies the instance for which the token is valid';
 
diff --git a/src/include/taler_merchant_service.h 
b/src/include/taler_merchant_service.h
index b3e15025..0abef2a8 100644
--- a/src/include/taler_merchant_service.h
+++ b/src/include/taler_merchant_service.h
@@ -345,7 +345,7 @@ struct TALER_MERCHANT_ConfigResponse
        * supported by this merchant backend.
        */
       const struct TALER_CurrencySpecification *cspecs;
-      
+
     } ok;
   } details;
 };
@@ -908,7 +908,7 @@ TALER_MERCHANT_instance_delete_cancel (
  * @param arg request to cancel.
  */
 #define TALER_MERCHANT_instance_purge_cancel(arg) \
-  TALER_MERCHANT_instance_delete_cancel (arg)
+        TALER_MERCHANT_instance_delete_cancel (arg)
 
 
 /* *************** Accounts **************** */
@@ -2589,7 +2589,7 @@ typedef void
  * @param ctx execution context
  * @param backend_url base URL of the merchant backend
  * @param order_id order id to identify the payment
- * @param session_id sesion id for the payment (or NULL if the check is not
+ * @param session_id session id for the payment (or NULL if the check is not
  *                   bound to a session)
  * @param transfer if true, obtain the wire transfer status from the exchange.
  *               Otherwise, the wire transfer status MAY be returned if it is 
available.
diff --git a/src/testing/testing_api_cmd_post_orders_paid.c 
b/src/testing/testing_api_cmd_post_orders_paid.c
index fd6d2892..f4806788 100644
--- a/src/testing/testing_api_cmd_post_orders_paid.c
+++ b/src/testing/testing_api_cmd_post_orders_paid.c
@@ -55,7 +55,7 @@ struct PostOrdersPaidState
   const char *pay_reference;
 
   /**
-   * The session to use for the requet.
+   * The session to use for the request.
    */
   const char *session_id;
 
diff --git a/src/testing/testing_api_cmd_reward_authorize.c 
b/src/testing/testing_api_cmd_reward_authorize.c
index 9fe73659..1e8579ab 100644
--- a/src/testing/testing_api_cmd_reward_authorize.c
+++ b/src/testing/testing_api_cmd_reward_authorize.c
@@ -47,7 +47,7 @@ struct RewardAuthorizeState
   unsigned int http_status;
 
   /**
-   * Reference to the reserv to authorize the reward
+   * Reference to the reserve to authorize the reward
    * from (if NULL, the merchant decides).
    */
   const char *reserve_reference;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]