docs.unity3d.com
    Show / Hide Table of Contents

    Class ApiScraping

    Methods for invoking and validating API Scraper

    Inheritance
    Object
    ApiScraping
    Namespace: Unity.Coding.Editor.ApiScraping
    Syntax
    public static class ApiScraping

    Methods

    Scrape()

    Scrape public API based on .editorconfig rules. Rules in .editorconfig are defined as sections with glob patterns matching .asmdef files in the project.

    Examples enabling API scraping for all assemblies: [*.asmdef] scrape_api = true

    Examples disabling API scraping for assemblies in Test folders: [/Tests/.asmdef] scrape_api = false

    Declaration
    public static void Scrape()

    ValidateAllFilesScraped(List<String>)

    Validate if all .api files match the current state of public API in the codebase. If false, the .api files can be regenerated with ApiScraping.Scrape method or by configuring API Scraper to run automatically.

    Declaration
    public static bool ValidateAllFilesScraped(List<string> failedFileList)
    Parameters
    Type Name Description
    List<String> failedFileList

    List of paths to files that failed validation.

    Returns
    Type Description
    Boolean
    In This Article
    • Methods
      • Scrape()
      • ValidateAllFilesScraped(List<String>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023