Skip to content

Commit dd59db1

Browse files
committed
run pre-ommit command
1 parent 7a97f28 commit dd59db1

File tree

157 files changed

+16634
-16634
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+16634
-16634
lines changed

plugins/de.fraunhofer.ipa.ros.xtext/src/de/fraunhofer/ipa/ros/validation/RosValidator.xtend

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ class RosValidator extends AbstractRosValidator {
4343
}}
4444
@Check
4545
def void checkNameConventionsPackage (Package rospackage) {
46-
for (char c : rospackage.name.toCharArray){
47-
if (Character.isUpperCase(c)){
48-
error("The name of a package has to follow the ROS naming conventions: Capital letters are not allowed", null, INVALID_NAME);
49-
}
50-
}
46+
for (char c : rospackage.name.toCharArray){
47+
if (Character.isUpperCase(c)){
48+
error("The name of a package has to follow the ROS naming conventions: Capital letters are not allowed", null, INVALID_NAME);
49+
}
50+
}
5151
}
5252
@Check
5353
def void checkNameConventionsParameters (Parameter parameter) {
54-
for (i : 0 ..< parameter.name.length) {
55-
val c = parameter.name.charAt(i)
56-
if (Character.isUpperCase(c)) {
57-
val remaining = parameter.name.substring(i)
58-
if (!remaining.contains(".")) {
59-
warning("The name of a parameter has to follow the ROS naming conventions: Capital letters are not recommended", null, INVALID_NAME);
60-
}
61-
}
62-
}
54+
for (i : 0 ..< parameter.name.length) {
55+
val c = parameter.name.charAt(i)
56+
if (Character.isUpperCase(c)) {
57+
val remaining = parameter.name.substring(i)
58+
if (!remaining.contains(".")) {
59+
warning("The name of a parameter has to follow the ROS naming conventions: Capital letters are not recommended", null, INVALID_NAME);
60+
}
61+
}
62+
}
6363
}
6464

6565
/* Customize Syntax Error Messages */
@@ -146,21 +146,21 @@ class RosValidator extends AbstractRosValidator {
146146
public static val INVALID_VALUE = 'invalidValue'
147147
@Check
148148
def void CheckQoS (QualityOfService qos){
149-
CheckDuration(qos.leaseDuration)
150-
CheckDuration(qos.lifespan)
151-
CheckDuration(qos.deadline)
149+
CheckDuration(qos.leaseDuration)
150+
CheckDuration(qos.lifespan)
151+
CheckDuration(qos.deadline)
152152
}
153-
153+
154154
def void CheckDuration(String duration)
155155
{
156-
if(duration != 'infinite' && duration !== null){
157-
try{
158-
Integer.parseInt(duration)
159-
}
160-
catch (NumberFormatException e){
161-
error("Durations of lease_duration, lifespan, deadline should be specified as a string of nanoseconds which can convert to int, or as infinite", null, INVALID_VALUE)
162-
}
163-
}
156+
if(duration != 'infinite' && duration !== null){
157+
try{
158+
Integer.parseInt(duration)
159+
}
160+
catch (NumberFormatException e){
161+
error("Durations of lease_duration, lifespan, deadline should be specified as a string of nanoseconds which can convert to int, or as infinite", null, INVALID_VALUE)
162+
}
163+
}
164164
}
165165

166-
}
166+
}

plugins/de.fraunhofer.ipa.ros/src/primitives/MessagePart.java

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,55 +25,55 @@
2525
*/
2626
public interface MessagePart extends EObject {
2727
/**
28-
* Returns the value of the '<em><b>Type</b></em>' containment reference.
29-
* <!-- begin-user-doc -->
28+
* Returns the value of the '<em><b>Type</b></em>' containment reference.
29+
* <!-- begin-user-doc -->
3030
* <p>
3131
* If the meaning of the '<em>Type</em>' containment reference isn't clear,
3232
* there really should be more of a description here...
3333
* </p>
3434
* <!-- end-user-doc -->
35-
* @return the value of the '<em>Type</em>' containment reference.
36-
* @see #setType(AbstractType)
37-
* @see primitives.PrimitivesPackage#getMessagePart_Type()
38-
* @model containment="true" required="true"
39-
* @generated
40-
*/
35+
* @return the value of the '<em>Type</em>' containment reference.
36+
* @see #setType(AbstractType)
37+
* @see primitives.PrimitivesPackage#getMessagePart_Type()
38+
* @model containment="true" required="true"
39+
* @generated
40+
*/
4141
AbstractType getType();
4242

4343
/**
44-
* Sets the value of the '{@link primitives.MessagePart#getType <em>Type</em>}' containment reference.
45-
* <!-- begin-user-doc -->
44+
* Sets the value of the '{@link primitives.MessagePart#getType <em>Type</em>}' containment reference.
45+
* <!-- begin-user-doc -->
4646
* <!-- end-user-doc -->
47-
* @param value the new value of the '<em>Type</em>' containment reference.
48-
* @see #getType()
49-
* @generated
50-
*/
47+
* @param value the new value of the '<em>Type</em>' containment reference.
48+
* @see #getType()
49+
* @generated
50+
*/
5151
void setType(AbstractType value);
5252

5353
/**
54-
* Returns the value of the '<em><b>Data</b></em>' attribute.
55-
* <!-- begin-user-doc -->
54+
* Returns the value of the '<em><b>Data</b></em>' attribute.
55+
* <!-- begin-user-doc -->
5656
* <p>
5757
* If the meaning of the '<em>Data</em>' attribute isn't clear,
5858
* there really should be more of a description here...
5959
* </p>
6060
* <!-- end-user-doc -->
61-
* @return the value of the '<em>Data</em>' attribute.
62-
* @see #setData(String)
63-
* @see primitives.PrimitivesPackage#getMessagePart_Data()
64-
* @model required="true"
65-
* @generated
66-
*/
61+
* @return the value of the '<em>Data</em>' attribute.
62+
* @see #setData(String)
63+
* @see primitives.PrimitivesPackage#getMessagePart_Data()
64+
* @model required="true"
65+
* @generated
66+
*/
6767
String getData();
6868

6969
/**
70-
* Sets the value of the '{@link primitives.MessagePart#getData <em>Data</em>}' attribute.
71-
* <!-- begin-user-doc -->
70+
* Sets the value of the '{@link primitives.MessagePart#getData <em>Data</em>}' attribute.
71+
* <!-- begin-user-doc -->
7272
* <!-- end-user-doc -->
73-
* @param value the new value of the '<em>Data</em>' attribute.
74-
* @see #getData()
75-
* @generated
76-
*/
73+
* @param value the new value of the '<em>Data</em>' attribute.
74+
* @see #getData()
75+
* @generated
76+
*/
7777
void setData(String value);
7878

7979
} // MessagePart

0 commit comments

Comments
 (0)