Visitar URL original
General issue - Files excluded from codeql database if lombok java library is used for getters and setters functionality · Issue #4555 · github/codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20260301051207/https://github.com/github/codeql/issues/4555
Skip to content

General issue - Files excluded from codeql database if lombok java library is used for getters and setters functionality #4555

@SaumoPal97

Description

@SaumoPal97

I have been building codeql databases for multiple projects and in some of them I found that the src.zip file inside codeql database doesn't contain files that utilize lombok library for getters and setters. On further checking, I realised that while the files are missing from codeql database, their classes and methods can be fetched, but on doing so, their start line, start column, end line and end column all have value 0, so they are getting treated as external libraries, with no AST or DFG created for them. Just to help understand the issue, please build the codeql database for this - https://github.com/ayonious/lombok-examples, and you can check inside src.zip of the created codeql database that the representation doesn't contain lombok-examples/src/main/java/com/ayon/lombok. But if you try running a query to find all classes and their locations, the excluded files inside lombok-examples/src/main/java/com/ayon/lombokwill be shown with their start and end locations as 0.

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