From dab6bbd656c800293eada511b1bfcaa96d71ea17 Mon Sep 17 00:00:00 2001 From: Vano Chkheidze Date: Mon, 23 Feb 2026 21:03:12 +0400 Subject: [PATCH] chore: add CODEOWNERS for auto-review requests + clang-tidy config (#35) chore: add CODEOWNERS + clang-tidy config --- .clang-tidy | 38 ++++++++++++++++++++++++++++++++++++++ .github/CODEOWNERS | 31 +++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .clang-tidy create mode 100644 .github/CODEOWNERS diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..d97c7f7 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,38 @@ +# =========================================================================== +# Clang-Tidy configuration for UltrafastSecp256k1 +# =========================================================================== +# Run: clang-tidy -p build cpu/src/*.cpp -- -std=c++20 +# =========================================================================== + +Checks: > + -*, + bugprone-*, + -bugprone-easily-swappable-parameters, + -bugprone-narrowing-conversions, + cert-*, + -cert-err58-cpp, + clang-analyzer-*, + cppcoreguidelines-init-variables, + cppcoreguidelines-pro-type-cstyle-cast, + misc-const-correctness, + misc-redundant-expression, + misc-unused-using-decls, + modernize-use-auto, + modernize-use-nullptr, + modernize-use-override, + performance-*, + -performance-no-int-to-ptr, + readability-braces-around-statements, + readability-const-return-type, + readability-redundant-string-cstr, + readability-simplify-boolean-expr + +WarningsAsErrors: '' + +HeaderFilterRegex: '(cpu|include)/.*\.(hpp|h)$' + +CheckOptions: + - key: readability-braces-around-statements.ShortStatementLines + value: '1' + - key: cppcoreguidelines-init-variables.IncludeStyle + value: 'llvm' diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..70b0a5f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,31 @@ +# CODEOWNERS — defines code review ownership +# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners +# +# These owners are automatically requested for review on pull requests +# that modify the matched files. + +# Default owner for everything +* @shrec + +# Core cryptographic code — requires careful review +/cpu/src/ @shrec +/cpu/include/ @shrec + +# GPU backends +/cuda/ @shrec +/opencl/ @shrec +/metal/ @shrec + +# Security-sensitive files +/SECURITY.md @shrec +/THREAT_MODEL.md @shrec + +# CI/CD workflows +/.github/ @shrec + +# Packaging +/packaging/ @shrec + +# Bindings (C ABI, Java, Python, etc.) +/bindings/ @shrec +/include/ufsecp/ @shrec