CP_REPORTER(1)
π CP_reporter / CP_REPORTER(1) π
Okay so bestie, this is the manual page for CP_reporter β the header calls it CP_REPORTER(1), and weβre folding that name right up here at the top like a little name tag π«Ά. This tool is lowkey a copy-paste detective, and honestly? Itβs giving "I see what you duplicated there" energy π.
πΈ SYNOPSIS πΈ
CP_reporter [options] path1 path2 ...
π«Ά DESCRIPTION π«Ά
CP_reporter reads the specified files and analyses the content for repeated substrings as they might occur when copying and pasting code. Bestie, it is literally hunting for the "wait, haven't I seen this exact chunk before?" moments π.
When a duplication is found, the position and range is reported for each copy found, and the duplicated content is printed once. The findings are sorted by length in bytes. No cap.
The arguments are paths which can be directory paths or file paths or glob expressions. All three, bestie β directory paths, file paths, and glob expressions π.
β¨ OPTIONS β¨
--minimum AMOUNTβ sets the minimum extent a duplication should have to be reported. Default is set to 5 lines. Two units are supported: positive numbers indicatelineswhile negative numbers specifybytes. So line-count girlies use positives, and byte-gremlins use negatives π¦.--dir DIRβ specifies the directory that is scanned recursively for files. Default is set tolib.--ignore PATTERNβ suppress the report of all duplications that match the ignore filter. No default, may be given multiple times. For example,/\A(^#.+$)+\z/would suppress a duplication when all lines of it begin with a comment. Obsessed with a filter that knows a comment block when it sees one π .--terseβ suppress the output of the content of a duplication. Only positions of duplications are printed out. Short, sweet, no duplicated-content reveal π.
π BUGS & LIMITATIONS π
- No rc file yet. π
- Limited to 8-bit characters yet.
- No text preprocessing yet ( e.g. whitespace shrinking or comments elimination)
- No real parsing of Perl code yet.
π ACKNOWLEDGEMENTS π
This program was inspired a bit by Ovids find_duplicate_code.pl. Cute π.
Okay bye bestie π«Ά sign-off: this pageβs footer says source/version perl v5.42.0, date 2019-05-13, and manual name CP_REPORTER(1). Periodt πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Code-DRY 0.10-bp160.1.5 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Code-DRY 0.10-bp160.1.5 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Code-DRY 0.10-bp160.1.5 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Code-DRY 0.10-bp160.1.5 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms