Hi Guys,
I am using scalaStyle maven plugin for my scala project. And I am using checkstyle-report for my bitbucket pipeline. The problem is, pipeline is not able to parse the scalaStyle xml. And I see no result in report.
pom.xml
<plugin>
<groupId>org.scalastyle</groupId>
<artifactId>scalastyle-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<verbose>false</verbose>
<failOnViolation>false</failOnViolation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<failOnWarning>false</failOnWarning>
<sourceDirectory>${project.basedir}/src/main/scala</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/scala</testSourceDirectory>
<configLocation>${project.basedir}/scalastyle_config.xml</configLocation>
<outputFile>${project.basedir}/checkstyle-result.xml</outputFile>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
bitbucket-pipelines.yml
I tried both 0.2.0 and 0.3.0 version and same error.
pipelines:
default:
- parallel:
- step:
name: CheckStyle
script:
- mvn scalastyle:check
after-script:
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
- pipe: atlassian/checkstyle-report:0.3.0
variables:
DEBUG: 'true' # please document this flag
- step:
name: Build and Test
script:
- mvn clean compile test
Error
SEVERE: Error when parsing /opt/atlassian/pipelines/agent/build/checkstyle-result.xml as CHECKSTYLE
java.lang.RuntimeException: "line" not found in "<error severity="error" message="Expected identifier, but got Token(RPAREN,),1282,))"/>"
at se.bjurr.violations.lib.util.ViolationParserUtils.getAttribute(ViolationParserUtils.java:81)
at se.bjurr.violations.lib.util.ViolationParserUtils.getIntegerAttribute(ViolationParserUtils.java:128)
at se.bjurr.violations.lib.parsers.CheckStyleParser.parseReportOutput(CheckStyleParser.java:32)
at se.bjurr.violations.lib.reports.Parser.findViolations(Parser.java:117)
at se.bjurr.violations.lib.ViolationsApi.violations(ViolationsApi.java:58)
at com.atlassian.bitbucket.pipelines.checkstyle.report.Main.main(Main.java:89)
Submitted report. Response:200 OK
Request URI:http://api.bitbucket.org/2.0/repositories/economical/batch-file-ingestion-framework/commit/95f439405b1d4a9b5ade704b11fce8c953cab725/reports/checkstyle-1
Request Body -------
{"title":"Checkstyle","details":"Checkstyle report","external_id":"checkstyle-1","report_type":"BUG","result":"PASSED","data":[{"title":"Violations","type":"NUMBER","value":0},{"title":"Low Severity","type":"NUMBER","value":0},{"title":"Medium Severity","type":"NUMBER","value":0},{"title":"High Severity","type":"NUMBER","value":0}]}
--------------------
Response Body ------
{"result": "PASSED", "uuid": "{63fd9f91-08fd-5562-b3ee-97a0aca2b598}", "title": "Checkstyle", "remote_link_enabled": false, "type": "report", "created_by": {"type": "user", "uuid": "{415499a5-0b72-4b70-a07b-4e2a63577cee}"}, "created_on": "2021-12-02T18:43:41.591297Z", "details": "Checkstyle report", "report_type": "BUG", "updated_on": "2021-12-02T18:43:41.591297Z", "data": [{"title": "Violations", "type": "NUMBER", "value": 0}, {"title": "Low Severity", "type": "NUMBER", "value": 0}, {"title": "Medium Severity", "type": "NUMBER", "value": 0}, {"title": "High Severity", "type": "NUMBER", "value": 0}], "external_id": "checkstyle-1"}
--------------------
checkstyle-report.xml
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/AbstractSchemaGenerator.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/SchemaBuilder.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/SchemaBuilder.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/DelimitedSchemaGenerator.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/DelimitedSchemaGenerator.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/JsonSchemaGenerator.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/JsonSchemaGenerator.scala message=Avoid using null line=9 column=4
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/schema/JsonSchemaGenerator.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/BigQueryIngestion.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/BigQueryIngestion.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/HiveIngestion.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/HiveIngestion.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/RedshiftIngestion.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/RedshiftIngestion.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/AbstractIngestion.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/ingestionprocess/AbstractIngestion.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/SparkSessionTrait.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/SparkSessionTrait.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/CloudStorageService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/CloudStorageService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/HdfsService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/HdfsService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/S3Service.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/S3Service.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/FileOperationService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/FileOperationService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/LocalFileService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/file/LocalFileService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/NotificationService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/NotificationService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/AlertNotificationService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/AlertNotificationService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/NotificationServiceTrait.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/NotificationServiceTrait.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/WarningNotificationService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/WarningNotificationService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/OkNotificationService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/notification/OkNotificationService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/rdbms/RdsService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/rdbms/RdsService.scala message=Public method must have explicit type line=4 column=6
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/rdbms/RdsService.scala message=Public method must have explicit type line=6 column=6
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/rdbms/RdsService.scala message=Public method must have explicit type line=8 column=6
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/rdbms/RdsService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/keyvalue/VaultService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/keyvalue/VaultService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/keyvalue/KeyValueReaderTrait.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/keyvalue/KeyValueReaderTrait.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/keyvalue/SsmService.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/keyvalue/SsmService.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/configparser/YamlParser.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/configparser/YamlParser.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/services/configparser/YamlParser.scala message=Avoid wildcard imports line=3 column=0
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/audit/Audit.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/audit/Audit.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/XMLParser.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/XMLParser.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/AbstractParser.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/AbstractParser.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/JSONParser.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/JSONParser.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/DelimitedParser.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/parser/DelimitedParser.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/package.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/package.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/config/IngestionConfig.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/config/IngestionConfig.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/config/DatabaseConfig.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/config/DatabaseConfig.scala message=File must end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/config/NotificationConfig.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/config/NotificationConfig.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/db/IntakeTable.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/db/IntakeTable.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/db/Table.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/db/Table.scala message=Public method must have explicit type line=5 column=6
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/db/Table.scala message=Public method must have explicit type line=7 column=6
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/db/Table.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/IngestionContext.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/IngestionContext.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/Schema.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/Schema.scala message=Magic Number line=42 column=78
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/Schema.scala message=File must end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/Schema.scala message=Avoid wildcard imports line=3 column=0
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/Schema.scala message=Avoid wildcard imports line=6 column=0
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/package.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/package.scala message=File must end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/domain/metadata/package.scala message=Avoid wildcard imports line=4 column=0
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/Main.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/Main.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/NotNullValidation.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/NotNullValidation.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/PrimaryUniqueKeyValidation.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/PrimaryUniqueKeyValidation.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/Validation.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/Validation.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/ThresholdValidation.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/ThresholdValidation.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/TraitValidation.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/main/scala/com/batchingestion/validation/TraitValidation.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/TestingSparkSessionTrait.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/TestingSparkSessionTrait.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/SampleTest.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/SampleTest.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/services/configparser/YamlParserTest.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/services/configparser/YamlParserTest.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/parser/DelimitedParserTest.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/parser/DelimitedParserTest.scala message=File must not end with newline character
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/domain/metadata/SchemaTest.scala message=Header does not match expected text line=1
warning file=/opt/atlassian/pipelines/agent/build/src/test/scala/com/batchingestion/domain/metadata/SchemaTest.scala message=File must not end with newline character
Saving to outputFile=/opt/atlassian/pipelines/agent/build/checkstyle-result.xml
Processed 50 file(s)
Found 0 errors
Found 112 warnings
Found 0 infos
Finished in 1036 ms
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.101 s
[INFO] Finished at: 2021-12-16T16:12:10Z
[INFO] ------------------------------------------------------------------------
@Gaurang Shah hi. Thanks for your suggestion. It's a good idea to create feature request here:
Regards, Igor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gaurang Shah hi. I didn't correctly provide you feedback. I thought that the pipe does not support this feature, but seems like it does. We will investigate this feature and provide the feedback later.
Regards, Igor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Gaurang Shah hi. I can't reproduce your issue.
I created repo from maven tutorial.
i added this plugin to pom.xml
<plugin>
<groupId>org.scalastyle</groupId>
<artifactId>scalastyle-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<verbose>false</verbose>
<failOnViolation>false</failOnViolation>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<failOnWarning>false</failOnWarning>
<sourceDirectory>${project.basedir}/src/main/scala</sourceDirectory>
<testSourceDirectory>${project.basedir}/src/test/scala</testSourceDirectory>
<configLocation>${project.basedir}/scalastyle_config.xml</configLocation>
<outputFile>${project.basedir}/checkstyle-result.xml</outputFile>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
I used this scalasyle config file for my project.
Here is my bitbucket-pipelines.yml:
image:
name: maven:3.6.3
test: &test
step:
name: CheckStyle
script:
- mvn scalastyle:check
after-script:
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
- pipe: atlassian/checkstyle-report:0.3.0
variables:
DEBUG: 'true'
Result of pipeline execution:
mvn scalastyle:check
Processed 4 file(s)
Found 0 errors
Found 26 warnings
Found 0 infos
- pipe: atlassian/checkstyle-report:0.3.0
...
Submitted 26 annotations. Response:200 OK
...
And report generated:
Additionally here is my checkstyle-result.xml that i generated with `mvn scalastyle:check` :
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="5.0">
<file name="/Users/istoyanov/Projects/test-checkstyle/test-checkstyle/src/test/scala/samples/junit.scala">
<error line="1" source="org.scalastyle.file.HeaderMatchesChecker" severity="warning" message="Header does not match expected text"/>
<error column="0" line="3" source="org.scalastyle.scalariform.UnderscoreImportChecker" severity="warning" message="Avoid wildcard imports"/>
<error column="0" line="4" source="org.scalastyle.scalariform.UnderscoreImportChecker" severity="warning" message="Avoid wildcard imports"/>
</file>
<file name="/Users/istoyanov/Projects/test-checkstyle/test-checkstyle/src/test/scala/samples/scalatest.scala">
<error line="1" source="org.scalastyle.file.HeaderMatchesChecker" severity="warning" message="Header does not match expected text"/>
<error column="0" line="28" source="org.scalastyle.scalariform.UnderscoreImportChecker" severity="warning" message="Avoid wildcard imports"/>
<error column="9" line="68" source="org.scalastyle.scalariform.MultipleStringLiteralsChecker" severity="warning" message="The string literal "fee" appears 2 times in the file."/>
<error column="16" line="68" source="org.scalastyle.scalariform.MultipleStringLiteralsChecker" severity="warning" message="The string literal "fie" appears 2 times in the file."/>
<error column="23" line="68" source="org.scalastyle.scalariform.MultipleStringLiteralsChecker" severity="warning" message="The string literal "foe" appears 2 times in the file."/>
<error column="30" line="68" source="org.scalastyle.scalariform.MultipleStringLiteralsChecker" severity="warning" message="The string literal "fum" appears 2 times in the file."/>
<error column="0" line="53" source="org.scalastyle.scalariform.ImportGroupingChecker" severity="warning" message="Imports should be grouped together"/>
<error column="0" line="54" source="org.scalastyle.scalariform.ImportGroupingChecker" severity="warning" message="Imports should be grouped together"/>
<error column="0" line="56" source="org.scalastyle.scalariform.ImportGroupingChecker" severity="warning" message="Imports should be grouped together"/>
<error column="0" line="57" source="org.scalastyle.scalariform.ImportGroupingChecker" severity="warning" message="Imports should be grouped together"/>
<error column="0" line="87" source="org.scalastyle.scalariform.ImportGroupingChecker" severity="warning" message="Imports should be grouped together"/>
</file>
<file name="/Users/istoyanov/Projects/test-checkstyle/test-checkstyle/src/test/scala/samples/specs.scala">
<error line="1" source="org.scalastyle.file.HeaderMatchesChecker" severity="warning" message="Header does not match expected text"/>
<error column="0" line="6" source="org.scalastyle.file.WhitespaceEndOfLineChecker" severity="warning" message="Whitespace at end of line"/>
<error column="2" line="10" source="org.scalastyle.file.WhitespaceEndOfLineChecker" severity="warning" message="Whitespace at end of line"/>
<error column="76" line="14" source="org.scalastyle.file.WhitespaceEndOfLineChecker" severity="warning" message="Whitespace at end of line"/>
<error column="0" line="4" source="org.scalastyle.scalariform.UnderscoreImportChecker" severity="warning" message="Avoid wildcard imports"/>
<error column="0" line="5" source="org.scalastyle.scalariform.UnderscoreImportChecker" severity="warning" message="Avoid wildcard imports"/>
<error column="6" line="22" source="org.scalastyle.scalariform.MultipleStringLiteralsChecker" severity="warning" message="The string literal "Hello world" appears 3 times in the file."/>
</file>
<file name="/Users/istoyanov/Projects/test-checkstyle/test-checkstyle/src/main/scala/test/App.scala">
<error line="1" source="org.scalastyle.file.HeaderMatchesChecker" severity="warning" message="Header does not match expected text"/>
<error column="0" line="7" source="org.scalastyle.file.WhitespaceEndOfLineChecker" severity="warning" message="Whitespace at end of line"/>
<error column="0" line="9" source="org.scalastyle.file.WhitespaceEndOfLineChecker" severity="warning" message="Whitespace at end of line"/>
<error column="4" line="11" source="org.scalastyle.file.RegexChecker" severity="warning" message="Regular expression matched 'println'"/>
<error column="4" line="12" source="org.scalastyle.file.RegexChecker" severity="warning" message="Regular expression matched 'println'"/>
</file>
</checkstyle>
My suggestion to you is to try generate report before using pipe to see if all going well on this step.
Next, please provide us the result of execution in pipeline:
mvn scalastyle:check
Also provide us your generated checkstyle-result.xml
Regards, Igor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.