redhat-developer / redhat-developer/vscode-java

Add support for Exclusion Lists for Java Linter

未关闭
#2,515 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

compile diagnostics preferences
主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

Currently the Java Linter for this extension is scanning all of my project's autogenerated code which is causing 1000+ problems to be reported. From a very thorough investigation both VSCode and this extension do not have any exclusion options for what directories/files are scanned by the Java Linter and reported in the Problems tab.

Environment
  • Operating System: Windows 10 64-bit
  • JDK version: JDK 11
  • Visual Studio Code version: 1.66
  • Java extension version: 1.7.0
Steps To Reproduce
  1. Create a Java Project and have the extension installed.
  2. Write example code that would get scanned by linter with problems.
  3. Review extension settings and there is no option to add exclusion for the linter.
Current Result

Java Linter scans every directory and file for the entire project with no options for exclusions, turning off linter completely or other common options.

Expected Result

Java Linter should have settings in this extension for exclusions, turning off the linter, and using the .gitignore file as a default exclusion list.

Additional Informations

VSCode has said in other issues where this is brought up that this is the responsibly of the extensions to support exclusion lists for the Problems tab. Issue that is closed talking about this is found here: https://github.com/microsoft/vscode/issues/22289

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

Issue 中没有确定实现文件或测试。首先定位 Java linter 的入口点和扩展设置,然后追踪诊断信息如何到达 Problems 选项卡;对于所报告的自动生成代码场景,排除、禁用和基于 .gitignore 的过滤均已定义并验证,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
developer-experience, devtools
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。