Giter Club home page Giter Club logo

ioscodechecker-1's Introduction

IosCodeChecker(beta)

IOS 代码校验,一键完善,只需要执行一次命令文件就可以给IOS项目部署代码校验工具

依赖于git hooks 每次代码 commit 的时候进行代码强制校验。

要求:git工程、OC代码

提取项目中得setup.command文件放置到工程的根目录,执行命令 并根据提示操作

command文件执行无权限 终端 cd到当前目录 执行 chmod +x setup.command

Would you like to use the code check 选中 no 为卸载操作,当不需要代码校验的时候执行此操作

已实现:

1.更完善的代码校验

2.更方便的项目使用

3.更合理的代码提示和 代码不规范处提示。

还需实现:

1.命令大小写不区分

2.命令退出全部校验

3.代码备份,防止误修改

现提供两种代码规范提示模式:list 模式 / window 模式

list模式每次commit会自动文档显示代码纠正点,开发查看后可以自行修改 或者使用快捷命令自动修改代码格式。

window模式开启代码对比功能,左侧为自己的代码、右侧为规范代码,提供快捷方式进行代码修正覆盖。

window 模式下的操作快捷方式

Ctrl - w 切换光标位置

  1. Ctrl-w K(把当前窗口移到最上边)
  2. Ctrl-w H(把当前窗口移到最左边)
  3. Ctrl-w J(把当前窗口移到最下边)
  4. Ctrl-w L(把当前窗口移到最右边)

]c 跳向下一个编辑点

[c 跳向上一个编辑点

do 将另一个文件的编辑点覆盖到当前文件(注意光标位置)

dp 将当前文件的编辑点覆盖到另一份文件

Ctrl - u 撤销修改(保证光标在需要撤销的文件下 处于INSERT模式) 如果非INSERT模式直接 u 就是撤销

:qa 不修改退出 (编辑过后不可用 需要使用 :qa! 表示撤销修改后退出)

:wqa 保存修改退出

ioscodechecker-1's People

Contributors

xilankong avatar

Watchers

JM avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.