Skip to content

Commit

Permalink
Don't disable $ rules (digital-asset#2909)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shayne Fletcher authored Sep 16, 2019
1 parent 00f4ac1 commit 4140b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions compiler/damlc/daml-ide-core/dlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,5 @@
- ignore: {name: Use camelCase}
# Not relevant to DAML
- ignore: {name: Use newtype instead of data}
# Bracketing rules
# Don't warn on redundant parens
- ignore: {name: Redundant bracket}
- ignore: {name: Redundant $}
- ignore: {name: Move brackets to avoid $}
2 changes: 1 addition & 1 deletion compiler/damlc/tests/daml-test-files/Fungible.daml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ template Quantity t => Fungible t with
otherAsset <- fetch other
let newAmount = asset.amount + otherAsset.asset.amount
archive other
create $ Fungible $ asset with amount = newAmount
create $ Fungible asset with amount = newAmount

Split: (ContractId (Fungible t), ContractId (Fungible t))
with splitAmount: Decimal
Expand Down

0 comments on commit 4140b9e

Please sign in to comment.