Skip to content

Commit 431ed50

Browse files
committed
chore(make): Uses common actiosn
Signed-off-by: Kemal Akkoyun <[email protected]>
1 parent a28ea0c commit 431ed50

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

.yamllint

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
extends: default
3+
ignore: |
4+
**/node_modules
5+
6+
rules:
7+
braces:
8+
max-spaces-inside: 1
9+
level: error
10+
brackets:
11+
max-spaces-inside: 1
12+
level: error
13+
commas: disable
14+
comments: disable
15+
comments-indentation: disable
16+
document-start: disable
17+
indentation:
18+
spaces: consistent
19+
indent-sequences: consistent
20+
key-duplicates:
21+
ignore: |
22+
config/testdata/section_key_dup.bad.yml
23+
line-length: disable
24+
truthy:
25+
check-keys: false

Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ BUF_VERSION ?= v1.39.0
1919
$(BUF):
2020
go install github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION)
2121

22+
.DEFAULT_GOAL := default
23+
default: precheck style check_license format lint unused test
24+
2225
.PHONY: deps
2326
deps:
2427
$(MAKE) common-deps
@@ -45,7 +48,10 @@ generate-go-collector-test-files:
4548
go mod tidy
4649

4750
.PHONY: fmt
48-
fmt: common-format
51+
fmt: common-format format-yaml fix-crlf
52+
53+
.PHONY: format
54+
format: fmt
4955

5056
.PHONY: proto
5157
proto: ## Regenerate Go from remote write proto.
@@ -80,10 +86,10 @@ format-yaml: $(YAMLFMT)
8086
@echo ">> formatting YAML files"
8187
$(YAMLFMT) -dstar '**/*.yml' '**/*.yaml'
8288

83-
.PHONY: lint-yaml
84-
lint-yaml: $(YAMLFMT)
85-
@echo ">> linting YAML files"
86-
$(YAMLFMT) -lint -dstar '**/*.yml' '**/*.yaml'
89+
.PHONY: lint
90+
lint: common-lint common-yamllint common-lint-fix lint-actions
91+
92+
lint-yaml: common-yamllint
8793

8894
.PHONY: lint-actions
8995
lint-actions: $(ACTIONLINT)

0 commit comments

Comments
 (0)