0

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

Johnny Willemsen
  • 2,942
  • 1
  • 14
  • 16
Abdul K Shahid
  • 504
  • 1
  • 4
  • 17

1 Answers1

1

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

  • Is there a way to ignore some words? for example I have a variable "export" It ll throw an error undefined name. but i have a list of words to ignore. dummy-variable-rgx didnt seem to work – Abdul K Shahid Apr 28 '23 at 08:03
  • But i noticed that dummy-variable-rgx is to not throw unused variable error. I need a way to add some keywords and the linter to ignore them from undefined variables – Abdul K Shahid Apr 28 '23 at 15:32