Giga Extension

Using .gigaignore

Optimize Giga for larger projects by excluding unnecessary files

When working with larger projects, you can specify files to focus on by creating a .gigaignore file in your project root.

What is .gigaignore?

.gigaignore works just like .gitignore - it tells Giga which files and directories to skip during analysis.

Why use .gigaignore?

Giga works by analyzing your source code, but the results are worsened if there's too many irrelevant files like tests, migrations, etc. Using .gigaignore fixes that and allows Giga to focus on what actually matters.

With .gigaignore, you can:

  • Skip irrelevant files
  • Focus on what matters
  • Improve performance

Default Ignores

Giga already ignores common directories:

  • .git, node_modules, dist, build, all media files, and more.

Example

If you have custom directories containing third party packages or tests, you can create a .gigaignore file in your project root:

# Dependencies
/third-party-packages
 
# Generated files
*.generated.*
 
# Test directories
/custom-tests

When to use

Create a .gigaignore file when:

  • Your project has 100+ files
  • Analysis is taking too long
  • You have large binary/data files
  • You want to focus on specific areas of your codebase

On this page