AlgebraicJulia / Decapodes.jl

A framework for composing and simulating multiphysics systems
https://algebraicjulia.github.io/Decapodes.jl/dev/
MIT License
49 stars 14 forks source link

Linting #211

Open lukem12345 opened 7 months ago

lukem12345 commented 7 months ago

We should add some linting rules to this and other AJ repos. Possible rules include:

quffaro commented 6 months ago

There is a julia-action called julia-format that looks promising!

It uses JuliaFormatter, which offers OOTB:

does not offer OOTB:

However the Custom Styles page suggests that it is possible to overload style functions to enforce these patterns.

The julia-format action either creates changes in the code or creates PRs (noisy, but safe; no direct changes to code). Should we add it to our github actions?

The roadmap for implementation:

lukem12345 commented 3 months ago

We should also see what rules from the official AJ style guide that would be easy to mechanize.