Skip to content

Commit

Permalink
feat: add go fmt to make fmt command (cosmos#1178)
Browse files Browse the repository at this point in the history
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 
-->

Closes cosmos#223 

Instead of adding a formatted to the CI, which would introduce a diff
that would need to be committed, I extended the `make fmt` command.
  • Loading branch information
MSevey authored Sep 13, 2023
1 parent 4524ef3 commit 96848dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ lint: vet

.PHONY: lint

## fmt: Run fixes for linters. Currently only markdownlint.
## fmt: Run fixes for linters.
fmt:
@echo "--> Formatting markdownlint"
@markdownlint --config .markdownlint.yaml '**/*.md' -f
@echo "--> Formatting go"
@golangci-lint run --fix
.PHONY: fmt

## vet: Run go vet
Expand Down

0 comments on commit 96848dc

Please sign in to comment.