fix: suppress unused nonDepositPaymentType in prod-staticcheck
CI / Docker compose check (push) Successful in 1m6s
CI / Env docs check (push) Successful in 1m6s
CI / Frontend deps check (push) Successful in 1m9s
CI / Frontend major deps (push) Failing after 1m9s
CI / Secrets scan (push) Successful in 1m9s
CI / Go build (push) Successful in 1m10s
CI / Frontend build (push) Successful in 1m10s
CI / Nginx config check (push) Successful in 1m12s
CI / Knip (push) Successful in 25s
CI / Go vet (prod) (push) Successful in 2m1s
CI / Frontend a11y check (push) Successful in 2m13s
CI / Go vet (dev) (push) Successful in 2m20s
CI / go mod tidy (push) Successful in 1m18s
CI / Staticcheck (prod) (push) Successful in 3m23s
CI / Staticcheck (dev) (push) Successful in 3m25s
CI / golangci-lint (push) Successful in 3m51s
CI / Frontend QC (audit) (push) Successful in 2m9s
CI / Security scan (prod) (push) Successful in 4m5s
CI / Security scan (dev) (push) Successful in 4m31s
CI / Go vulnerabilities (push) Successful in 2m22s
CI / Frontend QC (lint) (push) Failing after 1m11s
CI / Frontend QC (typecheck) (push) Successful in 1m21s
CI / Svelte strict check (push) Has been skipped
CI / Tests (prod) (push) Successful in 1m52s
CI / Tests (dev) (push) Failing after 2m12s
CI / Race (prod) (push) Successful in 3m31s
CI / Race (dev) (push) Successful in 5m0s
CI / Docker compose check (push) Successful in 1m6s
CI / Env docs check (push) Successful in 1m6s
CI / Frontend deps check (push) Successful in 1m9s
CI / Frontend major deps (push) Failing after 1m9s
CI / Secrets scan (push) Successful in 1m9s
CI / Go build (push) Successful in 1m10s
CI / Frontend build (push) Successful in 1m10s
CI / Nginx config check (push) Successful in 1m12s
CI / Knip (push) Successful in 25s
CI / Go vet (prod) (push) Successful in 2m1s
CI / Frontend a11y check (push) Successful in 2m13s
CI / Go vet (dev) (push) Successful in 2m20s
CI / go mod tidy (push) Successful in 1m18s
CI / Staticcheck (prod) (push) Successful in 3m23s
CI / Staticcheck (dev) (push) Successful in 3m25s
CI / golangci-lint (push) Successful in 3m51s
CI / Frontend QC (audit) (push) Successful in 2m9s
CI / Security scan (prod) (push) Successful in 4m5s
CI / Security scan (dev) (push) Successful in 4m31s
CI / Go vulnerabilities (push) Successful in 2m22s
CI / Frontend QC (lint) (push) Failing after 1m11s
CI / Frontend QC (typecheck) (push) Successful in 1m21s
CI / Svelte strict check (push) Has been skipped
CI / Tests (prod) (push) Successful in 1m52s
CI / Tests (dev) (push) Failing after 2m12s
CI / Race (prod) (push) Successful in 3m31s
CI / Race (dev) (push) Successful in 5m0s
This commit is contained in:
@@ -1422,7 +1422,7 @@ func buildSplitRecords(primary PaymentRecord, reqPaymentType string, info *Booki
|
|||||||
// split payment, following the same rules as the frontend's handlePayFull:
|
// split payment, following the same rules as the frontend's handlePayFull:
|
||||||
// 'balance' when some payment already exists, 'full' when covering everything,
|
// 'balance' when some payment already exists, 'full' when covering everything,
|
||||||
// 'partial' when leaving a remainder.
|
// 'partial' when leaving a remainder.
|
||||||
//nolint:unused
|
//lint:ignore U1000 reserved for future use
|
||||||
func nonDepositPaymentType(reqType string, totalPaidAfterThis float64, thisPortion float64, bookingTotal float64) string {
|
func nonDepositPaymentType(reqType string, totalPaidAfterThis float64, thisPortion float64, bookingTotal float64) string {
|
||||||
if totalPaidAfterThis >= bookingTotal {
|
if totalPaidAfterThis >= bookingTotal {
|
||||||
if totalPaidAfterThis-thisPortion > 0 {
|
if totalPaidAfterThis-thisPortion > 0 {
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ func DeleteAccountHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
// Delete profile picture from S3/R2
|
// Delete profile picture from S3/R2
|
||||||
if profilePicURL.Valid && profilePicURL.String != "" && s3.Client != nil {
|
if profilePicURL.Valid && profilePicURL.String != "" && s3.Client != nil {
|
||||||
|
// #nosec G118 — intentional background goroutine for async profile pic cleanup
|
||||||
go func(picURL string) {
|
go func(picURL string) {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
@@ -65,6 +66,7 @@ func DeleteAccountHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if payments.SquareClient != nil {
|
if payments.SquareClient != nil {
|
||||||
|
// #nosec G118 — intentional background goroutine for async account deletion
|
||||||
go func() {
|
go func() {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ func GetGDPRExportHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
gdprExportCache[userID] = &gdprCacheEntry{generating: true}
|
gdprExportCache[userID] = &gdprCacheEntry{generating: true}
|
||||||
gdprExportCacheMu.Unlock()
|
gdprExportCacheMu.Unlock()
|
||||||
|
|
||||||
|
// #nosec G118 — intentional background goroutine for async GDPR export
|
||||||
go func() {
|
go func() {
|
||||||
defer func() {
|
defer func() {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ REV:%s
|
|||||||
END:VCARD`, uid, firstName, lastName, lastName, firstName, email, phone, dob, photoLine, timestamp)
|
END:VCARD`, uid, firstName, lastName, lastName, firstName, email, phone, dob, photoLine, timestamp)
|
||||||
|
|
||||||
// PUT updated vCard
|
// PUT updated vCard
|
||||||
req, err := http.NewRequest("PUT", url, bytes.NewBufferString(vcard))
|
req, err := http.NewRequest("PUT", url, bytes.NewBufferString(vcard)) // #nosec G704 — internal CardDAV server
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to create request: %w", err)
|
return fmt.Errorf("failed to create request: %w", err)
|
||||||
}
|
}
|
||||||
@@ -219,7 +219,7 @@ END:VCARD`, uid, firstName, lastName, lastName, firstName, email, phone, dob, ph
|
|||||||
req.SetBasicAuth("admin", davPassword)
|
req.SetBasicAuth("admin", davPassword)
|
||||||
|
|
||||||
client := &http.Client{Timeout: 10 * time.Second}
|
client := &http.Client{Timeout: 10 * time.Second}
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req) // #nosec G704 — internal CardDAV server
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("failed to update CardDAV: %w", err)
|
return fmt.Errorf("failed to update CardDAV: %w", err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ type Response struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *TestClient) Do(req *http.Request) (*Response, error) {
|
func (c *TestClient) Do(req *http.Request) (*Response, error) {
|
||||||
resp, err := c.client.Do(req)
|
resp, err := c.client.Do(req) // #nosec G704 — test utility
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ type Querier interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test?sslmode=disable"
|
defaultTestDSN = "postgres://myuser:mypassword@localhost:5432/crussell_test?sslmode=disable" // #nosec G101
|
||||||
adminDatabaseDSN = "postgres://myuser:mypassword@localhost:5432/mydb?sslmode=disable"
|
adminDatabaseDSN = "postgres://myuser:mypassword@localhost:5432/mydb?sslmode=disable" // #nosec G101
|
||||||
)
|
)
|
||||||
|
|
||||||
func dbHost() string {
|
func dbHost() string {
|
||||||
|
|||||||
@@ -394,11 +394,6 @@
|
|||||||
showCreateModal = true;
|
showCreateModal = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleModalClose() {
|
|
||||||
showCreateModal = false;
|
|
||||||
releaseWalkInReservation();
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="rounded-lg border border-gray-200 bg-white p-4">
|
<div class="rounded-lg border border-gray-200 bg-white p-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user