Skip to content

Commit

Permalink
add lint
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <jinhao.hu@pingcap.com>
  • Loading branch information
HuSharp committed Jul 23, 2024
1 parent cdd7c9e commit ac327bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ check-setup:tools/bin/revive
precheck: fmt bazel_prepare

.PHONY: check
check: check-bazel-prepare parser_yacc check-parallel lint tidy testSuite errdoc license
check: check-bazel-prepare parser_yacc parser_genkeywords check-parallel lint tidy testSuite errdoc license

.PHONY: fmt
fmt:
Expand Down Expand Up @@ -129,7 +129,7 @@ test_part_1: checklist integrationtest
test_part_2: test_part_parser ut gogenerate br_unit_test dumpling_unit_test

.PHONY: test_part_parser
test_part_parser: parser_yacc test_part_parser_dev
test_part_parser: parser_yacc parser_genkeywords test_part_parser_dev

.PHONY: test_part_parser_dev
test_part_parser_dev: parser_fmt parser_unit_test
Expand All @@ -142,6 +142,10 @@ parser:
parser_yacc:
@cd pkg/parser && mv parser.go parser.go.committed && make parser && diff -u parser.go.committed parser.go && rm parser.go.committed

.PHONY: parser_genkeywords
parser_genkeywords:
@cd pkg/parser && mv keywords.go keywords.go.committed && make generate && diff -u keywords.go.committed keywords.go && rm keywords.go.committed

.PHONY: parser_fmt
parser_fmt:
@cd pkg/parser && make fmt
Expand Down
1 change: 1 addition & 0 deletions pkg/parser/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ var Keywords = []KeywordsType{
{"VALIDATION", false, "unreserved"},
{"VALUE", false, "unreserved"},
{"VARIABLES", false, "unreserved"},
{"VECTOR", false, "unreserved"},
{"VIEW", false, "unreserved"},
{"VISIBLE", false, "unreserved"},
{"WAIT", false, "unreserved"},
Expand Down

0 comments on commit ac327bb

Please sign in to comment.