mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
0742e756e5
Because we gather together diagnostics from many different parts of the codebase, the list often ends up being in a non-ideal order. Here we define a partial ordering for diagnostics that should hopefully make them easier to scan when many are present, by grouping together diagnostics that are of the same severity and belong to the same file. We use sort.Stable here because we have a partial order and so we need to make sure that diagnostics that do not have a relative ordering will remain in their original order. This sorting is applied just in time before rendering the diagnostics in command.Meta.showDiagnostics. |
||
---|---|---|
.. | ||
config_traversals.go | ||
contextual_test.go | ||
contextual.go | ||
diagnostic_base.go | ||
diagnostic.go | ||
diagnostics_test.go | ||
diagnostics.go | ||
doc.go | ||
error.go | ||
hcl.go | ||
rpc_friendly_test.go | ||
rpc_friendly.go | ||
severity_string.go | ||
simple_warning.go | ||
source_range.go | ||
sourceless.go |