-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[infrastructure] enable spotless #8068
Conversation
Signed-off-by: Jan N. Klug <[email protected]>
Signed-off-by: Jan N. Klug <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with the changes in lgwebos
Signed-off-by: Jan N. Klug <[email protected]>
Hey @J-N-K, TravisCI finished with status TravisBuddy Request Identifier: 4287ca80-be09-11ea-a595-8f8781864445 |
This will certainly introduce conflicts with my PR #8057 :( If mine could be merged first, I would be happy. |
Travis tests were successfulHey @J-N-K, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to address the conflicts.
<description>This is the Subscription Key provided by BTicino/Legrand when you subscribe to Smarther - v2.0 product. | ||
Go to | ||
https://developer.legrand.com/tutorials/getting-started/</description> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting of the descriptions in this file probably needs to be manually adjusted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually adjusting the formatting is exactly what we want to avoid with the spotless formatter, or am I wrong there?
if (this == object) | ||
return true; | ||
if (object == null || getClass() != object.getClass()) | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't if statements have brackets? Are brackets not enforced by spotless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not. But changing that is out-of-scope of this PR.
Maybe you can fix the merge conflicts so we can merge this @J-N-K? |
@@ -76,8 +78,7 @@ | |||
<bnd.includeresource>-${.}/NOTICE, -${.}/*.xsd</bnd.includeresource> | |||
|
|||
<feature.directory>src/main/feature/feature.xml</feature.directory> | |||
<spotless.check.skip>true</spotless.check.skip> <!-- Spotless disabled for now --> | |||
<spotless.version>1.31.1</spotless.version> | |||
<spotless.version>2.0.0</spotless.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are also a few newer versions nowadays, see changelog:
<spotless.version>2.0.0</spotless.version> | |
<spotless.version>2.0.3</spotless.version> |
Replaced by #8401. |
This PR finally enables spotless. After the upgrade to 2.0.0 the memory issues are fixe. The feature-bundles are excludedfor the moment because enabling the extensions for the karaf-maven-plugin currently breaks the build. This seems to be an issue in either the plugin or in maven, as one of them changes the line-endings-property of the build system.