(level: string)
| 1 | export function getTransformationLevelDescription(level: string): string { |
| 2 | switch (level) { |
| 3 | case 'low': |
| 4 | return '轻微混乱 - 代码仍然可以理解,但增加了一些不必要的复杂性'; |
| 5 | case 'medium': |
| 6 | return '适度混乱 - 代码变得明显难以理解,但结构仍然可以辨认'; |
| 7 | case 'high': |
| 8 | return '严重混乱 - 代码非常难以理解,结构被严重扭曲'; |
| 9 | case 'extreme': |
| 10 | return '极端混乱 - 代码几乎不可能理解,使用了所有可能的混淆技术'; |
| 11 | default: |
| 12 | return '适度混乱 - 代码变得明显难以理解,但结构仍然可以辨认'; |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | export function getVariableNamingTechniques(style: string): string { |
| 17 | switch (style) { |
no outgoing calls
no test coverage detected