[TECH DEBT] Let LinterContext.linter
return None
if no linter is found instead of raising a ValueError
#3544
Labels
internal
this pull request won't appear in release notes
migrate/python
Pull requests that update Python code
python
Pull requests that update Python code
Description
Let
LinterContext.linter
returnNone
if no linter is found instead of raising aValueError
:ucx/src/databricks/labs/ucx/source_code/linters/context.py
Lines 105 to 112 in f47722c
Motivation
For a more graceful way handling of a linter not being found, now we are unsure if the last
ValueError
will be raised in case someone adds a new linter for a new language but forgets to update the if condition thereThe text was updated successfully, but these errors were encountered: