Cleanup: strip trailing slashes without a regex (GitHubActionsSummary, TestRail, Xray)

オープン
#274 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Omartarek876 がすでに取り組んでいます。

2026年11月22日 から。

評価

この issue はまだ評価されていません。

説明

good first issue

Part of the cleanup cycle from #251. SonarCloud rule java:S8786 flags replaceAll("/+$", "") as a regex that can backtrack badly on input with many slashes. The input here is config, so this is not a real risk, but the fix is small and clears the warning.

Where (line numbers as of master 5ddc2a4):

  • src/main/java/com/seleniumboot/ci/GitHubActionsSummary.java: line 97
  • src/main/java/com/seleniumboot/testmanagement/TestRailClient.java: line 29
  • src/main/java/com/seleniumboot/testmanagement/XrayClient.java: line 61

Fix: strip trailing slashes without a regex, for example a small loop or while (s.endsWith("/")) s = s.substring(0, s.length() - 1);. Keep the exact behaviour: "http://x///" → "http://x", "target/" → "target".

Done when: the three spots no longer use the regex, a unit test covers multiple trailing slashes, and mvn test passes. #256 touches the TestRail / Xray files too, so rebase on master if it merges first.

主要言語
Java
スター
12
フォーク
6
平均マージ
8時間 58分
マージ済み PR(30日)
63

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

seleniumboot/selenium-boot のほかの issue

seleniumboot/selenium-boot の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。