commit d4e8b620bb665bbe2daad219d12540500d86a54b parent f2468f844a3a11e60ac024f4034a3a6f6f159f93 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Jun 4 21:15:19 +0100 Add make lint rule Diffstat:
rules.mk | | | 14 | ++++++++++++++ |
diff --git a/rules.mk b/rules.mk @@ -33,4 +33,18 @@ $(MODULES): %.so: $(COMMON_OBJS) clean: rm -f $(BINS) $(MODULES) *.o *.so $(STB_CCS) $* opengl*.cc opengl*.h +lint: + oclint \ + -disable-rule=ShortVariableName \ + -disable-rule=LongLine \ + -disable-rule=TooFewBranchesInSwitchStatement \ + -disable-rule=LongMethod \ + -disable-rule=UnusedMethodParameter \ + -disable-rule=UnusedLocalVariable \ + -disable-rule=UselessParentheses \ + -disable-rule=ParameterReassignment \ + -rc LONG_LINE=150 \ + -rc LONG_VARIABLE_NAME=50 \ + *.cc -- $(CXXFLAGS) + -include .deps/*.d