Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Overview

The custom methods exclude filter allows ignoring of specific methods during the build scan and extends the functionality offered by the files excluded filesexcluded and packages excluded packagesexcluded filter parameters as used by the Sealights build scanner.

...

For build scanner command and parameter usage refer to SeaLights Java agent - Command Reference.

Method Ignore rules and syntax

The customer filter will be provided as an external file in JSON format (see the example below). 

...

Filter patterns notation

Class name pattern notation

  1. May be an exact value or a regular expression

  2. A sign '$' in the nested class pattern will not be handled as a regex special character, but as a part of the name

  3. A pattern should not contain a file extension

...

Code Block
"classNames": [".*MyClass", ".*MyClass$.*"]

Exact method signature notation

An exact method signature should include the following verbs separated by single space: method access, return type, method name and parameter types in brackets.

...

The exact method signature is used as is for full equity.

Method signature regex pattern notation

The method signature regex should be defined according to Java regex notation, but the method arguments enclosing parentheses will not be handled as a regex special character.

...