Skip to content

Commit

Permalink
[Makefile] refs fibercrypto#38 Refactor tags make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Dec 6, 2019
1 parent e7c5757 commit 815de5a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,24 @@ docs-libc: ## Generate libskycoin documentation

docs: docs-libc docs-skyapi docs-skyhwd ## Generate documentation for all libraries

lint: ## Run linters. Use make install-linters first.
lint-linux: ## Run linters. Use make install-linters first.
vendorcheck ./...
# lib/cgo needs separate linting rules
golangci-lint run -c .golangci.libcgo.yml ./lib/cgo/...
# The govet version in golangci-lint is out of date and has spurious warnings, run it separately
go vet -all ./...

lint-osx: ## Run linters. Use make install-linters first.
vendorcheck ./...
# lib/cgo needs separate linting rules
golangci-lint run -c .golangci.libcgo.yml ./lib/cgo/...
# The govet version in golangci-lint is out of date and has spurious warnings, run it separately
go vet -all ./...

lint-win:

lint: lint-$(OSNAME)

lint-libc: format-libc
# Linter LIBC
clang-tidy lib/cgo/tests/*.c -- $(LIBC_FLAGS) -Wincompatible-pointer-types
Expand Down Expand Up @@ -218,12 +229,6 @@ install-deps-skyapi-win:
mkdir -p C:/program
choco uninstall curl
choco install curl --version=7.58.0
# mkdir -p deps
# cd deps && wget http://curl.haxx.se/download/curl-7.58.0.tar.gz
# cd deps && tar -xf curl-7.58.0.tar.gz
# cd deps/curl-7.58.0/ && mkdir build && cd build && cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..
# cd deps/curl-7.58.0/ && make
# cd deps/curl-7.58.0/ && sudo make install

install-deps-libc: install-deps-libc-$(OSNAME) ## Install deps for libc

Expand Down

0 comments on commit 815de5a

Please sign in to comment.