Skip to content

Commit

Permalink
把CodeStyle.md加进来
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao23333 committed Mar 31, 2021
1 parent ee6d49e commit f68bb2c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions CodeStyle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**缩进**
> 缩进采用Java官方推荐的4格缩进
**命名规则**
* 包名全部小写
* 类名、接口名采用大驼峰命名方式
* 方法名、变量名用小驼峰命名方式,成员变量以小写m开头,静态变量以小写s开头
* 静态常量用全部大写,单词之间以下划线划开的方式
* 变量名避开Java关键字

**每行最多字符数**
> 256
**函数最大行数**
> 128
**空行规则**
* 函数之间空1行

**注释规则**

**操作符前后空格
> 操作符前后空1格

0 comments on commit f68bb2c

Please sign in to comment.