Scanning Anonymous Methods

By Default, Anonymous methods are being ignored during a scan. Customers might use anonymous methods in their code and would like to include those in their Coverage Report.

In order to do that, you would first have to confirm that the code has been actually ignored:

  • From the dashboard, locate the Application/Branch/Build

  • Toggle on the “Ignored Methods”

  • Make sure you can locate the ignored code (grayed out) under the coverage report

  • You can also verify that in the RAW file of the build, under S3: /sl-agents-files-usw/PROD-{CUSTOMER_NAME}/build-diff-files/raw/{CUSTOMER_NAME}/{APP_NAME}/{BRANCH}/{BUILD}

Once you verified that, you can then update the ignore configuration to include Anonymous Methods from the next build:

  • Go to “Settings” > “Data Scope” > "Code Scope"

  • Choose your application, and uncheck the “Anonymous Methods”

From the next build, your Anonymous methods will be included in the the coverage report

Last updated

Was this helpful?