From cef7368b3cbb2ee2b438b0246c9655222c5798c4 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 9 Apr 2019 00:57:17 -0400 Subject: [PATCH] disable unusable readability-magic-numbers lint This wouldn't be worth using even if it had a whole bunch of heuristics like ignoring expressions in static_assert, ignoring repeated patterns like assigning different things to sequential array indexes, etc. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 445f65f..bf7d341 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ endif CFLAGS := -std=c11 $(SHARED_FLAGS) -Wmissing-prototypes CXXFLAGS := $(call safe_flag,-std=c++17,-std=c++14) $(SHARED_FLAGS) LDFLAGS := -Wl,--as-needed,-z,defs,-z,relro,-z,now,-z,nodlopen,-z,text -TIDY_CHECKS := -checks=bugprone-*,-bugprone-macro-parentheses,cert-*,clang-analyzer-*,readability-*,-readability-inconsistent-declaration-parameter-name,-readability-named-parameter,-bugprone-too-small-loop-variable +TIDY_CHECKS := -checks=bugprone-*,-bugprone-macro-parentheses,cert-*,clang-analyzer-*,readability-*,-readability-inconsistent-declaration-parameter-name,-readability-magic-numbers,-readability-named-parameter,-bugprone-too-small-loop-variable SOURCES := chacha.c h_malloc.c memory.c pages.c random.c util.c OBJECTS := $(SOURCES:.c=.o)