Skip to content
This documentation is a preview of the pull request #2301

For the latest updates and improvements in production, open docs.codacy.com instead.

Configuring languages#

Organization admins can manage access to this feature

Codacy automatically detects and analyzes languages in your repository based on a list of supported file extensions. On the repository Settings, tab Languages, you can see the list of languages that Codacy detected and will include in the next analysis.

By default, the analysis is enabled for all languages that Codacy detects in you repository. You can adapt this configuration to your needs as follows:

Note

Codacy applies the language settings defined in the Codacy UI as well as any settings defined using a Codacy configuration file.

Configuring file extensions#

If your repository contains source files with extensions not supported by Codacy, associate these extensions with their respective languages to ensure Codacy analyzes them in the next analysis:

  1. Go to your repository's Settings, Languages.

  2. Add the extensions you want to be recognized for each language.

  3. Click Save changes to update your file extension settings.

    Configuring file extensions

    The updated settings will be used on the next analysis, but you can click reanalyze the latest commit of your branches now on the notification that appears at the bottom of the page to trigger an analysis immediately.

    Analyze now

Note

Currently, the Semgrep static analysis tool doesn't support custom file extensions.

Disabling analysis of a language#

By default, Codacy analyzes all languages detected in your repository. To disable the analysis of a specific language, do the following:

  1. Go to your repository's Settings, Languages.

  2. Use the toggle next to the language to disable its analysis.

  3. Click Save changes to update your settings.

    Disabling language

    The updated settings will be used on the next analysis, but you can click reanalyze the latest commit of your branches now on the notification that appears at the bottom of the page to trigger an analysis immediately.

    Analyze now

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.

Edit this page on GitHub if you notice something wrong or missing.

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

Last modified June 7, 2024