1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-01 22:09:57 +02:00

Fix lint target (#360)

This commit is contained in:
ferhat elmas 2019-11-28 08:20:34 +01:00 committed by Joshua MacDonald
parent 921ea03c0d
commit f25c84f35f
2 changed files with 3 additions and 2 deletions

View File

@ -87,7 +87,8 @@ lint: $(TOOLS_DIR)/golangci-lint $(TOOLS_DIR)/misspell $(TOOLS_DIR)/stringer
set -e; for dir in $(ALL_GO_MOD_DIRS); do \
echo "golangci-lint in $${dir}"; \
(cd "$${dir}" && \
$(abspath $(TOOLS_DIR))/golangci-lint run --fix); \
$(abspath $(TOOLS_DIR))/golangci-lint run --fix && \
$(abspath $(TOOLS_DIR))/golangci-lint run); \
done
$(TOOLS_DIR)/misspell -w $(ALL_DOCS)
set -e; for dir in $(ALL_GO_MOD_DIRS); do \

View File

@ -73,4 +73,4 @@ func (NoopSpan) AddEventWithTimestamp(ctx context.Context, timestamp time.Time,
// SetName does nothing.
func (NoopSpan) SetName(name string) {
}
}