本地开发oclint自定义规则

开发前知识储备

开始开发

  • 1、使用scaffoldRule命令,快速创建rule
    使用oclint-scripts目录下的scaffoldRule创建规则文件
    scaffoldRule -t SourceCodeReader -c log -n customerRule -p 3 --test CustomerSample
  • 2、编写规则的逻辑代码

编译包,copy自定义规则到oclint的安装目录