[VSCode Extension] How to Disable Linter or Modify Ignore Rules?

It looks like there’s a problem with the VS Code Boxlang extension linter. It’s flagging all of my override methods as “unusedPrivateMethod”, and it’s making it hard to edit due to the way it dims the code. These methods are overrides from an extended component.

I created an issue here: [Linter] Unused Private Method False Positive · Issue #61 · ortus-boxlang/vscode-boxlang · GitHub

In the meantime, is there a way to disable the linter or at the very least ignore the unusedPrivateMethod rule? I am not seeing it in the plugin settings.

{4B7177EA-EBAD-4857-B8C0-6714FA11F250}

Found it:

Instructions: Configuration | BoxLang IDE

Example fix for my case:

  1. Create .bxlint.json in project root
  2. copy/paste:
{
	"diagnostics": {
		"unusedPrivateMethod": {
			"enabled": false,
			"severity": "hint"
		}
	}
}

Github issue:

Updated instructions link: Linting | BoxLang IDE

@Jacob_Beers, is there a way to made the flagging less disruptive. Obviously, the eventual fix is for the linter to be able to find the super class, but it also seems like we’d only want to put the squiggles on the method declaration line, not on the entire body of the method.

1 Like