Linter/formatter for naming conventions?

DanielSussman
Mon, 11 Aug 2025 20:07:52 +0000
New to Julia

Hi all,

I’m working on writing more idiomatic Julia code and trying to adhere to a common style. I know this is a relatively minor detail, but for whatever reason – old habits die hard, I guess! – I consistently fail to correctly mix CamelCase/snake_case/SCREAMING_SNAKE_CASE/etc for different names as I’m typing.

Since I usually think that style guides are most effective when their rules can be enforced automatically, I was hoping to find a linter or formatter that would handle this for me. I looked through the documentation for great tools like JuliaFormatter.jl, StaticLint.jl, and LanguageServer.jl; while they cover just about every other aspect of the style guides I couldn’t find an option for this.

Building things is fun / educational, so I glued together an imperfect but (relatively) functional implementation using neovim’s treesitter integration. At the same time… “enforcing naming conventions” feels like a common enough issue that I suspect a more standard solution already exists. Did I miss a standard tool or configuration option in the ecosystem for this?

Thanks for any pointers!

2 posts - 1 participant