github - 有没有办法在codeql中处理Lombok-ed源文件
问题描述
我正在尝试使用 codeql ( https://securitylab.github.com/tools/codeql ) 编写代码分析器,但我考虑了一个错误,该错误显示为以下内容
[2021-01-20 15:56:59] [javac-extractor-4576] [WARN] Skipping Lombok-ed source file:
所以我的 lombok-ed 源文件不包含在 codeql 数据库中
eg.my lombok-ed 源文件显示为以下内容
public class Test1{
public static String testOkHttpGet() {
OkHttpClient okHttpClient = new OkHttpClient();
HttpUrl httpUrl = HttpUrl.parse("http://localhost:8080/demo/list").newBuilder()
.addQueryParameter("name", "HTTP").build();
okhttp3.Request request = new okhttp3.Request.Builder().url(httpUrl.toString()).build();
try (Response response = okHttpClient.newCall(request).execute()) {
ResponseBody body = response.body();
if (response.isSuccessful()) {
} else {
}
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
@Data
@AllArgsConstructor
class Student{
String name;
String age;
}
}
并且该文件不包含在 src.zip 中 在此处输入图像描述
解决方案
推荐阅读
- sharepoint - How to automatically add a current date to a column when another column is changed?
- html - 视图中所有字段的密码视图
- swift - How to set up firebase as server and execute stripe payment
- google-cloud-ml - 无法使用 CloudML 提供模型:构建/加载模型时出错
- case - CASE WHEN Formula - NetSuite
- python - 数据帧交替数组
- c++ - 处理 char 整数
- c# - 我们可以在 .Net windows 窗体的第一个窗体的同一窗口上打开第二个窗体吗?
- ios - 转义分隔符
- octobercms - 如何将十月 CMS 部署为主站点的子站点