Skip to content

Commit

Permalink
Update MagicNumber rule to exclude .kts files
Browse files Browse the repository at this point in the history
The MagicNumber rule should not be enforced in script files,
because you cannot have constants in these files.

Closes #4863
  • Loading branch information
schalkms committed May 31, 2022
1 parent d958fbf commit 05b12e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detekt-core/src/main/resources/default-detekt-config.yml
Expand Up @@ -543,7 +543,7 @@ style:
maxJumpCount: 1
MagicNumber:
active: true
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**', '**/*.kts']
ignoreNumbers:
- '-1'
- '0'
Expand Down

0 comments on commit 05b12e5

Please sign in to comment.