Skip to content
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

Clean up formatting of entire repo #49

Merged
merged 6 commits into from
May 25, 2020
Merged

Conversation

vtjeng
Copy link
Owner

@vtjeng vtjeng commented May 25, 2020

We standardize the formatting via JuliaFormatter v0.5.4 with the formatting options outlined in https://github.com/vtjeng/MIPVerify.jl/blob/c7a402701948a5901e0ef436efb2227363bb88ad/.JuliaFormatter.toml using the following command

julia -e 'using Pkg; Pkg.activate(tempname()); Pkg.add(PackageSpec(name="JuliaFormatter", version="0.5.4")); using JuliaFormatter; format(".", verbose=true)'

In addition, we remove whitespace via the command

find . -type f -name '*.txt' | xargs --replace=FILE sed --in-place 's/[[:space:]]\+$//' FILE

Some minor formatting changes were carried out to avoid excessively ugly refactors.

Ran the command

```
find . -type f -name '*.txt' | xargs --replace=FILE sed --in-place 's/[[:space:]]\+$//' FILE
```

Source: https://stackoverflow.com/a/10711226/1404966
```
julia -e 'using Pkg; Pkg.activate(tempname()); Pkg.add(PackageSpec(name="JuliaFormatter", version="0.5.4")); using JuliaFormatter; format(".", verbose=true)'
```
@vtjeng vtjeng changed the title Clean up formatting of entire repo. Clean up formatting of entire repo May 25, 2020
@vtjeng vtjeng merged commit 18b612f into master May 25, 2020
@vtjeng vtjeng deleted the vtjeng/clean-up-formatting branch May 25, 2020 05:42
vtjeng referenced this pull request May 25, 2020
+ Make identification of repo root more robust.
+ Improve readability of multiline `julia` command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant