Skip to content

Commit

Permalink
Merge pull request #10 from RedisBloom/linter.on.tests
Browse files Browse the repository at this point in the history
Apllying format and linter on tests folder
  • Loading branch information
filipecosta90 committed Feb 28, 2021
2 parents 0ab3871 + 4da20f9 commit b95727e
Show file tree
Hide file tree
Showing 3 changed files with 276 additions and 329 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ INFER?=./deps/infer
INFER_DOCKER?=redisbench/infer-linux64:1.0.0
ROOT=$(shell pwd)
SRCDIR := $(ROOT)/src
TESTDIR := $(ROOT)/tests


ifndef CMAKE_LIBRARY_SHARED_OPTIONS
Expand Down Expand Up @@ -101,10 +102,14 @@ coverage:
format:
clang-format -style=file -i $(SRCDIR)/*.c
clang-format -style=file -i $(SRCDIR)/*.h
clang-format -style=file -i $(TESTDIR)/*.c
clang-format -style=file -i $(TESTDIR)/*.h

lint:
clang-format -style=file -Werror -n $(SRCDIR)/*.c
clang-format -style=file -Werror -n $(SRCDIR)/*.h
clang-format -style=file -Werror -n $(TESTDIR)/*.c
clang-format -style=file -Werror -n $(TESTDIR)/*.h

# build all
full:
Expand Down
Loading

0 comments on commit b95727e

Please sign in to comment.