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

Rule S4022: Enums storage should be Int32 #356

Closed
valhristov opened this issue May 23, 2017 · 0 comments
Closed

Rule S4022: Enums storage should be Int32 #356

valhristov opened this issue May 23, 2017 · 0 comments
Assignees
Labels
Type: New Feature This hasn't been here before.
Milestone

Comments

@valhristov
Copy link
Contributor

RSPEC-4022

By default the storage type of an enum is Int32, in most cases it is not necessary to change this. In particular you will not achieve any performance gain by using a smaller data type (e.g. Byte) and may limit future uses.

@valhristov valhristov added Area: Rules Type: New Feature This hasn't been here before. labels May 23, 2017
@fmallet fmallet added this to the 5.12 milestone May 23, 2017
@michalb-sonar michalb-sonar self-assigned this May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature This hasn't been here before.
Projects
None yet
Development

No branches or pull requests

3 participants