• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ekryd / echo-maven-plugin / 3648

14 Nov 2024 01:38PM CUT coverage: 96.795%. Remained the same
3648

push

circleci

web-flow
Update dependency org.codehaus.mojo:versions-maven-plugin to v2.18.0

302 of 312 relevant lines covered (96.79%)

0.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/echo/src/main/java/echo/output/NewlineFormatter.java
1
package echo.output;
2

3
import echo.parameter.PluginParameters;
4

5
/** Formats end of line characters according to desired format */
6
public class NewlineFormatter {
7
  private static final String NEWLINES_REG_EX = "\\r\\n|\\r|\\n";
8
  private final String lineSeparator;
9

10
  /**
11
   * Creates a new instance of NewlineSeparator
12
   *
13
   * @param pluginParameters The user-supplied plugin parameters
14
   */
15
  public NewlineFormatter(PluginParameters pluginParameters) {
1✔
16
    this.lineSeparator = pluginParameters.getLineSeparator().getFormattedLineSeparator();
1✔
17
  }
1✔
18

19
  /** Format the message with the desired end of line characters */
20
  public String format(String output) {
21
    return output.replaceAll(NEWLINES_REG_EX, lineSeparator);
1✔
22
  }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc