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

Chore/test empty string 2 #66

Merged
merged 34 commits into from
Oct 9, 2024
Merged

Chore/test empty string 2 #66

merged 34 commits into from
Oct 9, 2024

Conversation

0x4007
Copy link
Member

@0x4007 0x4007 commented Oct 8, 2024

Resolves #31

Currently matches any instance of "" but with regex can do more precise targeting (in the future if necessary) i.e. look for const or let in the same line to identify variable initializations, which is the primary suspect.

Will leave it looser targeting for now as an open experiment to take note of other specific scenarios to focus on later

ubiquity-os-deployer[bot]

This comment was marked as outdated.

@0x4007
Copy link
Member Author

0x4007 commented Oct 8, 2024

I got annotations working on the files view but I can't get the line targeting to be accurate.

@0x4007 0x4007 marked this pull request as ready for review October 9, 2024 00:01
@0x4007
Copy link
Member Author

0x4007 commented Oct 9, 2024

Currently matches any instance of "" but with regex can do more precise targeting (in the future if necessary) i.e. look for const or let in the same line to identify variable initializations, which is the primary suspect.

Will leave it looser targeting for now.

@0x4007 0x4007 merged commit 0deed0e into development Oct 9, 2024
6 of 7 checks passed
@gentlementlegen
Copy link
Member

@0x4007 It seems you merged this with empty strings: https://github.com/ubiquity/ts-template/actions/runs/11245674853/job/31266132517 could this be fixed?

@0x4007
Copy link
Member Author

0x4007 commented Oct 10, 2024

It's a warning not an error. This expresses that the reviewers should be cautious and review its context. It should never warn for the same string again because it is designed only to check the pull diff.

To be fair this probably would work by using \"\" but I think this is not a problem anymore to worry about.

@0x4007
Copy link
Member Author

0x4007 commented Oct 10, 2024

Also I just realized that it doesn't display annotations on GitHub mobile which is extremely unfortunate. At least the CI should clearly indicate a failure.

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.

Empty String "" Code Review Warning Annotation
2 participants