# Setting fortls severity

**URL:** <https://fortran-lang.discourse.group/t/setting-fortls-severity/7931>\
**Category:** Visual Studio Code\
**Created:** [April 30, 2024, 10:40am UTC](https://fortran-lang.discourse.group/t/setting-fortls-severity/7931 "2024-04-30T10:40:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saru1799](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@saru1799](https://fortran-lang.discourse.group/u/saru1799)\
**Post date:** [April 30, 2024, 10:40am UTC](https://fortran-lang.discourse.group/t/setting-fortls-severity/7931/1 "2024-04-30T10:40:00Z")

</div>

Hi!  
I am using fortran in vscode (but I am quite a new user on both fortran and vscode). I have modern fortran and fortls extensions. When the errors appear, they normally appear by severity order (like, errors before warnings, so if I have an errors I cannot see the warnings). The thing is I want to see them all together (for example, in Python I did this by changing all the severities in flake8 to warnings). I need to do this because I am compiling the program with cmake so my file will never find the corresponding .mod files and, with that error, I cannot see any other.  
Thank you in advance, I hope I explained myself well!

---

<div class="post-metadata">

**Author:** ![scottza](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@scottza](https://fortran-lang.discourse.group/u/scottza)\
**Post date:** [April 30, 2024, 10:59am UTC](https://fortran-lang.discourse.group/t/setting-fortls-severity/7931/2 "2024-04-30T10:59:53Z")

</div>

If you are setting the module path in `CMakeLists.txt` using something like  
`set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/mod)`

Then I think that setting Fortran\>Linter:Include Paths like `${workspaceFolder}/build/mod` in the Modern Fortran settings should work if you are requesting CMake to build under the directory `build`

Hopefully I also explained myself well ;p
