我正在将SQ 7.3-alpha1与sonar-kotlin-plugin-1.0.1.965.jar一起使用.但是,我无法在Spring数据存储库的Kotlin代码中停用特殊警告,该方法需要在方法名称中添加"_". 我同时尝试了//NOSONAR和@Suppress("kotlin:S100")和@SuppressWarnings("kotlin:S100").任何提示表示赞赏.
I'm using SQ 7.3-alpha1 with sonar-kotlin-plugin-1.0.1.965.jar. However, I cannot deactivate a special warning inside my Kotlin code for repositories in Spring Data where I need an "_" in a method name. I tried both //NOSONAR and @Suppress("kotlin:S100") and @SuppressWarnings("kotlin:S100"). Any hint is appreciated.
推荐答案您无法停用该问题,因为您尝试使用的机制均未针对Kotlin实施.
You're not able to deactivate that issue because none of the mechanisms you're trying to use have been implemented for Kotlin.
相反,您必须从UI端执行此操作.
Instead, you'll have to do this from the UI side.
更多推荐
SonarQube:如何在Kotlin代码中禁止显示警告
发布评论