Why is this an issue?

To avoid confusion, even in different scopes, there should not be multiple configurations with the same name.

How to fix it

Code examples

Noncompliant code example

File 1:
config fly;
  ...
endconfig

File 2:
config dream;
  config fly;
    ...
  endconfig
  ...
endconfig

Compliant solution

File 1:
config fly;
  ...
endconfig

File 2:
config dream;
  config sleep;
    ...
  endconfig
  ...
endconfig