刚开始以为是 pagination.spec.js 文件循环引用问题,便使用 sonar.exclusions=test/**,node_modules/** 排除,发现还不行,于是google、stackoverflow、 sonarqube的issues 均没有找到答案,最后无奈只好在sonarqube源码找 Not indexing due to symlink loop 语句
比如提示 11:41 error Refactor this function to reduce its Cognitive Complexity from 21 to the 20 allowed sonarjs/cognitive-complexity