GoogleCloudPlatform / GoogleCloudPlatform/java-docs-samples

security-command-center: samples contain many Spotbugs errors

未关闭
#9,546 0 条评论 0 个 reaction 已指派 1 人 已指派给 @vijaykanthm 在 GitHub 查看
priority: p2 samples triage me type: bug
主要语言
Java
星标
1.9k
派生
2.9k
平均合并
3 天 3 小时
30 天内合并 PR
17

描述

## In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/security-command-center/snippets

## Did you change the file? If so, how?

no

## Describe the issue

[`SAMPLE_FORMAT.md`](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md) says the following:

> To run the Checkstyle, ErrorProne and SpotBugs plugins on an existing sample, run
>
> ```
> mvn clean verify -DskipTests -P lint
> ```

However, when I run that command in the `security-command-center/snippets` directory, it fails with 67 "bugs" (errors, really). I expected everything to pass at `HEAD`.

I didn't check any other directories, so this issue might exist elsewhere.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。