Skip to content

Commit eec6a39

Browse files
lidiams96claude
andcommitted
fix: correct stale Javadoc in getErrorPatternLines()
Remove references to RuboCop-specific patterns (offense, offenses, C:/W:/E:/F: severity prefixes) from the Javadoc — these were removed when ERROR_PATTERN was simplified to universal keywords (error, exception, failed, fatal). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 200a3b4 commit eec6a39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/io/jenkins/plugins/explain_error/PipelineLogExtractor.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,8 @@ private List<String> readLimitedLog(AnnotatedLargeText<? extends FlowNode> logTe
122122
* or when errors appear early in a large build log and would be missed by the
123123
* last-N-lines approach.
124124
* <p>
125-
* Matched patterns include: {@code error}, {@code exception}, {@code failed},
126-
* {@code offense}/{@code offenses} (RuboCop), {@code fatal}, and RuboCop offense
127-
* lines ({@code C:}, {@code W:}, {@code E:}, {@code F:} followed by a line number).
125+
* Matched patterns include: {@code error}, {@code exception}, {@code failed}, and
126+
* {@code fatal} (case-insensitive, word-boundary anchored).
128127
*
129128
* @return list of error-context lines (ordered as they appear in the log),
130129
* or an empty list if no patterns are found or the log cannot be read

0 commit comments

Comments
 (0)