From c33821e71c8aed6983a8363fe5689e5463f0a84a Mon Sep 17 00:00:00 2001 From: M57 <41645758+Hy4ri@users.noreply.github.com> Date: Fri, 3 Jul 2026 23:22:19 +0300 Subject: [PATCH] feat: add .sourcery.yaml config for AI code review (#465) Excludes build/, .gradle/, generated sources, and Dependabot PRs. Tuned clone detection to reduce noise in Compose UI blocks. Co-authored-by: M57 --- .sourcery.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .sourcery.yaml diff --git a/.sourcery.yaml b/.sourcery.yaml new file mode 100644 index 00000000..27d78bbe --- /dev/null +++ b/.sourcery.yaml @@ -0,0 +1,33 @@ +# Sourcery configuration for Hermes Control +# https://docs.sourcery.ai/References/Legacy-Configuration/sourcery-yaml/ +# +# This file controls which files Sourcery analyzes, clone detection, +# metrics, and GitHub bot behaviour. + +ignore: + - .git + - .gradle/ + - .kotlin/ + - .idea/ + - .vscode/ + - build/ + - app/build/ + - '*.iml' + - '*.hprof' + - ktlint + +github: + labels: [] + ignore_labels: + - sourcery-ignore + - dependencies # Dependabot auto-PRs — skip AI review + request_review: author + sourcery_branch: sourcery/{base_branch} + +clone_detection: + min_lines: 5 # tuned above default 3 to reduce noise in Compose UI blocks + min_duplicates: 2 + identical_clones_only: false + +metrics: + quality_threshold: 25.0