# Light clang-tidy profile for Fx2D — bugprone / performance / analyzer only.
# Readability and modernize are intentionally off to keep noise low on a
# physics codebase that mixes Eigen, YAML and a raylib renderer.
Checks: >
  -*,
  bugprone-*,
  -bugprone-easily-swappable-parameters,
  -bugprone-narrowing-conversions,
  -bugprone-reserved-identifier,
  -bugprone-branch-clone,
  clang-analyzer-*,
  -clang-analyzer-optin.*,
  performance-*,
  -performance-avoid-endl,
  -performance-enum-size,
  -performance-unnecessary-value-param

WarningsAsErrors: ''
# Anchored on the project directory: Eigen lays itself out as Eigen/src/..., which an
# unanchored 'src/.*' matches, burying our own findings under third-party noise.
HeaderFilterRegex: '.*/Fx2D/(include|src|tests|examples|scripts)/.*'
FormatStyle: none
UseColor: true

CheckOptions:
  - key: bugprone-unused-return-value.CheckedFunctions
    value: '::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty'
  - key: performance-for-range-copy.WarnOnAllAutoCopies
    value: 'true'
