提交 7bbc1763 编写于 作者: K kohsuke

improving the filtering rules

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11293 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c3790ef9
<FindBugsFilter> <FindBugsFilter>
<Match> <Match>
<!-- It's hard to imagine a scenario where Hudson is granted higher privilege but called by a lower privileged client. --> <Or>
<Bug pattern="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED" /> <!-- It's hard to imagine a scenario where Hudson is granted higher privilege but called by a lower privileged client. -->
<Bug pattern="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED" />
<!-- exposing internal data structure via array is considered OK in Hudson. Hudson really doesn't try to defend against the malicious code -->
<Bug pattern="EI_EXPOSE_REP" />
<Bug pattern="EI_EXPOSE_REP2" />
<!-- FindBugs detect false positives. -->
<Bug pattern="SBSC_USE_STRINGBUFFER_CONCATENATION" />
</Or>
</Match> </Match>
<Match> <Match>
...@@ -22,8 +31,16 @@ ...@@ -22,8 +31,16 @@
</Match> </Match>
<Match> <Match>
<!-- these classes are not meant to be serializable --> <!-- this use of mutable static field is necessary to propagate a value inside Maven. -->
<Class name="hudson.maven.MavenBuilder" />
<Bug pattern="MS_CANNOT_BE_FINAL" />
</Match>
<Match>
<!-- this class is not serialized -->
<Or> <Or>
<Class name="hudson.maven.MavenProbeAction" />
<Class name="hudson.maven.SplittableBuildListener" />
<Class name="hudson.maven.MavenBuild$ProxyImpl" /> <Class name="hudson.maven.MavenBuild$ProxyImpl" />
<Class name="hudson.maven.MavenBuild$ProxyImpl2" /> <Class name="hudson.maven.MavenBuild$ProxyImpl2" />
</Or> </Or>
...@@ -31,21 +48,20 @@ ...@@ -31,21 +48,20 @@
</Match> </Match>
<Match> <Match>
<!-- this use of mutable static field is necessary to propagate a value inside Maven. --> <!-- FindBugs fail to take the writeObject method into account. -->
<Class name="hudson.maven.MavenBuilder" /> <Class name="hudson.maven.MavenProcessFactory$Connection" />
<Bug pattern="MS_CANNOT_BE_FINAL" /> <Bug code="SE" />
</Match> </Match>
<Match> <Match>
<!-- this class is not really serialized --> <Class name="hudson.util.ProcessTreeKiller$Unix$UnixSystem" />
<Class name="hudson.maven.MavenProbeAction" /> <Bug pattern="DMI_HARDCODED_ABSOLUTE_FILENAME" />
<Bug code="SE" />
</Match> </Match>
<Match> <Match>
<!-- FindBugs fail to take the writeObject method into account. --> <!-- Can't change this for backward compatibility -->
<Class name="hudson.maven.MavenProcessFactory$Connection" /> <Class name="hudson.tasks.BuildWrapper$Environment" />
<Bug code="SE" /> <Bug pattern="SIC_INNER_SHOULD_BE_STATIC" />
</Match> </Match>
</FindBugsFilter> </FindBugsFilter>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册