diff --git a/docs/organizations/copying-code-patterns-between-repositories.md b/docs/organizations/copying-code-patterns-between-repositories.md deleted file mode 100644 index 8882f3786c..0000000000 --- a/docs/organizations/copying-code-patterns-between-repositories.md +++ /dev/null @@ -1,38 +0,0 @@ -# Copying code patterns between repositories - -Copy [tool and pattern configurations](../repositories-configure/configuring-code-patterns.md) 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. - -!!! tip - To ensure that multiple repositories consistently follow the same tool and code pattern configurations throughout your organization, [use a coding standard](../organizations/using-coding-standards.md) instead. - -{% - include-markdown "../repositories-configure/configuring-code-patterns.md" - start="" - end="" -%} - -To copy the tool and pattern configurations from one repository to other repositories: - -1. Open your organization **Policies** page, tab **Bulk copy code patterns**. - -1. 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](images/organization-copy-patterns.png) - -1. 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 - -- [Applying a coding standard across multiple repositories](using-coding-standards.md) -- [Configuring code patterns on each repository](../repositories-configure/configuring-code-patterns.md) -- [Importing pattern configurations from another repository](../repositories-configure/configuring-code-patterns.md#import-patterns) diff --git a/docs/organizations/images/coding-standard-create.png b/docs/organizations/images/coding-standard-create.png index 72c2171988..0751efed79 100644 Binary files a/docs/organizations/images/coding-standard-create.png and b/docs/organizations/images/coding-standard-create.png differ diff --git a/docs/organizations/images/coding-standard-delete.png b/docs/organizations/images/coding-standard-delete.png index 746e6f10c7..8f2568458c 100644 Binary files a/docs/organizations/images/coding-standard-delete.png and b/docs/organizations/images/coding-standard-delete.png differ diff --git a/docs/organizations/images/coding-standard-edit.png b/docs/organizations/images/coding-standard-edit.png index 10e8075a03..c244328812 100644 Binary files a/docs/organizations/images/coding-standard-edit.png and b/docs/organizations/images/coding-standard-edit.png differ diff --git a/docs/organizations/images/coding-standard-set-default.png b/docs/organizations/images/coding-standard-set-default.png index f83533d8ea..755106801f 100644 Binary files a/docs/organizations/images/coding-standard-set-default.png and b/docs/organizations/images/coding-standard-set-default.png differ diff --git a/docs/organizations/images/gate-policy-create.png b/docs/organizations/images/gate-policy-create.png index 773af24522..ee8f2c7ec6 100644 Binary files a/docs/organizations/images/gate-policy-create.png and b/docs/organizations/images/gate-policy-create.png differ diff --git a/docs/organizations/images/gate-policy-delete.png b/docs/organizations/images/gate-policy-delete.png index 96cf2d09c7..73bd908f48 100644 Binary files a/docs/organizations/images/gate-policy-delete.png and b/docs/organizations/images/gate-policy-delete.png differ diff --git a/docs/organizations/images/gate-policy-edit.png b/docs/organizations/images/gate-policy-edit.png index bf18f696af..cc15a8ce58 100644 Binary files a/docs/organizations/images/gate-policy-edit.png and b/docs/organizations/images/gate-policy-edit.png differ diff --git a/docs/organizations/images/gate-policy-set-default.png b/docs/organizations/images/gate-policy-set-default.png index bc4fc2d79b..0c007990d2 100644 Binary files a/docs/organizations/images/gate-policy-set-default.png and b/docs/organizations/images/gate-policy-set-default.png differ diff --git a/docs/organizations/images/organization-copy-patterns.png b/docs/organizations/images/organization-copy-patterns.png deleted file mode 100644 index fbec6d53bb..0000000000 Binary files a/docs/organizations/images/organization-copy-patterns.png and /dev/null differ diff --git a/docs/organizations/roles-and-permissions-for-organizations.md b/docs/organizations/roles-and-permissions-for-organizations.md index 0f136408b8..c29ddd8b42 100644 --- a/docs/organizations/roles-and-permissions-for-organizations.md +++ b/docs/organizations/roles-and-permissions-for-organizations.md @@ -128,7 +128,7 @@ The table below maps the GitHub Cloud and GitHub Enterprise roles to the corresp Yes - Manage organization gate policies and coding standards,
bulk copy patterns + Manage organization gate policies and coding standards No No No @@ -282,7 +282,7 @@ The table below maps the GitLab Cloud and GitLab Enterprise roles to the corresp Yes - Manage organization gate policies and coding standards,
bulk copy patterns + Manage organization gate policies and coding standards No No No @@ -400,7 +400,7 @@ The table below maps the Bitbucket Cloud and Bitbucket Server roles to the corre Yes - Manage organization gate policies and coding standards,
bulk copy patterns + Manage organization gate policies and coding standards No Yes Yes diff --git a/docs/organizations/using-coding-standards.md b/docs/organizations/using-coding-standards.md index a99a18fafc..93b4ee2c6c 100644 --- a/docs/organizations/using-coding-standards.md +++ b/docs/organizations/using-coding-standards.md @@ -132,7 +132,5 @@ When using a [tool configuration file](../repositories-configure/configuring-cod ## See also -- [Copying code patterns between repositories](copying-code-patterns-between-repositories.md) -- [Importing pattern configurations from another repository](../repositories-configure/configuring-code-patterns.md#import-patterns) - [Configuring code patterns on each repository](../repositories-configure/configuring-code-patterns.md) - [How to implement Google JavaScript style guide with Codacy](https://blog.codacy.com/implement-google-javascript-style-guide-with-codacy/) diff --git a/docs/repositories-configure/configuring-code-patterns.md b/docs/repositories-configure/configuring-code-patterns.md index d434f1e6f7..e74d5854f3 100644 --- a/docs/repositories-configure/configuring-code-patterns.md +++ b/docs/repositories-configure/configuring-code-patterns.md @@ -6,10 +6,9 @@ description: Configure the static analysis tools and code patterns that Codacy u {% include-markdown "../assets/includes/admin-access-control-info.md" %} -By default, Codacy analyzes your repositories using a subset of the supported analysis tools and code patterns. These defaults are based on current best practices and community feedback, and you can adapt them to your needs in several ways: +By default, Codacy analyzes your repositories using a subset of the supported analysis tools and code patterns. These defaults are based on current best practices and community feedback, and you can adapt them to your needs as follows: - [Configuring tools and code patterns using the Codacy UI](#configuring-tools-and-code-patterns-using-the-codacy-ui) -- [Importing configurations from another repository](#import-patterns) - [Using tool configuration files](#using-your-own-tool-configuration-files) ## Configuring tools and code patterns using the Codacy UI @@ -40,44 +39,6 @@ To configure the tools and code patterns for a repository using the Codacy UI: 1. Optionally, to take the changes into account immediately, [reanalyze the repository manually](../faq/repositories/how-do-i-reanalyze-my-repository.md). Otherwise, Codacy will use the updated configuration when analyzing new commits and pull requests. -## Importing pattern configurations from another repository {: id="import-patterns"} - -Importing tool and code pattern configurations from another repository can help you bootstrap and standardize the tool and code pattern configurations across your repositories. - -For example, when adding a new repository on Codacy you can copy the tool and code pattern configurations from an existing repository that's already configured, and then tweak and adapt the settings for your new repository. - -!!! tip - To ensure that multiple repositories consistently follow the same global tool and code pattern configurations, [use an organization coding standard](../organizations/using-coding-standards.md) instead. - - Alternatively, you can also copy the tool and code pattern configurations [from one repository to multiple target repositories](../organizations/copying-code-patterns-between-repositories.md). - - -!!! 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 and doesn't copy configuration files across repositories. - - The following example illustrates the points above: - - | Source repository | Target repository | Target repository after import | - |-------------------|-------------------|--------------------------------| - | ![Source repository](images/code-patterns-import-example-source.svg) | ![Target repository](images/code-patterns-import-example-target.svg) | ![Target repository after import](images/code-patterns-import-example-final.svg) | - - -To import the tool and code pattern configurations from another repository: - -1. Open your repository **Code patterns** and click **Import patterns**. - - ![Importing code patterns from another repository](images/code-patterns-import.png) - -1. Follow the instructions to select the source repository and complete the import. - -1. Review and adjust your tool and code pattern configurations if necessary. - -Codacy will use the updated configurations on the next analysis. - ## Using tool configuration files {: id="using-your-own-tool-configuration-files"}