|
|
|
@ -8,22 +8,18 @@ package com.keyware.sonar.cxx.rules.checkers; |
|
|
|
|
|
|
|
|
|
import com.sonar.cxx.sslr.api.AstNode; |
|
|
|
|
import com.sonar.cxx.sslr.api.Grammar; |
|
|
|
|
import com.sun.source.tree.ExpressionTree; |
|
|
|
|
import org.sonar.check.Priority; |
|
|
|
|
import org.sonar.check.Rule; |
|
|
|
|
import org.sonar.cxx.parser.CxxGrammarImpl; |
|
|
|
|
import org.sonar.cxx.squidbridge.annotations.ActivatedByDefault; |
|
|
|
|
import org.sonar.cxx.squidbridge.annotations.SqaleConstantRemediation; |
|
|
|
|
import org.sonar.cxx.squidbridge.api.CheckMessage; |
|
|
|
|
import org.sonar.cxx.squidbridge.api.SourceFile; |
|
|
|
|
import org.sonar.cxx.squidbridge.checks.SquidCheck; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 在访问文件或目录前对路径名进行验证 |
|
|
|
|
* |
|
|
|
|
* @author GuoXin |
|
|
|
|
* @author Wuhaoyang |
|
|
|
|
* @date 2024/1/6 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|