github / github/codeql

Java Get Assignment Node In Dataflow Path

Đang mở
#17,745 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

Hello,

I am analyzing the dataflow paths for some of my queries and noticing some steps are being left out—specifically, the steps related to assignments. For example,

```
String value1 = "Hello";

String value2 = value1;

print(value2)
```

The dataflow path for this would be

value1 - from `String value1 = "Hello";`
value1 - from `String value2 = value1;`
value2 from `print(value2)`

Is there a way to also have value2 from `value1 - from `String value2 = value1;` inserted as step 3? So that it is

value1 - from `String value1 = "Hello";`
value1 - from `String value2 = value1;`
value2 - from `String value2 = value1;`
value2 from `print(value2)`

So that it is easier to follow the assignments? It's simple in this example, however, it can become confusing in more complex situations.

Thank you

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.