How to make 'daml damlc lint' report all errors instead of stopping at the first one?
- 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 makedaml damlc lintreport all errors instead of failing fast? - 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 indpm damlcinherits the underlyingdamlcbehavior asdaml damlc lintso it still needs to successfully type check before emitting HLint suggestions.So the workarounds remain the same as
dpm damlc lintwith-fmax-errorsto raise the GHC error cap likedpm damlc lint ./daml/Setup.daml --ghc-option=-fmax-errors=100…Or use
dpm buildfirst to surface all compilation errors thendpm damlc linton a clean compiling file to get the improvement suggestions??