Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix linter errors #288

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open

Conversation

tsengia
Copy link
Contributor

@tsengia tsengia commented Jan 14, 2025

This PR resolves a large chunk of the linter errors.

I've ignored/disabled a few linter rules that I think are either excessive or unable to resolve quickly.

Many of the linter errors were about resource ID's not being final and that they should not be used in switch statements, so I refactored the code to use if/else statements.

Some linter errors were about simple string formatting issues, which I've fixed.
Many linter errors were about String.format() defaulting to the user's locale, which is undesirable if the output is being fed into something such as an API/database/machine interface.

I understand that maybe you don't want these errors fixed, and that this PR may take a long time to review + test.

I also noticed that during testing, after the user creates a new profile, hitting the "OK" button on the "New Profile Created" dialog message did not close the message. I thought was confusing, so I've changed the code so that hitting the OK button on the "New Profile Created" popup now results in the intro fragment being "done" and taking the user to the main page.

Let me know your thoughts on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant