-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Fix global linting and for in errors #79551
Conversation
build/gulpfile.hygiene.js
Outdated
@@ -199,7 +199,7 @@ gulp.task('tslint', () => { | |||
.pipe(filter(tslintExtensionsFilter)) | |||
.pipe(gulptslint.default({ rulesDirectory: 'build/lib/tslint' })) | |||
.pipe(gulptslint.default.report({ emitError: true })) | |||
]); | |||
]).pipe(es.through()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this since the gulp task was failing when no errors were being thrown. It still seems to fail correctly when actual errors occur.
Some more context on this PR, after finding the tslint was working on window, I found this is a os specific issue. On linux, if I run
But on windows works fine. With this branch, both linux and windows work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assigning @alexr00 for the task related changes.
I would not change the tslint rules, can you remove that change? I would prefer to disable the tslint at the place where it occurs.
Thanks. I meanwhile pushed a change to disable the rules in code, I guess that is why we see merge conflicts now. Thanks for the gulp file fix, that I already took over to |
# Conflicts: # src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts # src/vs/workbench/contrib/tasks/common/tasks.ts
@bpasero Sounds good, I'll close this since it seems like its not necessary anymore. |
I noticed #79222 was added but the rules weren't actually being applied (apparently because of the casing of the files). There were also some
for in
errors still in the code.There were a couple files that linting said shouldn't be accessing some globals but were so I added exceptions for them, not sure if that's actually correct though.