mirror of
https://github.com/Darkrock-Studios/hammer-editor.git
synced 2026-08-04 23:29:46 +00:00
45 lines
2 KiB
YAML
45 lines
2 KiB
YAML
---
|
|
# Codacy analysis configuration.
|
|
# Docs: https://docs.codacy.com/repositories-configure/codacy-configuration-file/
|
|
|
|
exclude_paths:
|
|
# Compose Preview / design-system sample code — repeated string literals, long
|
|
# functions, and many parameters are intentional and not production code.
|
|
- 'composeUi/src/desktopMain/kotlin/com/darkrockstudios/apps/hammer/common/preview/**'
|
|
- 'android/src/main/kotlin/com/darkrockstudios/apps/hammer/android/preview/**'
|
|
- 'android/src/debug/kotlin/com/darkrockstudios/apps/hammer/android/preview/**'
|
|
- '**/*.Preview.kt'
|
|
|
|
# Test code — Arrange/Act/Assert produces long methods by design, fixture
|
|
# passwords and repeated string literals are intentional, and complexity
|
|
# metrics don't carry the same meaning as in production code.
|
|
- '**/src/test/**'
|
|
- '**/src/commonTest/**'
|
|
- '**/src/jvmTest/**'
|
|
- '**/src/desktopTest/**'
|
|
- '**/src/androidTest/**'
|
|
- '**/src/iosTest/**'
|
|
|
|
# SQL test fixtures — historical schema snapshots and seed data, not authored
|
|
# SQL. T-SQL linter rules (set-nocount, schema-qualify, etc.) don't apply.
|
|
- 'server/src/test/resources/**/*.sql'
|
|
|
|
# Generated build output that occasionally ends up in analysis.
|
|
- '**/build/**'
|
|
- '**/generated/**'
|
|
|
|
# Stylelint is misconfigured upstream for these CSS files (flagging
|
|
# `scss_function-disallowed-list` as unknown rule). Re-enable once Codacy's
|
|
# Stylelint config is fixed.
|
|
- 'server/src/main/resources/assets/css/**'
|
|
|
|
engines:
|
|
# Lizard's language-agnostic complexity metrics (NLOC, CCN, parameter count)
|
|
# don't map well to Jetpack Compose widgets — long declarative UI functions
|
|
# and many composable parameters are idiomatic. detekt still enforces
|
|
# complexity on this code.
|
|
# NOTE: engine names must be lowercase (`lizard`, not `Lizard`) — an
|
|
# unrecognized engine key makes Codacy mis-handle the whole engines block.
|
|
lizard:
|
|
exclude_paths:
|
|
- 'android/src/main/kotlin/**/widgets/**'
|