Examples
Basic usage
After you have installed DepsHub you can run it with the depshub lint .
command:
This will run DepsHub on the current directory and all its subdirectories. It respects the .gitignore
file and will not lint files that are ignored by Git.
Ignoring files
To further configure DepsHub, you can create a configuration file. This file should be named depshub.yml
. DepsHub automatically reads this file when it is present in the current directory.
Now, let’s say you want to ignore some specific directory. You can do this by adding the following to your depshub.yml
file:
Configuring specific rules
If you want to configure a specific rule for a specific manifest file, you can do this by adding the following to your depshub.yml
file:
See all the available configuration options in the configuration reference.