This rule encourages the use of COPY instead of ADD in Dockerfiles when simply copying files or directories. While both instructions can copy files into the image, ADD has additional functionality such as extracting local tar archives and fetching remote URLs.
To make your Dockerfiles more uniform and predictable, you should use COPY unless you need ADD’s extra functionality.