standard::glowing_star:Ruby样式指南,带有linter和自动代码修复程序

时间:2021-04-29 21:33:21
【文件属性】:
文件名称:standard::glowing_star:Ruby样式指南,带有linter和自动代码修复程序
文件大小:64KB
文件格式:ZIP
更新时间:2021-04-29 21:33:21
Ruby 标准-Ruby样式指南,lint和格式化程序 这个宝石是的精神移植,旨在通过以下三种方式为您(和其他人!)节省时间: 没有配置。 在项目中实施一致样式的最简单方法。 放下它。 自动格式化代码。 只需运行standardrb --fix然后对凌乱或不一致的代码说再见。 尽早发现样式问题和程序员错误。 通过消除审阅者和贡献者之间的来回关系,节省宝贵的代码审阅时间。 没有任何决定。 它只是工作。 这是一个 关于它。 通过将其添加到您的Gemfile进行安装: gem "standard" , group : [ :development , :test ] 并运行bundle install 。 使用以下命令从命令行运行“标准”: $ bundle exec standardrb 而且,如果您愿意,Standard可以通过添加--fix标志来自动--fix代码。 St
【文件预览】:
standard-master
----bin()
--------console(343B)
--------setup(131B)
----.standard.yml(63B)
----config()
--------ruby-2.7.yml(95B)
--------ruby-2.2.yml(79B)
--------ruby-2.5.yml(106B)
--------ruby-1.8.yml(110B)
--------ruby-1.9.yml(63B)
--------base.yml(19KB)
--------ruby-2.3.yml(87B)
----docs()
--------RELEASE.md(2KB)
----Rakefile(270B)
----.github()
--------workflows()
----test()
--------fixture()
--------standardrb_test.rb(2KB)
--------test_helper.rb(1KB)
--------standard()
--------standard_test.rb(256B)
--------cop_invoker.rb(6KB)
----Gemfile(207B)
----Gemfile.lock(1KB)
----.gitignore(82B)
----CHANGELOG.md(10KB)
----standard.gemspec(847B)
----lib()
--------standard()
--------standard.rb(274B)
----README.md(16KB)
----LICENSE.txt(1KB)
----exe()
--------standardrb(115B)

网友评论