Skip to content

Commit e987643

Browse files
committed
make lint/fmt
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent cf93129 commit e987643

File tree

4 files changed

+731
-926
lines changed

4 files changed

+731
-926
lines changed

coderd/notifications/dispatch/fixtures/generate.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ V3_EXT_CONF="v3_ext.conf"
1414
openssl genpkey -algorithm RSA -out $CA_KEY -pkeyopt rsa_keygen_bits:2048
1515

1616
# Create the CA configuration file
17-
cat > $CA_CONF <<EOL
17+
cat >$CA_CONF <<EOL
1818
[ req ]
1919
distinguished_name = req_distinguished_name
2020
x509_extensions = v3_ca
@@ -42,7 +42,7 @@ openssl req -new -x509 -key $CA_KEY -out $CA_CERT -days 3650 -config $CA_CONF -e
4242
openssl genpkey -algorithm RSA -out $SERVER_KEY -pkeyopt rsa_keygen_bits:2048
4343

4444
# Create the server configuration file
45-
cat > $SERVER_CONF <<EOL
45+
cat >$SERVER_CONF <<EOL
4646
[ req ]
4747
distinguished_name = req_distinguished_name
4848
req_extensions = v3_req
@@ -69,7 +69,7 @@ EOL
6969
openssl req -new -key $SERVER_KEY -out $SERVER_CSR -config $SERVER_CONF
7070

7171
# Create the server extensions configuration file
72-
cat > $V3_EXT_CONF <<EOL
72+
cat >$V3_EXT_CONF <<EOL
7373
authorityKeyIdentifier=keyid,issuer
7474
basicConstraints=CA:FALSE
7575
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
@@ -87,4 +87,4 @@ openssl x509 -req -in $SERVER_CSR -CA $CA_CERT -CAkey $CA_KEY -CAcreateserial -o
8787
# Verify the server certificate
8888
openssl x509 -in $SERVER_CERT -text -noout | grep -A 1 "Subject Alternative Name"
8989

90-
echo "CA and server certificates generated successfully."
90+
echo "CA and server certificates generated successfully."

coderd/notifications/dispatch/smtp_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ import (
88
"sync"
99
"testing"
1010

11-
"cdr.dev/slog"
12-
"cdr.dev/slog/sloggers/slogtest"
13-
"github.com/coder/serpent"
1411
"github.com/emersion/go-sasl"
1512
"github.com/emersion/go-smtp"
1613
"github.com/google/uuid"
1714
"github.com/stretchr/testify/assert"
1815
"github.com/stretchr/testify/require"
1916
"go.uber.org/goleak"
2017

18+
"cdr.dev/slog"
19+
"cdr.dev/slog/sloggers/slogtest"
20+
"github.com/coder/serpent"
21+
2122
"github.com/coder/coder/v2/coderd/notifications/dispatch"
2223
"github.com/coder/coder/v2/coderd/notifications/types"
2324
"github.com/coder/coder/v2/codersdk"

pnpm-lock.yaml

Lines changed: 13 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)