summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/detekt/detekt.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml
index 3d282f5..7d8a663 100644
--- a/config/detekt/detekt.yml
+++ b/config/detekt/detekt.yml
@@ -3,6 +3,10 @@
# upgrading detekt pulls in sane new defaults automatically instead of us silently diverging.
style:
+ MagicNumber:
+ ignorePropertyDeclaration: true # assigning a literal to a named property IS the fix this
+ # rule asks for -- `private val SPEEDS = listOf(1.0f, 1.25f, ...)` is named data, and
+ # exploding each element into its own constant would make it less readable, not more.
ReturnCount:
max: 5 # the feed parser is guard-clause heavy on purpose -- an enclosure with no URL, no
# type, or a non-playable type each bail out early. Forcing those into nested conditionals