Skip to content

Latest commit

 

History

History
148 lines (105 loc) · 5.5 KB

FAQ.rst

File metadata and controls

148 lines (105 loc) · 5.5 KB

Frequently Asked Questions

This is a list of frequently asked questions, aiming to answer any possible questions by newcomers or even contributors.

coala is like a spell and grammar checker for source code. It offers one command and one configuration to lint all languages in your project.

In short coala does two things:

  • Makes it easy to use existing static code analyzers such as clang, pylint(and many others) by unifying and simplifying the configs
  • Makes it easy to write new routines by offering the interface part and everything but the actual analyzer routine. Write just the parameters your custom analysis needs and the analysis part, we'll take care of the rest

Yes! There's an argument --ci that runs the coala binary in non-interactive mode, which shows results cleanly in the log and returns error codes if something goes wrong. List of the exit codes and their meanings: Exit Codes.

coala stands for "COde AnaLysis Application", works well with animals and thus is well visualizable, it's easy to memorize.

coala was founded for fun. coala was, is and will always be free software and is developed mostly by students and there's no corporate interest and no CLA. If you want to back us, contact us on our gitter channel.

A list of all analysis routines and supported languages is fully browsable.

For a top level view on what languages support what kind of analysis roughly, consult this link.

There are also generic bears, which can be applied language independently on your code. Their capabilities and information can be seen here.

A bear is a routine that is used by coala to check your code for lint issues. A group of these routines(bears) is used for defining certain quality requirements in various languages. A bear can analyse code for potential problems, calculate metrics and even provide corrections for your code. While many of these bears for various languages are shipped along with coala, you can easily write some of your own.

If you're looking to get started using coala, we have a :doc:`full tutorial <../Users/Tutorial>` that will teach you everything you need to know to use coala.

If you're willing to contribute and become a part of our coalaian community, we have written a newcomers guide that will help you fix an issue on your own, just by following and understanding the indications. It is meant for newcomers, and it does not require you to have any precedent knowledge regarding coala.

We are very active on our gitter channel and will try to respond to any question in a matter of minutes. However, for a full list of how to get in touch with us, consult :doc:`this link <Getting_In_Touch>`.

Don't panic!

Scroll down the error log, you will probably see something like ValueError: ('Expected version spec in', 'appdirs ~=1.4.0', 'at', ' ~=1.4.0') there. If not, ask us!

If so, you're probably on a Debian with an outdated pip that doesn't support our version specifiers yet. You have to create a virtual environment with a newer pip:

pip3 install virtualenv
virtualenv -p python3 ~/venvs/coala
. ~/venvs/coala/bin/activate
pip install -U pip
pip install coala-bears

should do the job. You have to activate this virtualenv on every terminal session you want to use coala though (tip: add it to bashrc!)

If you're new to coala or need any help contributing to coala,please checkout the coala API documentation.

The coala team and community is made up of a mixture of professionals and volunteers from all over the world. Diversity is one of our huge strengths, but it can also lead to communication issues and unhappiness. To that end, we have a few ground rules that we ask people to adhere to. A guide to make it easier to enrich all of us and the technical communities in which we participate. This code of conduct applies to all spaces managed by the coala project.

If you believe someone is violating the code of conduct, we ask that you report it by emailing community AT coala DOT io. In general:

  • Be friendly and patient.
  • Be welcoming.
  • Be considerate.
  • Be respectful.
  • Be careful in the words that you choose.
  • When we disagree, try to understand why.

For more information refer Code of Conduct.