Skip to content

Commit

Permalink
Tutorial.rst: Doc on ConfigGenerator
Browse files Browse the repository at this point in the history
This adds documentation on how to generate config files using config generator tool

Related to coala/coala#6049
  • Loading branch information
PrajwalM2212 committed Aug 15, 2019
1 parent 7ce97cd commit 3414ea6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Users/Tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,47 @@ But don't stop reading - you don't have to enter all those values again!
We have given coala the ``--save`` argument, which means that it will
automatically generate a ``.coafile`` into the current directory. Read on!

Generation of configuration files based on style guides
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

coala can automatically generate a configuration file
for you based on your preference of languages and style
guides.

If you want to generate a configuration file for python
language based on pep8 style guide you can execute

::

$ coala -g python:pep8:app.py

This will generate a .coafile for you by which you can lint
your app.py file bases on pep8 style guide.

The general syntax for the command is

::

$ coala -g language:style_guide:files

You can also use this tool to generate a configuration
file for different languages at the same time

::

$ coala -g python:pep8:app.py html:google:index.html

This command will generate a .coafile for linting
your app.py according to pep8 guidelines and your
index.html according to google style guidelines.

Sometimes you may want to inherit certain files to
all the sections. This can be done by executing

::

$ coala -g language:style_guide:files --files style_to_lint

Configuration Files - coafiles
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 3414ea6

Please sign in to comment.