Skip to content

Fix: custom_ignore_diagnostic_directive not respected in LinterOptions#1474

Open
siddharthdewangan wants to merge 1 commit intodenoland:mainfrom
siddharthdewangan:fix-custom-ignore-diagnostic-directive
Open

Fix: custom_ignore_diagnostic_directive not respected in LinterOptions#1474
siddharthdewangan wants to merge 1 commit intodenoland:mainfrom
siddharthdewangan:fix-custom-ignore-diagnostic-directive

Conversation

@siddharthdewangan
Copy link
Copy Markdown

@siddharthdewangan siddharthdewangan commented Feb 5, 2026

Related Issue :

#1475

What does this PR do?

Fixes a bug where custom_ignore_diagnostic_directive was ignored and
custom_ignore_file_directive was mistakenly used for line-level ignores.

Root cause

In LinterContext::new, ignore_diagnostic_directive was initialized
using custom_ignore_file_directive.

Fix

Use custom_ignore_diagnostic_directive for diagnostic-level ignores.

Impact

  • Enables correct customization of line-level ignore directives
  • No breaking changes
  • Default behavior remains unchanged
    ``

Updated custom ignore diagnostic directive for line ignore while creating LinterContext.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 5, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants