File tree Expand file tree Collapse file tree 2 files changed +36
-5
lines changed Expand file tree Collapse file tree 2 files changed +36
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
2326deps :
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
5157proto : # # 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
8995lint-actions : $(ACTIONLINT )
You can’t perform that action at this time.
0 commit comments