Skip to content

Conversation

sp-maintenance-course
Copy link

SonarCloud issues fixed for the samples/guice/src/main/webapp/login.jsp

Copy link
Member

@bdemers bdemers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @sp-maintenance-course !

The changes look good but can you tweak the commit and PR description to explain what and why this change was made?

Referencing SonarCloud doesn't help for folks how have never seen the report.

Maybe something like:

Updating sample HTML file to use best practices

Issues discovered via SonarCloud: https://link-if/possible
* Added HTML missing language
* Added page title
* Replaced deprecated HTML tags with css equivalent

(I'm guessing SonarCloud probably has some descriptions of the issues you could use too, my comment above are just guesses based on the commit)

(I have one other question inline)

Comment on lines -64 to +69
<th>Username</th>
<th>Password</th>
<th id="username">Username</th>
<th id="password">Password</th>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain this change? I'm guessing if id attributes are set they should probably be set on the actual inputs?

I don't have the context of why this change is suggested, by my assumption adding the id attr base it easier to drive test frameworks like Selenium (so a getById() can be used instead of a more complicated selector?)

@github-actions github-actions bot added the Stale label Jun 25, 2023
@github-actions github-actions bot closed this Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants