You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Shmakov Alexey (Jira)" <ji...@apache.org> on 2023/03/01 19:14:00 UTC

[jira] [Created] (CAMEL-19106) repair checkstyle in branch camel-3.x

Shmakov Alexey created CAMEL-19106:
--------------------------------------

             Summary: repair  checkstyle  in branch camel-3.x
                 Key: CAMEL-19106
                 URL: https://issues.apache.org/jira/browse/CAMEL-19106
             Project: Camel
          Issue Type: Bug
            Reporter: Shmakov Alexey


Checkstyle plugin fails for several components with next error in the  branch camel-3.x

[ERROR] E:\camel-fork\{_}components\camel-spring-ws\src\test\resources\org\apache\camel\component\spring\ws\addresing\ProducerParamsBasicTest-context.xml:54: *Line is longer than 250 characters (found 261). [LineLength]*{_}

 

It is necessary to exclude test resources "{*}**/test/resources/**/*.xml{*}" from the style check in *maven-checkstyle-plugin*  - they are not important anyway, but this will fix the project build

 

I spent several hours (due to a weak computer) to fix the test files in different components one by one, but I ran into an unsolvable problem, I don’t know how to shorten the next line in the test file _components\camel-spring-ws\src\test\resources\org\apache\camel\component\spring\ws\addresing\ProducerParamsBasicTest-context.xml:60_

<to uri="spring-ws:http://google.com?wsAddressingAction=http://wsaAction.com&amp;webServiceTemplate=#webServiceTemplate&amp;replyTo=mailto://replyTo@chocolatejar.eu&amp;endpointMapping=#endpointMapping&amp;faultTo=http://fault.to&amp;messageIdStrategy=#staticId" />

 

The string is longer than 250 characters and I don't know how to shorten it so as not to break the tests. I consider it most reasonable to exclude test files from the general rule

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)