-
Notifications
You must be signed in to change notification settings - Fork 12
Coala #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Coala #28
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Generated by coala-quickstart on 27 Jun 2018. | ||
[all] | ||
bears = coalaBear, FilenameBear, LineCountBear, InvalidLinkBear | ||
files = **.py, **.md | ||
max_lines_per_file = 100 | ||
[all.python] | ||
bears = DocGrammarBear, PycodestyleBear, DocumentationStyleBear | ||
files = **.py | ||
language = all.python | ||
[all.markdown] | ||
bears = TextLintBear, MarkdownBear | ||
files = **.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#Coala | ||
|
||
This is a guide on how to use coala-bears for this project | ||
|
||
This project consists of a .coafile which basically has all the guidelines | ||
that needs to be followed when working with coala.It can modified. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing a space, "coala. It can..." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And it should it with working with coala or working with wtfpython-web? |
||
|
||
In order to specify the files to analyze, you can use the --files argument. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code highlight There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw we don't need There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you just need to run coala, and since So instead of this section, you should add instructions to install coala using pip, and use it inside the project directory! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay will do |
||
For all file paths, you can specify (recursive) globs. | ||
|
||
`coala --files=src/\*.c --bears=SpaceConsistencyBear --save` | ||
|
||
Coala will now ask you for missing values that are needed to perform the analysis. | ||
Coala will now check the code and, in case there are errors it will be duly pointed out. | ||
You can also run coala in non interactive mode | ||
`coala --non-interactive` | ||
|
||
###Auto-applying results | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of asking user to supply the flags, you can add Example: https://github.com/coala/coala-quickstart/blob/master/.coafile#L25 So adding this default section to the |
||
Coala includes a special setting called default_actions that allows you to set the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All this would no longer be needed one we add default action. We just need the instructions to install and run coala, that's all. All the other changes should be made to |
||
action for a bear that shall be automatically applied on run. It has a command line | ||
alias --apply-patches to make it easier to use. | ||
For eg | ||
`coala -S python.bears=PEP8Bear python.files=\*\*/\*.py --apply-patches --save` | ||
This command would automatically fix all your issues in python files. | ||
|
||
###Help | ||
To know more about Coala you could do the following | ||
`coala -h` | ||
To follow the documentation follow the [link](https://docs.coala.io/en/latest/Users/Tutorial.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.coafile should be in codespace like
.coafile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.coafile is there in the codespace. This is just the documentation