://github.com/JusterZhu/wemail 微软官方编码规范:https://docs.microsoft.com/zh-cn/dotnet/csharp/fundamentals/coding-style
self.avg_pool(x))) return x * self.act(fc_out) class SpatialAttentionModule(nn.Module): ##update:coding-style
3.3 rules:强约束工程规范,防止模型乱跑 rules 目录给了你一套“永远要遵守的底线”: security:禁止硬编码密钥等 coding-style:不可变性、文件组织 testing:TDD
yarn add @luozhu/eslint-config-typescript @luozhu/prettier-config prettier -D 「具体配置:」 配置涉及文件较多,请参考 coding-style hello world: https://is.gd/IaJdlW [5] youngjuning/luozhu: https://github.com/youngjuning/luozhu [6] coding-style
基于下面链接简化了大部分,因为有一些编码风格能从 Java 自然的切换过来,而且我们也可以使用相应的工具来检查我们的代码,更多可以看这里:https://ruby-china.org/wiki/coding-style