Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] CPD: Removed file filter for files that are explicitly specified on the CPD command line using the '--files' command line option. #30

Merged
merged 1 commit into from
Jan 20, 2016

Conversation

tiobe
Copy link

@tiobe tiobe commented Dec 10, 2015

At TIOBE we want to use CPD to check duplicated code for TypeScript and XAML with the built-in Ecmascript and JSP tokenizers. The TypeScript syntax resembles Javascript and XAML files are XML files, just as JSP files.

Unfortunately we cannot use the built-in tokenizers, because CPD rejects the files because the file extensions do not match '.js' or '.jsp'. To fix this problem, I removed the file filter when a user explicit specifies a file name on the CPD command line instead of a directory. I think this is a rare use case, a normal user will specify a directory containing the source files, so it is safe to assume that the user knows what he is doing.

…D command line using the '--files' command line option.
@adangel adangel merged commit 10db98b into adangel:pmd/5.3.x Jan 20, 2016
@adangel
Copy link
Owner

adangel commented Jan 20, 2016

Thanks!

@tiobe tiobe deleted the tiobe/remove_filefilter_for_files branch February 18, 2016 12:41
adangel pushed a commit that referenced this pull request Apr 10, 2016
@adangel adangel changed the title Removed file filter for files that are explicitly specified on the CPD command line using the '--files' command line option. [core] CPD: Removed file filter for files that are explicitly specified on the CPD command line using the '--files' command line option. Jun 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants