@@ -129,6 +129,47 @@ But don't stop reading - you don't have to enter all those values again!
129
129
We have given coala the ``--save `` argument, which means that it will
130
130
automatically generate a ``.coafile `` into the current directory. Read on!
131
131
132
+ Generation of configuration files based on style guides
133
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134
+
135
+ coala can automatically generate a configuration file
136
+ for you based on your preference of languages and style
137
+ guides.
138
+
139
+ If you want to generate a configuration file for python
140
+ language based on pep8 style guide you can execute
141
+
142
+ ::
143
+
144
+ $ coala -g python:pep8:**.py
145
+
146
+ This will generate a .coafile for you by which you can lint
147
+ all your python files based on pep8 style guide.
148
+
149
+ The general syntax for the command is
150
+
151
+ ::
152
+
153
+ $ coala -g language:style_guide:files:excludes
154
+
155
+ You can also use this tool to generate a configuration
156
+ file for different languages at the same time
157
+
158
+ ::
159
+
160
+ $ coala -g python:pep8:app.py html:google:index.html
161
+
162
+ This command will generate a .coafile for linting
163
+ your app.py according to pep8 guidelines and your
164
+ index.html according to google style guidelines.
165
+
166
+ Sometimes you may want to inherit certain files to
167
+ all the sections. This can be done by executing
168
+
169
+ ::
170
+
171
+ $ coala -g language:style_guide:files --files style_to_lint
172
+
132
173
Configuration Files - coafiles
133
174
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
134
175
0 commit comments