mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Auto-format protobuf files
This patch runs clang-format on the protobuf files, and also adds a Makefile target for auto-formatting code (Go and protobuf) for convenience.
This commit is contained in:
4
.clang-format
Normal file
4
.clang-format
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
Language: Proto
|
||||||
|
BasedOnStyle: Google
|
||||||
|
IndentWidth: 8
|
||||||
|
UseTab: AlignWithSpaces
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,6 +6,7 @@
|
|||||||
# Exceptions to the rules above: files we care about that would otherwise be
|
# Exceptions to the rules above: files we care about that would otherwise be
|
||||||
# excluded.
|
# excluded.
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!.clang-format
|
||||||
!.github/
|
!.github/
|
||||||
|
|
||||||
# The binaries.
|
# The binaries.
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -55,6 +55,11 @@ install-config-skeleton:
|
|||||||
chown -v mail:mail /var/lib/chasquid ; \
|
chown -v mail:mail /var/lib/chasquid ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
go vet ./...
|
||||||
|
gofmt -s -w .
|
||||||
|
clang-format -i $(shell find . -iname '*.proto')
|
||||||
|
|
||||||
.PHONY: chasquid test \
|
.PHONY: chasquid test \
|
||||||
chasquid-util smtp-check mda-lmtp dovecot-auth-cli
|
chasquid-util smtp-check mda-lmtp dovecot-auth-cli \
|
||||||
|
fmt
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ message Config {
|
|||||||
|
|
||||||
// Addresses to listen on for submission-over-TLS (usually port 465).
|
// Addresses to listen on for submission-over-TLS (usually port 465).
|
||||||
// Default: "systemd", which means systemd passes sockets to us.
|
// Default: "systemd", which means systemd passes sockets to us.
|
||||||
// systemd sockets must be named with "FileDescriptorName=submission_tls".
|
// systemd sockets must be named with
|
||||||
|
// "FileDescriptorName=submission_tls".
|
||||||
repeated string submission_over_tls_address = 5;
|
repeated string submission_over_tls_address = 5;
|
||||||
|
|
||||||
// Address for the monitoring http server.
|
// Address for the monitoring http server.
|
||||||
@@ -37,9 +38,9 @@ message Config {
|
|||||||
string monitoring_address = 6;
|
string monitoring_address = 6;
|
||||||
|
|
||||||
// Mail delivery agent (MDA, also known as LDA) to use.
|
// Mail delivery agent (MDA, also known as LDA) to use.
|
||||||
// This should point to the binary to use to deliver email to local users.
|
// This should point to the binary to use to deliver email to local
|
||||||
// The content of the email will be passed via stdin.
|
// users. The content of the email will be passed via stdin. If it exits
|
||||||
// If it exits unsuccessfully, we assume the mail was not delivered.
|
// unsuccessfully, we assume the mail was not delivered.
|
||||||
// Default: "maildrop".
|
// Default: "maildrop".
|
||||||
string mail_delivery_agent_bin = 7;
|
string mail_delivery_agent_bin = 7;
|
||||||
|
|
||||||
|
|||||||
@@ -55,4 +55,3 @@ message Timestamp {
|
|||||||
// Non-negative fractions of a second at nanosecond resolution.
|
// Non-negative fractions of a second at nanosecond resolution.
|
||||||
int32 nanos = 2;
|
int32 nanos = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user