We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前在 core 的代码中,变量名基本都遵循了小驼峰规则,常量在这一块相对比较混乱,
比如 enum 有大驼峰命名:
enum
export enum ArtusInjectEnum { Application = 'artus#application', Config = 'artus#config', DefaultContainerName = 'artus#default_container', Frameworks = 'artus#framework-config', LifecycleManager = 'artus#lifecycle-manager', Logger = 'artus#logger', Packages = 'artus#packages', Trigger = 'artus#trigger', }
有下划线大写命名:
export enum ARTUS_DEFAULT_CONFIG_ENV { DEV = 'development', PROD = 'production', DEFAULT = 'default', }
对于常量字符串则相对统一,都是下划线大写规则:
export const ARTUS_EXCEPTION_DEFAULT_LOCALE = 'en';
这里需要在 spec 中补充一份变成风格指南,约束:
以上元素的命令基本风格,以便后续实现的风格统一。
The text was updated successfully, but these errors were encountered:
cc @noahziheng @DuanPengfei @atian25 @JerrysShan
Sorry, something went wrong.
hyj1991
No branches or pull requests
目前在 core 的代码中,变量名基本都遵循了小驼峰规则,常量在这一块相对比较混乱,
比如
enum
有大驼峰命名:有下划线大写命名:
对于常量字符串则相对统一,都是下划线大写规则:
这里需要在 spec 中补充一份变成风格指南,约束:
以上元素的命令基本风格,以便后续实现的风格统一。
The text was updated successfully, but these errors were encountered: