Skip to content

Commit 41d8fc1

Browse files
committed
Add lint fix command to readme
1 parent d59c679 commit 41d8fc1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ go run cmd/api/serve.go
2626

2727
Running the API has a lot of pre-requisites.
2828

29-
To run the API, you will need to have a working Postgres, Redis and Storage. There is a dev composefile that you can start via:
29+
To run the API, you will need to have a working Postgres, Redis and Storage. There is a dev composefile that you can
30+
start via:
31+
3032
```bash
3133
docker-compose -f docker-compose.dev.yml up -d
3234
```
@@ -53,4 +55,10 @@ Before contributing, please run the [linter](https://golangci-lint.run/) to ensu
5355

5456
```bash
5557
golangci-lint run
58+
```
59+
60+
For some simple formatting issues you can use the `--fix` flag, but for more complex issues you will need to fix the code:
61+
62+
```bash
63+
golangci-lint run --fix
5664
```

0 commit comments

Comments
 (0)