Skip to content
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: improve message for ignored files without a matching config #18404

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fasttime
Copy link
Member

@fasttime fasttime commented Apr 29, 2024

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[X] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

Fixes #18263

What changes did you make? (Give an overview)

Extended createIgnoreResult with an additional parameter configStatus in order to provide an appropriate message when a file has no matching config.

Also simplified the findFiles() function and the calling logic to avoid passing around an ignored flag. This would be true if ConfigArray.getConfig() returns undefined.

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added the bug ESLint is working incorrectly label Apr 29, 2024
@github-actions github-actions bot added cli Relates to ESLint's command-line interface core Relates to ESLint's core APIs and features labels Apr 29, 2024
Copy link

netlify bot commented Apr 29, 2024

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit 5b75d10
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/665af5aeb0e5ba0008247920

package.json Outdated Show resolved Hide resolved
Copy link

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions bot added the Stale label May 11, 2024
@fasttime
Copy link
Member Author

Still working on this.

@fasttime fasttime self-assigned this May 12, 2024
@fasttime fasttime marked this pull request as ready for review June 1, 2024 10:31
@fasttime fasttime requested a review from a team as a code owner June 1, 2024 10:31
@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Jun 1, 2024
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Would like @nzakas to verify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion bug ESLint is working incorrectly cli Relates to ESLint's command-line interface core Relates to ESLint's core APIs and features
Projects
Status: Second Review Needed
Development

Successfully merging this pull request may close these issues.

Bug: Misleading message for non-configured files
2 participants