mirror of
https://github.com/GaloisInc/macaw.git
synced 2024-11-25 21:54:51 +03:00
ecb2a3650c
There was a lot of redundant unwrapping and re-wrapping of the assignment of `TypeRepr`s to the architecture register context into and out of a `StructRepr`. Remove this. Also, add an hlint configuration file to help avoid this in the future, and a Github Actions workflow to enforce this in CI.
10 lines
360 B
YAML
10 lines
360 B
YAML
# HLint's default suggestions are opinionated, so we disable all of them by
|
|
# default and enable just a small subset we can agree on.
|
|
|
|
- ignore: {} # ignore all
|
|
|
|
- error:
|
|
name: Use crucGenRegStructType
|
|
lhs: "Lang.Crucible.Types.StructRepr (Data.Macaw.Symbolic.CrucGen.crucArchRegTypes x)"
|
|
rhs: 'Data.Macaw.Symbolic.CrucGen.crucGenRegStructType x'
|