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

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

Why is my file missing?#

In your repository Files page you can view all the files that Codacy detected in your repository:

Repository files

While this page should display all the files in your repository, here is a list of reasons why some files might be missing:

  • You're viewing the incorrect branch

    On the Files page you can select which branch to display, and sometimes not all files exist in all branches.

  • The file might have been ignored

    The Files page doesn't display ignored files that aren't meant to be analyzed.

  • The file has an extension that is not on the list of supported extensions

    Codacy has a default list of file extensions that it associates to each language. Files with extensions that aren't on the list don't appear on the Files page.

  • The file might be too big

    Codacy only displays files up to 150 KB. Read the section below for more information.

File size limitation on Codacy Cloud#

Codacy Cloud currently doesn't analyze files that are above 150 KB in size. Larger files aren't displayed on Codacy nor taken into account when grading your repository.

Why is there a limit?#

As part of our performance improvement measures, we spent time breaking down the total time it takes to analyze a repository and found that a large percentage of time was spent on files that didn't add value to our users. Those files tend to be the biggest in the repository and are typically generated by or dependent on a third-party. It increased analysis time significantly due to the file size and even resulted in time-outs at some point, preventing the flagging of real issues.

As a solution to this problem, we placed a size limit to the files that Codacy would analyze. This decreased the average analysis time and the number of timeouts, thus improving the overall performance for our users.

What if I need to analyze a file that exceeds this limit?#

While Codacy will discard your file by default, you can still have it analyzed using the Codacy Analysis CLI and running the analysis locally. CLI doesn't have any limitation on file size, so you will be able to have your files analyzed this way.

What about Codacy Self-hosted?#

By default, Codacy Self-hosted has the same limit of 150 KB as Codacy Cloud. However, the limit is configurable because the resource allocation for on-premise instances is decided by each organization.

To update the file size limit:

  1. Edit the value of global.workerManager.workers.config.analysis.maxFileSizeBytes in the values-production.yaml file that you used to install Codacy:

    global:
      workerManager:
        workers:
          config:
            analysis:
              maxFileSizeBytes: 150000
    
  2. Apply the new configuration by performing a Helm upgrade and specifying the Codacy Self-hosted version currently installed. To do so execute the command used to install Codacy:

    Important

    If you're using MicroK8s you must use the file values-microk8s.yaml together with the file values-production.yaml.

    To do this, uncomment the last line before running the helm upgrade command below.

    helm upgrade (...options used to install Codacy...) \
                 --version <current Codacy Self-hosted version> \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    

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 April 13, 2021