init
Set up Qlty in the current repository
This command will generate an initial project configuration file based on the contents of the repository and write it to .qlty/qlty.toml
at the repository root.
When run without the --skip-plugins
command, initialization will try to determine a reasonable set of linters and formatters to enable. Certain linters and formatters are enabled based on the detection of a linter configuration file. Others are enabled just based on the presence of target files of the programming language.
Following initialization, the command will print a summary of the configuration.
After generating a configuration file, the command will ask if you want to sample the results of the enabled plugins. Sampling runs each plugin against a small set of targets.
If Qlty is already initialized in the current repository, this command will exit with an error.
Arguments
-y, --yes
-n, --no
--skip-plugins
--dry-run
Print the generated configuration to stdout instead of saving to disk
--skip-default-source
--source
A custom source to use for plugins. This can be a URL(name=url) or a path to a local directory(name=directory)