Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Nov 18, 2024
1 parent 13e68f3 commit de32d93
Showing 1 changed file with 91 additions and 1 deletion.
92 changes: 91 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,91 @@
# README
# Qlty CLI

Qlty CLI is a multi-language code linter, auto-formatter, and security scanner.

Engineering teams use Qlty CLI for static analysis and auto-formatting of all of their code using a single tool with fast, consistent results.

As a Git-aware tool, Qlty CLI makes adopting linting into the development workflow easy by limiting results to only _new_ issues.

Qlty CLI is implemented in Rust, supported by [Qlty Software](https://qlty.sh), free to use, and is published under a [Fair Source](https://fair.io/) license.

## Features

- 🐞 Linting (for every programming language)
- 🖌️ Auto-formatting
- 🚨 Security scanning (IaC, SAST, SCA, and more)
- 📊 Complexity metrics and duplication
- 💩 Maintainability smells

## Installation

Qlty CLI is available for MacOS, Linux, and Windows.

```bash
# Install on MacOS or Linux:
curl https://qlty.sh | bash

# Install on Windows:
powershell -c "iwr https://qlty.sh | iex"
```

## Usage

```bash
# Setup Qlty within a Git repository:
cd my_repo/
qlty init

# View a sample of lint issues:
qlty check --sample=5

# Auto-format the codebase
qlty fmt --all

# Scan for code smells like duplication:
qlty smells --all

# Review a summary of code quality metrics
qlty metrics --all --max-depth=2 --sort complexity --limit 10
```

## Configuration

Qlty CLI is configured using a `.qlty/qlty.toml` file in your Git repository. You can generate a default configuration with `qlty init` and then customize it.

Read our documentation about [configuration](https://docs.qlty.sh/analysis-configuration) for more information.

## Development

Develpoing on Qlty CLI requires a working Rust toolchain.

```bash
cargo build
cargo test
```

## Contributing

1. Read the Guide to Contributing in CONTRIBUTING.md
2. Fork the repository and
3. Submit a pull request.

Contributions require agreeing to our [Contributor License Agreement](https://gist.github.com/brynary/00d59e41ffd852636a2f8a8f5f5aa69b) (CLA).

## Support

- Read the [documentation](https://docs.qlty.sh)
- Join our [Discord](https://qlty.sh/discord) chat
- [Community support](https://github.com/orgs/qltysh/discussions/categories/q-a) via GitHub Discussions
- [Feature requests](https://github.com/orgs/qltysh/discussions/categories/feedback) via GitHub Discussions
- [Bug reports](https://github.com/qltysh/qlty/issues/new/choose) via GitHub Issues
- [Plugin request](https://github.com/qltysh/qlty/issues/new/choose) via GitHub Issues

## License

Qlty CLI is licensed under the Functional Source License (FSL). More details are available in LICENSE.md.

## Acknowledgments

We would like to thank all of the developers of code quality tooling like linters and meta-linters as well as everyone who has contributed to the field of open source static analysis. Qlty CLI stands on the shoulders of decades of this excellent work.

Development of Qlty CLI is sponsored by [Qlty Software](https://qlty.sh).

0 comments on commit de32d93

Please sign in to comment.