英文:
SonarLint Eclipse Extension treats Java files in package src/company/projects/web... as test
问题
我今天从Eclipse Workshop安装了SonarLint插件。
不幸的是,它在我的Java文件中未找到任何问题。
经过一番搜索,我最终找到了控制台输出,大约有1000个文件,内容如下:
文件'src/company/project/web/domain/GenericTemplateRow.java'被'JavaProjectConfiguratorExtension'标识为测试文件。
我所能找到的关于此的信息是,不在src/main
包中的文件被视为测试文件...
是否有任何方法可以更改此规则?
英文:
I did install the SonarLint Plugin from Eclipse Workshop today.
Unfortunately it does not find any Issues for my Java files.
After digging around I finally found the Console output which says this for like 1000 Files:
File 'src/company/project/web/domain/GenericTemplateRow.java' qualified as test by 'JavaProjectConfiguratorExtension'
All I could find about this was that files which are not in the package src/main
are treated as test files...
Is there any way to change this rule?
专注分享java语言的经验与见解,让所有开发者获益!
评论