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

optimize: check and warn byte in thrift idl #240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HeyJavaBean
Copy link
Member

Description

check and warn when there're 'byte' in thrift idl

Motivation and Context

'byte' is not recommended to use anymore.

Related Issue

@HeyJavaBean HeyJavaBean requested review from a team as code owners November 8, 2024 06:05
@HeyJavaBean HeyJavaBean enabled auto-merge (squash) November 8, 2024 06:10
@@ -145,11 +145,28 @@ func (c *checker) CheckStructLikes(t *parser.Thrift) (warns []string, err error)
warns = append(warns, fmt.Sprintf("non-positive ID %d of field %q in %q",
f.ID, f.Name, s.Name))
}
if containByteType(f.Type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

单独对list分开一个判断吧来提示 binary,不然说明太长,更没人看

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

Successfully merging this pull request may close these issues.

2 participants