Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagegroovy
if (api.isSyntaxCheck()) return

Then If you will be able to save it.want to exclude only one line from the evaluation, you can use the following construction:

Code Block
def pli = api.isSyntaxCheck()? [:] : api.getElement("TargetPricePLI")


Note

This feature is not intended and will not work as a workaround for cases when the coding style is bad:

  • If there are real issues (bugs) in your code, of course this does not help.
  • If you have "null" references, it is a better practice to fix it by using "?:"

But, for example, when the code works fine in the Test Drive but it is not possible to save the logic, then you can consider disabling the checker.

...