在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:guarding开源软件地址:https://gitee.com/thoughtworks/guarding开源软件介绍:Guarding
Usage
cargo install guarding
package(".")::file.len should < 200;package(".")::file.len should > 50;
guarding . Developmentworkflow:
DSL capture logic:
Queries Samples: https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries Guarding - Class or Struct function-namefor Java, JavaScript # 类::名 包含 "Controller";# 中文分词:("..myapp..") 类名称中包含 "Controller"class("..myapp..")::function.name should contains("Model");# orclass("..myapp..")::function.name contains(""); for Rust and Golang struct("..myapp..")::function.name should contains("Model");# orstruct("..myapp..")::function.name contains(""); Todostodo:
LicenseThis code is distributed under the MIT license. See |
请发表评论