Skip to content

引入

ts
import { getAuditorFromRainbowConfig } from 't-comm';

// 不支持 tree-shaking 的项目
import { getAuditorFromRainbowConfig} from 't-comm/lib/minimatch/index';

// 只支持 ESM 的项目
import { getAuditorFromRainbowConfig} from 't-comm/es/minimatch/index';

getAuditorFromRainbowConfig(params)

描述

获取审核人

参数

参数名描述
params

参数

返回:

审核人

示例

ts
getAuditorFromRainbowConfig({
  rainbowConfig: { "pmd-mobile/match/*": "gg", "pmd-mobile/convert-cross": "gg" },
  checkKeyList: [ 'pmd-mobile/match/gp/gp-hor', 'pmd-mobile/match/gp' ],
  minimatch: require('minimatch'),
  minimatchKey: 'pmd-mobile/match/gp',
})