pythonangularace-editorlinter

Ace editor is showing the error: Line too long


I use ace-linters for ace editor. It is showing the relevant linter warnings for each line on the left bar.

enter image description here

I have this line too long error. but I do not need this to show. Is it possible to remove this error?

Is there any way to have more control on the rules used by ace linters for python language. I noticed that it uses ruff for python linting. https://github.com/mkslanc/ace-linters


Solution

  • Yes, you can create a custom set of rules for services in ace-linters. To do this for a Python service, you need to provide your own configuration to the configuration property. For instance, if you want to increase the line length, you can use the following snippet:

    languageProvider.setGlobalOptions("python", {
        configuration: {
            "line-length": 120
        }
    });
    

    Full list of available options for Python Service based on Ruff