Skip to content

Is there a way to process Lombok-ed source file in codeql #4984

@hatface

Description

@hatface

Description of the issue

Is there a way to process Lombok-ed source file in codeql

I am trying to write a code analyzer with codeql,but I account an error which is displayed as flollowing

[2021-01-20 15:56:59] [javac-extractor-4576] [WARN] Skipping Lombok-ed source file: 

so my lombok-ed source file is not include in codeql database

eg.my lombok-ed source file displayed as flollowing

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;
    }

}

and the file is not include in src.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions