SonarLint Eclipse扩展将位于包src/company/projects/web…中的Java文件视为测试文件。

huangapple 未分类评论46阅读模式
英文:

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?

huangapple
  • 本文由 发表于 2020年4月9日 22:23:57
  • 转载请务必保留本文链接:https://java.coder-hub.com/61123416.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定