Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

refactor: make enum naming consistent #123

Merged
merged 3 commits into from
Jul 8, 2019

Conversation

monitz87
Copy link
Contributor

@monitz87 monitz87 commented Jul 5, 2019

This PR renames some enums and their properties to be more consistent (following https://basarat.gitbooks.io/typescript/docs/styleguide/styleguide.html#enum):

  • Makes all enum names singular (i.e. PolymathContracts to PolymathContract)
  • Makes all enum properties use PascalCase (i.e. PolymathContract.polyToken to PolymathContract.PolyToken)
  • Adapts all internal code using these enums to the aforementioned changes

BREAKING CHANGE: change `ModuleName` enum to `ModuleNames` and make all the enum members in both that one and `PolymathContracts` start with a capital letter
@monitz87 monitz87 requested a review from shuffledex July 5, 2019 20:28
Copy link
Contributor

@onigiri-x onigiri-x left a comment

Choose a reason for hiding this comment

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

This refactor looks good. This addresses the cases in Enumerables in the project, which before hand did not seem to have a naming standard. Have viewed 23 files of changes, all looks normal in my review.

…t-wrappers into refactor/change-module-name-enum
@monitz87 monitz87 merged commit c24db3f into develop Jul 8, 2019
@shivamagl95
Copy link
Contributor

🎉 This PR is included in version 1.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@shuffledex shuffledex deleted the refactor/change-module-name-enum branch August 1, 2019 17:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants