Skip to content
CCPEDIAby Unity Nodes
App Development

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

2 posts50 viewsLast activity Apr 2026

  1. raphaelaOP

    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?

  2. Jatin_Pandya_cf

    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??