Revision d64b28331ca2c1db7b12b904a73cd4358181aaba authored by Bob Carpenter on 24 June 2018, 21:55:20 UTC, committed by Bob Carpenter on 24 June 2018, 21:55:20 UTC
1 parent 50c8586
cpplint
PYTHON2 ?= python
# Check version because new distros have python to default to Python3
PYTHON_VERSION := $(shell $(PYTHON2) -c "print(__import__('sys').version.split(' ' )[0].split('.')[0])")
ifeq ($(PYTHON_VERSION),)
$(warning Python2 required by cpplint, but PYTHON2=$(PYTHON2) not found. See 'make help')
endif
ifeq ($(PYTHON_VERSION),3)
$(warning Python2 required by cpplint, but PYTHON2=$(PYTHON2) is Python3. See 'make help')
endif
.PHONY: cpplint
cpplint:
@$(PYTHON2) $(CPPLINT)/cpplint.py --output=vs7 --counting=detailed --root=src --extension=hpp,cpp --filter=-runtime/indentation_namespace,-readability/namespace,-legal/copyright,-whitespace/indent,-runtime/reference $(shell find src/stan -name '*.hpp' -o -name '*.cpp')
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...