文件名称:rstrip:ruby可执行文件,用于删除当前项目目录中文件的尾随空格
文件大小:7KB
文件格式:ZIP
更新时间:2024-06-10 10:58:24
Ruby
介绍 rstrip提供了一个ruby可执行文件,该文件可删除当前项目目录中的尾随空白。 它还会删除文件末尾的空行。 它可以在将要操作的文件类型上进行配置。 用法 安装gem: gem install rstrip 在您的项目文件夹中,运行rstrip config generate ,或运行rstrip config generate --global true以在您的主目录中生成配置文件 修改.rstrip配置文件中的文件扩展名列表 在您的项目文件夹中运行rstrip process 检查更改并提交代码 备择方案 有很多方法可以做类似的事情: textmate捆绑包 textmate marco bash 使用git prehook 我以前使用过同伴马可。 textmate bundle或marco的问题在于,它们仅在您编辑和保存文件后才修改文件,这使得提交变得更难
【文件预览】:
rstrip-master
----bin()
--------rstrip(59B)
----rstrip.gemspec(993B)
----Rakefile(51B)
----feature()
--------support()
--------config.feature(2KB)
----Gemfile(129B)
----spec()
--------rstrip_spec.rb(911B)
----.gitignore(47B)
----lib()
--------rstrip()
--------rstrip.rb(44B)
----README.md(2KB)