Skip to content
This documentation applies to Codacy Self-hosted v4.2.0

For the latest updates and improvements, see the latest Cloud documentation instead.

Copying code patterns between repositories#

Copy tool and pattern configurations in bulk between your repositories to help you bootstrap and standardize the coding standards in your organization.

For example, when adding new repositories on Codacy you can copy the tool and pattern configurations from an existing repository that's already configured, and then tweak and adapt the settings for your new repositories.

Important

Consider the following when using this feature:

  • Tool matching: Codacy only copies settings for tools that are available on both the source and target repositories, and overwrites the existing settings for these tools on the target repository.
  • Toggle status: Codacy copies the enabled or disabled status of the matching tools from the source to the target repository.
  • Configuration files: Codacy copies the UI configuration of all matching tools, even those set to use configuration files. However, the import doesn't include the configuration mode itself.

The following example illustrates the points above:

Source repository Target repository Target repository after import
Source repository Target repository Target repository after import

To copy the tool and pattern configurations from one repository to other repositories:

  1. Open your organization Patterns page.

  2. Follow the instructions to select:

    • The source repository from where to copy the configurations

    • One or more target repositories to apply the configurations

    You can use the language filter to help you find target repositories that use the same language as the source repository that you selected.

    Copying code patterns between repositories

  3. Use the Operation summary to review the changes that will be applied and click Apply changes.

Codacy will use the updated configurations on the next analysis in each target repository.

See also#

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

We're sorry to hear that. Please let us know what we can improve:

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

If you have a question or need help please contact support@codacy.com.

Last modified August 17, 2021