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

Try using reviewdog/action-suggester #41

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/suggester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: reviewdog-suggester

on:
pull_request:

jobs:
JuliaFormatter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
- name: Install dependencies
run: |
using Pkg
Pkg.add("JuliaFormatter")
shell: julia --color=yes {0}
- name: Format Julia files
run: |
using JuliaFormatter
format(".")
shell: julia --color=yes --compile=min -O0 {0}
- name: suggester / JuliaFormatter
uses: reviewdog/action-suggester@v1
with:
tool_name: JuliaFormatter
fail_on_error: true
1 change: 1 addition & 0 deletions JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
always_for_in = true
9 changes: 9 additions & 0 deletions src/MyPlayground.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@ module MyPlayground
# Use README as the docstring of the module:
@doc read(joinpath(dirname(@__DIR__), "README.md"), String) MyPlayground

function nicely(formatted)
code
for x in xs
end
end

another(badly) = formatted ->
code
tkf marked this conversation as resolved.
Show resolved Hide resolved

end # module