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

Warn on names that don't follow convention #3

Open
jminer opened this issue Sep 17, 2015 · 0 comments
Open

Warn on names that don't follow convention #3

jminer opened this issue Sep 17, 2015 · 0 comments

Comments

@jminer
Copy link
Owner

jminer commented Sep 17, 2015

When parsing an IDL file, warn when a protocol/record/field name does not follow convention. There could be a annotation/property that changes what the naming convention should be, say @recordNaming("PascalCase") or @recordFieldNaming("snake_case") or @enumSymbolNaming("SCREAMING_SNAKE_CASE").

This warning would kind of be a nice usecase for an AST, so that the warning could be emitted after parsing, yet the line number still be reported. But I don't think it is enough reason to add an AST, so I'll just add the warning to the parser.

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

No branches or pull requests

1 participant