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

[Linter] 'loop' without exit #16875

Merged
merged 6 commits into from
Sep 12, 2024

Conversation

tx-tomcat
Copy link
Contributor

@tx-tomcat tx-tomcat commented Mar 26, 2024

Description

  • Gives a suspicious lint for loop without break or return.
  • Does not currently consider if that break or return is reachable

Test plan

  • New tests

Release notes

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI: Move lint will now warn against loops without break or return
  • Rust SDK:

Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 8:49pm
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 8:49pm
sui-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 8:49pm
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 8:49pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 8:49pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 8:49pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2024 8:49pm

Copy link

vercel bot commented May 31, 2024

@tx-tomcat is attempting to deploy a commit to the Mysten Labs Team on Vercel.

A member of the Team first needs to authorize it.

@tnowacki tnowacki changed the title [Linter] Empty loop [Linter] 'loop' without exit Sep 12, 2024
@tnowacki tnowacki enabled auto-merge (squash) September 12, 2024 20:50
@tnowacki tnowacki merged commit ba035ce into MystenLabs:main Sep 12, 2024
47 of 48 checks passed
suiwombat pushed a commit that referenced this pull request Sep 16, 2024
# Description

- Gives a suspicious lint for loop without break or return.
- Does not currently consider if that break or return is reachable 

## Test plan

- New tests

## Release notes

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [X] CLI: Move lint will now warn against `loop`s without `break` or
`return`
- [ ] Rust SDK:

---------

Co-authored-by: jamedzung <[email protected]>
Co-authored-by: Todd Nowacki <[email protected]>
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.

3 participants