Improve metrics output

Đang mở
#1,036 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, typescript
Lĩnh vực
ci-cd, devops

Hướng nghiên cứu

Bắt đầu với đầu ra của github/codeql-action/analyze được hiển thị trong lần chạy workflow được liên kết và lần theo cách bảng chỉ số cùng thông báo baseline được tạo ra; issue không nêu tệp nguồn hay bài kiểm thử nào. Được xem là hoàn tất khi các hàng chỉ số giữ nguyên các cột kết quả giúp phân biệt chúng, phần chỉ số được tách biệt về mặt trực quan và câu baseline xuất hiện một lần, đồng thời làm rõ hành vi này thuộc về CodeQL CLI hay Java queries.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Version

CodeQL CLI: 2.8.5
CodeQL action: 1.1.8 (according to CODEQL_ACTION_VERSION environment variable)

Description

Currently (at least for Java projects) the metrics table printed at the end of github/codeql-action/analyze contains the same metric name multiple times, e.g.:

|                          Metric                          | Value |
+----------------------------------------------------------+-------+
| Total lines of code in the database                      |  9668 |
| External libraries                                       |  1458 |
| External libraries                                       |    28 |
| External libraries                                       |     9 |
| External libraries                                       |     7 |
| External libraries                                       |     6 |
| External libraries                                       |     1 |
| Supported sinks in external libraries                    |     7 |
| Supported sinks in external libraries                    |     6 |
| Supported sinks in external libraries                    |     4 |
| Supported sinks in external libraries                    |     2 |
| Supported sinks in external libraries                    |     1 |
| Supported sinks in external libraries                    |     1 |
| Supported sinks in external libraries                    |     1 |
| Supported sinks in external libraries                    |     1 |
| Supported flow steps in external libraries               |    82 |
| Supported flow steps in external libraries               |    42 |
| Supported flow steps in external libraries               |    36 |
| Supported flow steps in external libraries               |    30 |
| Supported flow steps in external libraries               |    25 |
...

(workflow run)

The issue might be that these queries have multiple result columns, but the table here only seems to contain the usages count, discarding the other columns. Maybe the underlying issue is therefore caused by CodeQL CLI or by the Java queries.

Additionally it might be good to add an empty line in front of "Analysis produced the following metric data:" (to separate it more clearly from the previous table). And also the "Counted a baseline of ..." sentence seems to be printed twice (workflow run).

Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
493
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
44

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/codeql-action

Tất cả issue của github/codeql-action

Issue tương tự

Thêm issue về TypeScript

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.