# Source Code Quality Assurance / Linting

**URL:** https://discourse.julialang.org/t/source-code-quality-assurance-linting/66599
**Category:** Tooling
**Created:** [August 18, 2021, 12:09pm UTC](https://discourse.julialang.org/t/source-code-quality-assurance-linting/66599 "2021-08-18T12:09:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jan\_Dolinsky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jan_dolinsky/32/31347_2.png) [@Jan\_Dolinsky](https://discourse.julialang.org/u/Jan_Dolinsky)
#### Post date: [August 18, 2021, 12:09pm UTC](https://discourse.julialang.org/t/source-code-quality-assurance-linting/66599/1 "2021-08-18T12:09:58Z")

</div>

Hello,

I would like to enable a git hook for some basic quality assurance of our development efforts in Julia. In particular, I would like to check for

- line is not longer than C characters
- function is not longer than X lines
- if else block is not longer than Y lines
- try catch block is not longer than Y lines

and similar.

How do I do this? Which package I should go for? I found few linting packages but was not sure which one to pick.

Thanks!

---

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [August 18, 2021, 12:11pm UTC](https://discourse.julialang.org/t/source-code-quality-assurance-linting/66599/2 "2021-08-18T12:11:09Z")

</div>

[https://github.com/domluna/JuliaFormatter.jl](https://github.com/domluna/JuliaFormatter.jl)

---

<div class="post-metadata">

### Author: ![Jan\_Dolinsky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jan_dolinsky/32/31347_2.png) [@Jan\_Dolinsky](https://discourse.julialang.org/u/Jan_Dolinsky)
#### Post date: [August 18, 2021, 12:13pm UTC](https://discourse.julialang.org/t/source-code-quality-assurance-linting/66599/3 "2021-08-18T12:13:50Z")

</div>

I have to say that I missed this one as I was looking for keyword “lint” 🙂 . I will check it out, thanks!

---

<div class="post-metadata">

### Author: ![Jan\_Dolinsky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jan_dolinsky/32/31347_2.png) [@Jan\_Dolinsky](https://discourse.julialang.org/u/Jan_Dolinsky)
#### Post date: [March 3, 2022, 1:44pm UTC](https://discourse.julialang.org/t/source-code-quality-assurance-linting/66599/4 "2022-03-03T13:44:55Z")

</div>

Hello, although this is a bit older thread, let me re-open it - once I started using Juliaformatter.jl I could not find any options to e.g. check for number of lines in a function so that I can add it to a git hook to prevent writing long functions (e.g. longer than 50 lines).

Do I need to look for a linter instead and if yes what are the options?  
Thanks!
