linter icon indicating copy to clipboard operation
linter copied to clipboard

How can I make sure I get code warnings every single time?

Open aa8y opened this issue 8 years ago • 1 comments

I am kinda new to Scala and this might be be an SBT thing, but I get the linter warnings only the first time I compile the code. Every subsequent compile goes thorough without any warnings. This might be because the compiled class files are not compiled again unless there are any changes, but is there a way to show the warnings every time nonetheless?

aa8y avatar Mar 04 '16 16:03 aa8y

sbt only recompiles the files that have changed since the last compile, and Linter is a compiler plugin so it only sees what the compiler sees, and doesn't have any memory of previous compilations.

One way is to do a sbt clean compile, but it will make your compile time a lot longer.

HairyFotr avatar Mar 05 '16 21:03 HairyFotr