-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discovery] Feasibility of applying amnesty on the existing eslint warnings #131
Comments
@Mashal-m, my instincts says to go with suppress-eslint-errors, but... wow, that's going to be a lot of PRs. Can we at least have one single @adamstankiewicz, I'm curious what your take would be on this one. |
@abdullahwaheed, can we get a status update, here? Thanks! |
@arbrandes we were focusing on removing legacy code from platform first so we can focus on remaining warnings |
@UsamaSadiq after merging this PR Migrate eslint-config-edx the eslint report is zero. |
The warning report shouldn't be affected this much with package migration. To investigate the warning report accuracy, I can think of following two methods:
|
Can I get a status update here? Thanks! |
Hi @arbrandes, After conducting RnD on this issue, we have discovered that
We have completed steps 1 and 2. Step 3 is currently in progress, and the PRs associated with it are under review. Once the reviews are completed, we will be ready to deploy them as well. |
@Syed-Ali-Abbas-Zaidi, just checking: are we still going to pursue this? |
@arbrandes we will resume this after edx-platform frontend upgrade to latest versions |
Description
All the pylint violations in edx-platform have been suppressed using lint-amnesty. Now the next target is to apply amnesty on the eslint warnings and remove its threshold.
Acceptance Criteria
Initial Research on the Issue
esplint: A tool to record existing violations in a separate json file and only show new warnings when running in CI. The details to use this can be found in this article.
Pros: Using this tool can decrease the time required to disable all the warnings across repo in multiple PRs.
Cons: It’ll not help in identifying the failing lines in the code since it won’t highlight anything in the code itself and will only keep a record separately.
suppress-eslint-errors: A tool to add the disable message on all the existing eslint violations in the code.
Pros: Using this tool can help us in identifying disabled warnings in the codebase which will be helpful later on in resolving these warnings.
Cons: This will need to be applied through the automated job and multiple PRs across edx-platform will be created to cover 5507 (current no. of eslint warnings).
To use this tool, we’ll first need to update the eslint rules to identify all the warnings as errors since this tool can only work on disabling the errors and not warnings.
The text was updated successfully, but these errors were encountered: