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

Handle log messages in CheckFileType #5117

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Handle log messages in CheckFileType #5117

merged 1 commit into from
Jan 11, 2024

Conversation

ferrarimarco
Copy link
Collaborator

Proposed changes

  • Honor SUPPRESS_FILE_TYPE_WARN when printing messages in the CheckFileType function.
  • Reduce duplication when handling log messages in the CheckFileType function.
  • Don't add files to the array of files to lint with JSCPD because we lint the whole codebase with JSCPD anyway.

Readiness checklist

In order to have this pull request merged, complete the following tasks.

Pull request author tasks

  • I included all the needed documentation for this change.
  • I provided the necessary tests.
  • I squashed all the commits into a single commit.
  • I followed the Conventional Commit v1.0.0 spec.
  • I wrote the necessary upgrade instructions in the upgrade guide.
  • If this pull request is about and existing issue,
    I added the Fix #ISSUE_NUMBER label to the description of the pull request.

Super-linter maintainer tasks

  • Label as breaking if this change breaks compatibility with the previous released version.
  • Label as either: automation, bug, documentation, enhancement, infrastructure.

@ferrarimarco ferrarimarco added bug Something isn't working O: backlog 🤖 Backlog, stale ignores this label labels Jan 9, 2024
@ferrarimarco ferrarimarco self-assigned this Jan 9, 2024
@ferrarimarco ferrarimarco changed the title fix: handle log messages in CheckFileType Handle log messages in CheckFileType Jan 9, 2024
- Honor SUPPRESS_FILE_TYPE_WARN when printing messages in the
  CheckFileType function.
- Reduce duplication when handling log messages in the CheckFileType
  function.
- Don't add files to the array of files to lint with JSCPD because we
  lint the whole codebase with JSCPD anyway.
@ferrarimarco
Copy link
Collaborator Author

@zkoppert going ahead with this one, it's a fairly simple change :)

@ferrarimarco ferrarimarco merged commit 5a2056d into main Jan 11, 2024
9 checks passed
@ferrarimarco ferrarimarco deleted the fix-detect-files branch January 11, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working O: backlog 🤖 Backlog, stale ignores this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant