Skip to content

Commit db6abd8

Browse files
committed
codacy-guardrails/
1 parent c9881b9 commit db6abd8

File tree

6 files changed

+30
-36
lines changed

6 files changed

+30
-36
lines changed

docusaurus/docs/codacy-guardrails/codacy-guardrails-faq.md renamed to docusaurus/docs/codacy-guardrails/codacy-guardrails-faq.mdx

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: FAQs
33
---
44

55
## How do I install Codacy Guardrails?
6-
Please have a look at our [documentation](codacy-guardrails-getting-started.md).
6+
Please have a look at our [documentation](./codacy-guardrails-getting-started).
77

88
## Does Guardrails only work with AI-generated code?
99
No. While Guardrails does scan and autofix AI code as part of the agent flow, it scans any code shown in your IDE in real-time, regardless of how it was written.
@@ -49,17 +49,17 @@ Codacy Guardrails is a free IDE Extension for local scanning of AI-generated and
4949

5050
Check our [Team and Organization plans](https://www.codacy.com/pricing) to unlock:
5151

52-
- Central configuration and enforcement of AI coding standards across teams and projects
53-
- Query and autofix existing problems across your codebase from the AI chat panel
54-
- Generate custom security and code quality reports using AI prompts
55-
- Full access to the Codacy Cloud platform including:
52+
- Central configuration and enforcement of AI coding standards across teams and projects
53+
- Query and autofix existing problems across your codebase from the AI chat panel
54+
- Generate custom security and code quality reports using AI prompts
55+
- Full access to the Codacy Cloud platform including:
5656

57-
- Pipeline-less AppSec and code quality scans
58-
- PR merge gates
59-
- Team dashboards
60-
- Security reports
61-
- DAST pipelines
62-
- Jira integration
57+
- Pipeline-less AppSec and code quality scans
58+
- PR merge gates
59+
- Team dashboards
60+
- Security reports
61+
- DAST pipelines
62+
- Jira integration
6363

6464
## Does Guardrails work with all OS?
6565
Guardrails is supported on MacOS, Linux, and Windows (via [WSL](https://learn.microsoft.com/en-us/windows/wsl/install))
@@ -74,18 +74,12 @@ Without an AI coding agent, you can still use the IDE extension for local analys
7474
If you wish to continue using a previous version a little longer, you can do so by:
7575

7676
1. Open the Extensions tab
77-
78-
2. Select `Codacy`
79-
80-
3. Click on the down arrow on the right of the Uninstall button
81-
82-
4. Select `Install specific version...`
83-
77+
1. Select `Codacy`
78+
1. Click on the down arrow on the right of the Uninstall button
79+
1. Select `Install specific version...`
8480
![install specific version](images/install-specific-version.png)
85-
86-
5. Select the version you want on the top search bar
87-
88-
6. Click on `Restart Extensions` when that button appears
81+
1. Select the version you want on the top search bar
82+
1. Click on `Restart Extensions` when that button appears
8983

9084
Keep in mind that the IDE extension is under active development, so be sure to check for updates regularly.
9185
To revert to the latest version, click on `Update`.

docusaurus/docs/codacy-guardrails/codacy-guardrails-getting-started.md renamed to docusaurus/docs/codacy-guardrails/codacy-guardrails-getting-started.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ For Visual Studio Code, the Insiders version is recommended for its faster perfo
5252
- [Lizard](https://docs.codacy.com/release-notes/cloud/cloud-2025-02-adding-ruff-lizard/#lizard)
5353
- Revive
5454

55-
## How to install - Quick Guide {#how-to-install-quick-guide}
55+
## How to install - Quick Guide \{#how-to-install-quick-guide\}
5656

5757
#### Note for Windows users:
5858
To take advantage of Codacy Guardrails on Windows, you might need to setup WSL first, [check the steps here.](#how-to-install-wsl)
@@ -109,7 +109,7 @@ You can later generate the instructions manually from the Guardrails section of
109109
* Remember that for you to be able to interact with Codacy MCP server, you must be on the `Agent` mode of the chat, not the default `Ask` mode.
110110
* If you're still having issues with the MCP server, try to run the command `Preferences: Open User Settings (JSON)`, look for the Codacy MCP server settings and right on top of it you'll should see a `Start` option. Click on it and, if unsuccessful, go to `View > Debug Console` and check for errors. Don't forget to ensure you have `node.js` and `npx` installed and set up.
111111

112-
## How to install - WSL {#how-to-install-wsl}
112+
## How to install - WSL \{#how-to-install-wsl\}
113113

114114
### 1. Install or update [WSL.](https://learn.microsoft.com/en-us/windows/wsl/install)
115115

@@ -120,7 +120,7 @@ You can later generate the instructions manually from the Guardrails section of
120120

121121
## How to install - Manually
122122

123-
### 1. Install and activate the Codacy CLI for local analysis {#install-cli}
123+
### 1. Install and activate the Codacy CLI for local analysis \{#install-cli\}
124124

125125
#### Download
126126

@@ -153,7 +153,7 @@ Before running the analysis, install the specified tools:
153153
codacy-cli install
154154
```
155155

156-
### 2. Install MCP Server {#install-mcp-server}
156+
### 2. Install MCP Server \{#install-mcp-server\}
157157

158158
If you want to use MCP Server with a NPM package you should download it from [here](https://www.npmjs.com/package/@codacy/codacy-mcp)
159159

@@ -220,7 +220,7 @@ Or open the general settings.json file directly, which according to your OS shou
220220

221221
![Settings.json in VSCode](images/settings-json-vscode.png)
222222

223-
Make sure you update the value of `CODACY_ACCOUNT_TOKEN` with your [API token](../codacy-api/api-tokens.md).
223+
Make sure you update the value of `CODACY_ACCOUNT_TOKEN` with your [API token](../codacy-api/api-tokens).
224224

225225
a. Above the MCP Server configuration in **Settings.json** file, you can Click in the command **Start**
226226

@@ -269,7 +269,7 @@ For JetBrains IDEs, IntelliJ isn't the only supported editor, but is our primary
269269
- [Lizard](https://docs.codacy.com/release-notes/cloud/cloud-2025-02-adding-ruff-lizard/#lizard)
270270
- Revive
271271

272-
## How to install - JetBrains Quick Guide {#how-to-install-quick-guide-jetbrains}
272+
## How to install - JetBrains Quick Guide \{#how-to-install-quick-guide-jetbrains\}
273273

274274
#### Note for Windows users:
275275
To take advantage of Codacy Guardrails on Windows, you need to set up WSL first; [check the steps here](#how-to-install-wsl). **Only local analysis** are supported for Windows, as MCP support for JetBrains IDEs is still not completely done.

docusaurus/docs/codacy-guardrails/codacy-guardrails-how-to-configure-rules.md renamed to docusaurus/docs/codacy-guardrails/codacy-guardrails-how-to-configure-rules.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: How to customize the analysis rules for Codacy Guardrails
33
---
44

5-
By default, if no API token is provided in the [MCP Server setup](codacy-guardrails-getting-started.md/#3-install-mcp-server), Codacy uses a predefined configuration that includes all recommended rules (or [code patterns](../repositories-configure/configuring-code-patterns.md) that you can find on many parts of our product) from the supported built-in scanners.
5+
By default, if no API token is provided in the [MCP Server setup](codacy-guardrails-getting-started#3-install-mcp-server), Codacy uses a predefined configuration that includes all recommended rules (or [code patterns](../repositories-configure/configuring-code-patterns) that you can find on many parts of our product) from the supported built-in scanners.
66

77
However, when an API token is used, Codacy automatically retrieves the current rule configuration directly from your repository.
88

@@ -67,13 +67,13 @@ The table below lists the configuration file names that Codacy detects and suppo
6767

6868
To use a configuration file for a static analysis tool:
6969

70-
1. Make sure the configuration file is located in the root of the [default Codacy branch](../repositories-configure/managing-branches.mdx).
70+
1. Make sure the configuration file is located in the root of the [default Codacy branch](../repositories-configure/managing-branches).
7171

7272
2. Open the repository **Code patterns** page, select the tool of interest, and activate the toggle to use a configuration file.
7373

7474
:::note
75-
- After activating a configuration file for a tool, Codacy uses that configuration file even if you [exclude it from Codacy analysis](../repositories-configure/ignoring-files.md).
76-
- When [using a tool configuration file alongside a coding standard](../organizations/using-coding-standards.md#using-with-tool-configuration), the configuration file controls the code patterns, while the coding standard controls whether the tool is enabled or disabled.
75+
- After activating a configuration file for a tool, Codacy uses that configuration file even if you [exclude it from Codacy analysis](../repositories-configure/ignoring-files).
76+
- When [using a tool configuration file alongside a coding standard](../organizations/using-coding-standards#using-with-tool-configuration), the configuration file controls the code patterns, while the coding standard controls whether the tool is enabled or disabled.
7777
- Codacy uses the version of the configuration file **in the branch being analyzed**. For example, if you open a pull request that includes changes to the configuration file, the analysis results take those changes into account.
7878
- If Codacy analyzes a branch that doesn't include the configuration file, Codacy reverts to using the code patterns configured for the tool before you selected the option **Configuration file** on the Code patterns page.
7979
- For performance reasons, when you update pattern settings using a configuration file, Codacy may display outdated messages for issues identified previously by those patterns.
@@ -88,8 +88,8 @@ To use a configuration file for a static analysis tool:
8888

8989
If you want to use Codacy UI, there are two ways you can follow to configure the built-in scanner rules:
9090

91-
- Using the [Code Patterns](../repositories-configure/configuring-code-patterns.md) configuration, if you want to configure the rules per repository or
92-
- Using [Coding Standards](../organizations/using-coding-standards.md), if you want to configure the rules for multiple repositories
91+
- Using the [Code Patterns](../repositories-configure/configuring-code-patterns) configuration, if you want to configure the rules per repository or
92+
- Using [Coding Standards](../organizations/using-coding-standards), if you want to configure the rules for multiple repositories
9393

9494
### Code Patterns
9595

@@ -106,7 +106,7 @@ In order to set up your rules, please follow the next steps:
106106

107107
![Toggling tools](images/code-patterns-toggle-tools.png)
108108

109-
3. Select a tool to enable or disable its code patterns. To make it easier to find relevant patterns, use the filters above the pattern list. You can filter by [issue category](../faq/code-analysis/which-metrics-does-codacy-calculate.md#issues), status, severity level, or display only recommended code patterns.
109+
3. Select a tool to enable or disable its code patterns. To make it easier to find relevant patterns, use the filters above the pattern list. You can filter by [issue category](../faq/code-analysis/which-metrics-does-codacy-calculate#issues), status, severity level, or display only recommended code patterns.
110110

111111
To see an explanation of the issues that a pattern detects and how to fix them, click the respective dropdown arrow.
112112

@@ -122,7 +122,7 @@ In order to set up your rules, please follow the next steps:
122122

123123
Coding standards enable the analysis of multiple repositories with the same scanner and rules configurations, ensuring consistent code quality across your organization. Multiple coding standards can be applied to the same repository. For example, you can use coding standards to ensure that a group of repositories follow the same security rules or coding conventions.
124124

125-
To apply or edit a repository's [coding standards](../organizations/using-coding-standards.md), click **Customize** in the **Following ...** section at the top of the **Code patterns** page.
125+
To apply or edit a repository's [coding standards](../organizations/using-coding-standards), click **Customize** in the **Following ...** section at the top of the **Code patterns** page.
126126

127127
![Customize applied coding standards](images/code-patterns-cs-customize.png)
128128

docusaurus/docs/codacy-guardrails/codacy-guardrails-how-to-use.md renamed to docusaurus/docs/codacy-guardrails/codacy-guardrails-how-to-use.mdx

File renamed without changes.

docusaurus/docs/codacy-guardrails/codacy-guardrails-limitations.md renamed to docusaurus/docs/codacy-guardrails/codacy-guardrails-limitations.mdx

File renamed without changes.

docusaurus/docs/codacy-guardrails/codacy-guardrails-troubleshooting.md renamed to docusaurus/docs/codacy-guardrails/codacy-guardrails-troubleshooting.mdx

File renamed without changes.

0 commit comments

Comments
 (0)