Skip to content

File size limit#

By default, Codacy Self-hosted ignores files larger than 150 KB, as Codacy Cloud does. On Codacy Self-hosted you can change the limit, since you decide the resources your instance has.

To change 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. To do so execute the command used to install Codacy, with the version of Codacy Self-hosted you have installed:

    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 17.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 16.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 15.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 14.1.1 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 14.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 13.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 12.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 11.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    
    helm upgrade (...options used to install Codacy...) \
                 --version 10.0.0 \
                 --values values-production.yaml \
                 # --values values-microk8s.yaml
    

Was this page helpful?

Your feedback helps us improve the documentation.