Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/How to make 'daml damlc lint' report all errors instead of stopping at the first one?Forum ↗

How to make 'daml damlc lint' report all errors instead of stopping at the first one?

App Development2 posts35 viewsLast activity Apr 2026
RA
raphaelaOP
Dec 2025

I am running the DAML linter using daml damlc lint ./daml/Setup.daml. Currently, the linter stops as soon as it encounters the first error in the file. I would like it to continue linting and report all errors found in the file in a single run. Is there a configuration option, flag, or recommended approach to make daml damlc lint report all errors instead of failing fast?

JA
Jatin_Pandya_cf
Apr 2026

hey @raphaela
We have depreciated daml assistant and now shifted to Digital Asset Package Manager (Dpm) — Digital Asset’s platform documentation sodpm damlcis the correct way to invoke the compiler/linter today.
also…lint subcommand in dpm damlc inherits the underlying damlcbehavior as daml damlc lint so it still needs to successfully type check before emitting HLint suggestions.

So the workarounds remain the same asdpm damlc lint with -fmax-errors to raise the GHC error cap like

dpm damlc lint ./daml/Setup.daml --ghc-option=-fmax-errors=100

…Or use dpm build first to surface all compilation errors then dpm damlc lint on a clean compiling file to get the improvement suggestions??

← Back to Discussions