Why is my file over 150 KB missing?#
Codacy Cloud currently doesn't analyze files that are larger than 150 KB. Codacy doesn't display these files on the Files page, and doesn't take them 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 ignore your file by default, you can still analyze it by running the analysis locally using the Codacy Analysis CLI. The Codacy Analysis CLI doesn't have any limitation on file size.
What about Codacy Self-hosted?#
By default, Codacy Self-hosted has the same limit of 150 KB as Codacy Cloud. However, in this case the limit is configurable because the resource allocation for on-premise instances is decided by each organization.
To update the file size limit:
Edit the value of
values-production.yamlfile that you used to install Codacy:
global: workerManager: workers: config: analysis: maxFileSizeBytes: 150000
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:
If you're using MicroK8s you must use the file
values-microk8s.yamltogether with the file
To do this, uncomment the last line before running the
helm upgradecommand below.
helm upgrade (...options used to install Codacy...) \ --version <current Codacy Self-hosted version> \ --values values-production.yaml \ # --values values-microk8s.yaml
Did this page help you?
Thank you for the feedback!
We're sorry to hear that. Please let us know what we can improve.