Why is this an issue?

Package body should be defined in the same file as its package declaration. It keeps things simple, it is easy to find the package implementation and it reduces the number of files in your project.

How to fix it

Code examples

Noncompliant code example

File 1:
package my_package is
end;

File 2:
package body my_package is
end;

Compliant solution

File 1:
package my_package is
end;

package body my_package is
end;

Resources

Related rules