Codacy supports configuring certain advanced features through a configuration file.
You can exclude files using globs and add custom extensions to languages.
You can ignore files globally, for certain categories (duplication, metrics or coverage) or for a specific tool (e.g.: Rubocop). The category metrics refers to the information you find under File details such as Size, Structure and Complexity.
To add custom extensions to a language you can also add an entry in this file, but keep in mind that some tools might not work out of the box with those extensions and might need changes.
If you want to disable an engine that needs to be done directly in the Code Patterns page.
The file name must be ".codacy.yaml" or ".codacy.yml" and should be placed in the root of your project.
--- engines: rubocop: enabled: true exclude_paths: - config/engines.yml duplication: enabled: true exclude_paths: - config/engines.yml metrics: enabled: true exclude_paths: - config/engines.yml coverage: enabled: true exclude_paths: - config/engines.yml languages: css: extensions: - '-css.resource' exclude_paths: - '.bundle/**' - 'spec/**/*' - 'benchmarks/**/*' - '*.min.js'
'test/**' ignores everything inside test
'test/**/*' ignores all files inside sub-folder of test
'**/*.resource' Ignores all .resource in all folders and sub-folders
Please note that if the file exists in the repo and if you have 'exclude paths', the UI ignores, will not apply.
If you have questions about Codacy configuration file, please, contact us at firstname.lastname@example.org.