mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
add format.sh info to readme
This commit is contained in:
parent
852ab4a25d
commit
19c9a82b2a
10
README.md
10
README.md
@ -94,6 +94,16 @@ You're on your own now. Get your C code compiling to match the original assembly
|
|||||||
|
|
||||||
If you use Visual Studio Code, you can use _Run Test Task_ to run `diff.py` and show you errors and warnings from the compiler inline. You might want to attach _Run Test Task_ to a keybinding, as you'll be using it often.
|
If you use Visual Studio Code, you can use _Run Test Task_ to run `diff.py` and show you errors and warnings from the compiler inline. You might want to attach _Run Test Task_ to a keybinding, as you'll be using it often.
|
||||||
|
|
||||||
|
#### Formatting and linting
|
||||||
|
|
||||||
|
Once your function is matching, you'll want to make a pull request. Before you do that, run the following script to reformat your code. (You can also format specific files with `./format.sh path/to/file.c`.)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ ./format.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
If `format.sh` displays any errors, go and fix them. If you can't fix them without breaking the function from matching, append `// NOLINT` to the offending line.
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
||||||
* If you received the following error when running `make`:
|
* If you received the following error when running `make`:
|
||||||
|
Loading…
Reference in New Issue
Block a user