command: Don't show more than two of the same warning
command: Don't show more than two of the same warning

Some of our warnings are produced in response to particular configuration
constructs which might appear many times across a Terraform configuration.
To avoid the warning output dwarfing all of the other output, we'll use
ConsolidateWarnings to limit each distinct warning summary to appear at
most twice, and annotate the final one in the sequence with an additional
paragraph noting that some number of them have been hidden.

This is intended as a compromise to ensure that these warnings are still
seen and noted but to help ensure that we won't produce so many of them
as to distract from other output that appears alongside them.

This applies only to warnings relating to specific configuration ranges;
errors will continue to be shown individually, and sourceless warnings
(which are rare in Terraform today) will likewise remain ungrouped because
they are less likely to be repeating the same statement about different
instances of the same problem throughout the configuration.

nlamirault/terraform,VladRassokhin/terraform,hashicorp/terraform,nlamirault/terraform,gechr/terraform,nlamirault/terraform,heimweh/terraform,tommynsong/terraform,tommynsong/terraform,apparentlymart/terraform,apparentlymart/terraform,ewbankkit/terraform,ewbankkit/terraform,pryorda/terraform,ewbankkit/terraform,gechr/terraform,heimweh/terraform,pradeepbhadani/terraform,pryorda/terraform,rnaveiras/terraform,pdecat/terraform,heimweh/terraform,pdecat/terraform,ewbankkit/terraform,rnaveiras/terraform,apparentlymart/terraform,rnaveiras/terraform,hashicorp/terraform,gechr/terraform,pdecat/terraform,VladRassokhin/terraform,VladRassokhin/terraform,pdecat/terraform,VladRassokhin/terraform,tommynsong/terraform,heimweh/terraform,apparentlymart/terraform,pradeepbhadani/terraform,apparentlymart/terraform,pradeepbhadani/terraform,hashicorp/terraform,heimweh/terraform,pryorda/terraform