You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #24 from adangel:analyze-modified-files-only
Determine modified files for pull requests and pushes #24
* pr-24:
Log warning when MAX_PAGE is reached
Analyze all files if modified files cannot be determined
Determine modified files for pushes
Fix unit tests under windows
Fix unit tests under windows
Fix unit tests under windows
Fix unit tests under windows
Fix path handling under windows
Revert "REVERT ME - Enable debug logging"
REVERT ME - Enable debug logging
Improved logging
Add debug logging
Don't execute PMD when no modified files are found
Fix input parameter "analyzeModifiedFilesOnly"
Determine modified files for pull requests
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ See also [Uploading a SARIF file to GitHub](https://docs.github.com/en/code-secu
74
74
|`version` |no |"latest"|PMD version to use. Using "latest" automatically downloads the latest version.<br>Available versions: https://github.com/pmd/pmd/releases|
75
75
|`sourcePath`|no |"." |Root directory for sources. Uses by default the current directory|
76
76
|`rulesets` |yes| |Comma separated list of ruleset names to use.|
77
+
|`analyzeModifiedFilesOnly`|no|"true"|Instead of analyze all files under "sourcePath", only the files that have been touched in a pull request or push will be analyzed. This makes the analysis faster and helps especially bigger projects which gradually want to introduce PMD. This helps in enforcing that no new code violation is introduced.<br>Depending on the analyzed language, the results might be less accurate results. At the moment, this is not a problem, as PMD mostly analyzes each file individually, but that might change in the future.<br>If the change is very big, not all files might be analyzed. Currently the maximum number of modified files is 300.|
"patch": "@@ -1,9 +1,10 @@\n public class AvoidCatchingThrowableSample {\n+ \n public void bar() {\n try {\n // do something\n } catch (Throwable th) { // should not catch Throwable\n th.printStackTrace();\n }\n }\n-}\n\\ No newline at end of file\n+}"
0 commit comments