Interface A3SContextCollector


  • @Beta
    @ScannerSide
    public interface A3SContextCollector
    Reserved for SonarSource internal usage.
    Since:
    13.4
    • Method Detail

      • isEnabled

        boolean isEnabled()
        Check if the A3S context collector is enabled.
      • collect

        void collect​(java.lang.String kind,
                     java.lang.String metadata,
                     java.util.Collection<A3SContextCollector.Item> items)
        Collect a context for the current analysis. If called multiple times with the same kind, the behavior is unspecified.
        Parameters:
        kind - a unique identifier in case there are multiple contexts for the same project. Can be used to retrieve this specific context later.
        metadata - opaque metadata (for example in JSON format) describing the project
        items - attachments to the context, for more efficient storage. Currently only file items are supported.