forked from phoedos/pmd
Update changelog
This commit is contained in:
@ -5,7 +5,6 @@ package net.sourceforge.pmd.cpd;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FilenameFilter;
|
||||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.Arrays;
|
||||
@ -77,7 +76,7 @@ public class CPDCommandLineInterface {
|
||||
//Add files
|
||||
if ( null != arguments.getFiles() && ! arguments.getFiles().isEmpty() )
|
||||
{
|
||||
addSourcesFilesToCPD(arguments.getFiles(), arguments.filenameFilter(), cpd, !arguments.isNonRecursive());
|
||||
addSourcesFilesToCPD(arguments.getFiles(), cpd, !arguments.isNonRecursive());
|
||||
}
|
||||
|
||||
//Add Database URIS
|
||||
@ -93,7 +92,7 @@ public class CPDCommandLineInterface {
|
||||
}
|
||||
}
|
||||
|
||||
private static void addSourcesFilesToCPD(List<File> files, FilenameFilter filter, CPD cpd, boolean recursive) {
|
||||
private static void addSourcesFilesToCPD(List<File> files, CPD cpd, boolean recursive) {
|
||||
try {
|
||||
for (File file : files) {
|
||||
if (!file.exists()) {
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
* [#27](https://github.com/adangel/pmd/pull/27): Added support for Raw String Literals (C++11).
|
||||
* [#29](https://github.com/adangel/pmd/pull/29): Added support for files with UTF-8 BOM to JSP tokenizer.
|
||||
* [#30](https://github.com/adangel/pmd/pull/30): Removed file filter for files that are explicitly specified on the CPD command line using the '--files' command line option.
|
||||
* [#79](https://github.com/pmd/pmd/pull/79): do not flag public static void main(String[]) as UseVarargs; ignore @Override for UseVarargs
|
||||
* [#80](https://github.com/pmd/pmd/pull/80): Update mvn-plugin.md
|
||||
* [#83](https://github.com/pmd/pmd/pull/83): Adds new Code Climate-compliant JSON renderer
|
||||
@ -28,3 +29,8 @@
|
||||
|
||||
**API Changes:**
|
||||
|
||||
**CLI Changes:**
|
||||
|
||||
* CPD: If a complete filename is specified, the language dependent filename filter is not applied. This allows
|
||||
to scan files, that are not using the standard file extension. If a directory is specified, the filename filter
|
||||
is still applied and only those files with the correct file extension of the language are scanned.
|
||||
|
Reference in New Issue
Block a user