Give option for detailed linting errors
- Ngôn ngữ chính
- Java
- Star
- 5.6k
- Fork
- 559
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 43
Mô tả
After upgrading to version 7, spotless just kept crashing when linting Scala in spotlessCheck/Apply, with a cryptic error message:
```
There were 411 lint error(s), they must be fixed or suppressed.
src/main/scala/edu/ie3/simona/actor/ActorUtil.scala:LINE_UNDEFINED scalafmt(java.lang.reflect.InvocationTargetException) java.lang.reflect.InvocationTargetException (...)
[...]
```
([CI run here](https://github.com/ie3-institute/simona/actions/runs/13314184819/job/37184042413?pr=1106))
Turns out the cause of our problem was that the scalafmt version was not set to the exact one required (3.8.1) in `.scalafmt.conf`. [It took me some time to figure this out](https://github.com/ie3-institute/simona/pull/1106#issuecomment-2748536248), so maybe there's a way to make the error logging more verbose. Giving an option to print the stack traces of linting errors would be great, for example (my apologies if this option exists already, I have not found it).
Hướng dẫn đóng góp
Hướng nghiên cứu
Sử dụng lần chạy CI được liên kết và sự không khớp phiên bản của `.scalafmt.conf` làm ngữ cảnh tái hiện. Truy vết đường đi báo cáo lỗi lint của Scala/Scalafmt và các tùy chọn cấu hình hiện có; hoàn thành có nghĩa là người dùng có thể bật dấu vết ngăn xếp cho các lỗi lint mà không thay đổi đầu ra mặc định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, scala
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100