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

Aperta
#274 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Omartarek876 ci sta già lavorando.

Dal 22/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Java
Stelle
12
Fork
6
Merge medio
8h 58m
PR unite (30g)
63

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di seleniumboot/selenium-boot

Tutte le issue di seleniumboot/selenium-boot

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.