mirror of
https://github.com/lightninglabs/loop
synced 2024-11-04 06:00:21 +00:00
4baf88c414
This commit fixes outstanding linter issues, that we're not found by running `make lint` locally. The linter issues were found by running `docker run -v $(pwd):/build loop-tools golangci-lint run --whole-files` I added the `revive` to the excludes as it would be to much of a refactor and IMO seems unneccesary. E.g. `interface.go:222:6: exported: type name will be used as loop.LoopInTerms by other packages, and that stutters; consider calling this InTerms (revive)`. I think `loop.LoopInTerms` is fine.
17 lines
447 B
Docker
17 lines
447 B
Docker
FROM golang:1.18
|
|
|
|
RUN apt-get update && apt-get install -y git
|
|
ENV GOCACHE=/tmp/build/.cache
|
|
ENV GOMODCACHE=/tmp/build/.modcache
|
|
|
|
COPY . /tmp/tools
|
|
|
|
RUN cd /tmp \
|
|
&& mkdir -p /tmp/build/.cache \
|
|
&& mkdir -p /tmp/build/.modcache \
|
|
&& cd /tmp/tools \
|
|
&& go install -trimpath -tags=tools github.com/golangci/golangci-lint/cmd/golangci-lint \
|
|
&& chmod -R 777 /tmp/build/ \
|
|
&& git config --global --add safe.directory /build
|
|
|
|
WORKDIR /build |