qltysh / qlty

Multi-language code linter, auto-formatter, and security scanner
https://qlty.sh/
Other
2.55k stars 249 forks source link

Docs: Upgrade guide for CodeClimate users #1244

Open ukch opened 3 days ago

ukch commented 3 days ago

What happened?

I have been using CodeClimate for a few years, mostly to track test coverage, but also for the quality tools. I read the announcement about qlty and I see the new CLI and cloud platform are now live, but I don't see any upgrade guide for those of us still using CodeClimate. Please can this be provided so we can enjoy the new product?

What did you expect to happen?

A seamless upgrade from CodeClimate

Can you reproduce the problem?

Yes, consistently

CLI Version

codeclimate/codeclimate:latest (Docker)

Relevant log output

No response

brynary commented 3 days ago

Thank you for this suggestion, @ukch. Yes, we will add an upgrade guide for moving from Code Climate Quality to Qlty this week.

Today we have documentation but we are missing the upgrade guide. In the meantime, here are a few pointers which may be helpful...

We built Qlty to be able to run side-by-side with Code Climate Quality so that you can try it out before making the switch. When you log in to Qlty, your projects should be there waiting for you. (Soon we will make it easier to switch back and forth.)

Qlty has a new, updated set of static analysis plugins and uses a different configuration file (.qlty/qlty.toml). We have some limited support for transforming a .codeclimate.yml configuration into a Qlty configuration which you can try out like this:

# Install Qlty CLI
curl https://qlty.sh | sh

# Generate a qlty.toml based on repository contents 
qlty init

# Apply some settings from an existing .codeclimate.yml into the  qlty.toml
qlty config migrate

# Install linters (and runtimes to run them)
qlty install

# Run linters, sample the results
qlty check --sample 5

# Auto-format all files
qlty fmt --all

If your project has a qlty.toml checked in, we use that when analyzing it on the cloud. Otherwise we generate one each time.

In the Project Settings area in Qlty Cloud you can turn on GitHuh integration (PR analysis, commit statuses and code review comments). We also have some early access features we can turn on for your account if you tell us the GitHub organization name.

Code coverage requires additional setup in the CI scripts, unfortunately. You can get your code coverage upload token from within Qlty Cloud.

Please let us know if you have any questions or run into any issues and we would be happy to help!

tsaavik commented 6 hours ago

qlty smells seems to be the replacement for codeclimate analyze