GoogleCloudPlatform / GoogleCloudPlatform/java-docs-samples

security-command-center: samples contain many Spotbugs errors

オープン
#9,546 コメント 0 件 リアクション 0 件 担当者 1 名 @vijaykanthm に割り当て済み GitHub で見る
priority: p2 samples triage me type: bug
主要言語
Java
スター
1.9k
フォーク
2.9k
平均マージ
3日 3時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。