add format check action - initial repo format#2520
add format check action - initial repo format#2520t-bltg wants to merge 16 commits intoMakieOrg:masterfrom
Conversation
fcf0d0d to
ee0aa3c
Compare
1e09a72 to
389be7a
Compare
| println( | ||
| io, | ||
| """ | ||
| in $(value_t) fragment_$(name)_index; | ||
| uniform $(sampler_t) $(name)_texture; | ||
|
|
||
| vec4 get_$(name)(){ | ||
| return texture($(name)_texture, fragment_$(name)_index); | ||
| } | ||
| """) | ||
| vec4 get_$(name)(){ | ||
| return texture($(name)_texture, fragment_$(name)_index); | ||
| } | ||
| """, | ||
| ) |
There was a problem hiding this comment.
Would be good to ignore indention for this
There was a problem hiding this comment.
This is a bit annoying yes (domluna/JuliaFormatter.jl#501), but still readable.
| function draw_poly( | ||
| scene::Scene, | ||
| screen::Screen, | ||
| poly, | ||
| points::Vector{<:Point2}, | ||
| color::Union{Symbol, Colorant, Makie.AbstractPattern}, | ||
| model, | ||
| strokecolor, | ||
| strokewidth, | ||
| ) |
There was a problem hiding this comment.
I prefer this to be double indented so that function .. end and ( .. ) are on different levels and visually distinct.
There was a problem hiding this comment.
I think this is a matter of taste.
There was a problem hiding this comment.
Sure, that's true for pretty much all of these. I'm mostly pointing this stuff out so it can be discussed and we can figure out what we actually want
| z = | ||
| ((r - i) * img[l, b] + (i - l) * img[r, b]) * (t - j) + | ||
| ((r - i) * img[l, t] + (i - l) * img[r, t]) * (j - b) |
There was a problem hiding this comment.
I guess this is very subjective and nit-picky but I think in some situations (like here) it's nicer to have e.g. (t-j) instead of (t - j). The former sort of establishes groups and gives you less separate things to look at which, in my opinion, helps readability. Maybe this is something to keep unformated?
There was a problem hiding this comment.
Not sure, I personally find this quite readable, and consistent with the rest.
| @@ -4,206 +4,205 @@ represent keyboard buttons. | |||
| """ | |||
| module Keyboard | |||
There was a problem hiding this comment.
I don't think we should lose the indention for modules with how we use them here.
440bcff to
2a15ad7
Compare
|
I have taken another approach, since there were too many controversial changes as @ffreyer pointed out. I propose instead to use the
|
|
I'll say it again here so it's more visible: Most of my complaints are just my opinions on code style. My main reason for posting them is so we can discuss those points and figure out what styling we want. It doesn't need to be what I suggest. But I think this pr is the place to discuss that. |
|
Code style is always controversial, and comments on this PR are very welcome. |
20aa8db to
3e58ffe
Compare
1397143 to
781c1f6
Compare
e55ee76 to
eeeea7c
Compare
|
Rebased against latest master. Should this go in (based on #2493 (comment)) ? |
|
Superseded by #5078. |
Description
Fix #2519
I've ran on a single format error on https://github.com/MakieOrg/Makie.jl/blob/master/src/camera/camera.jl#L32-L34, which was trivial to fix, and I'm going to open an issue + PR inJuliaFormatterto fix this, but this is non-blocking.Type of change
Delete options that do not apply:
Checklist