package org.springframework.cloud.contract.verifier.converter;
-import groovy.transform.CompileStatic
+import java.util.Map;
-import org.springframework.cloud.contract.spec.Contract
-import org.springframework.cloud.contract.verifier.file.ContractMetadata
+import org.springframework.cloud.contract.spec.Contract;
+import org.springframework.cloud.contract.verifier.file.ContractMetadata;
/**
* Converts contracts into their stub representation.
*
* @since 1.1.0
*/
-@CompileStatic
-interface StubGenerator {
+public interface StubGenerator {
/**
- * @return {@code true} if the converter can handle the file to convert it into a stub.
+ * @param fileName - file name
+ * @return {@code true} if the converter can handle the file to convert it into a
+ * stub.
*/
- boolean canHandleFileName(String fileName)
+ default boolean canHandleFileName(String fileName) {
+ return fileName.endsWith(fileExtension());
+ }
/**
- * @return the collection of converted contracts into stubs. One contract can
- * result in multiple stubs.
+ * @param rootName - root name of the contract
+ * @param content - metadata of the contract
+ * @return the collection of converted contracts into stubs. One contract can result
+ * in multiple stubs.
*/
- Map<Contract, String> convertContents(String rootName, ContractMetadata content)
+ Map<Contract, String> convertContents(String rootName, ContractMetadata content);
/**
- * @return the name of the converted stub file. If you have multiple contracts
- * in a single file then a prefix will be added to the generated file. If you
- * provide the {@link Contract#name} field then that field will override the
- * generated file name.
+ * @param inputFileName - name of the input file
+ * @return the name of the converted stub file. If you have multiple contracts in a
+ * single file then a prefix will be added to the generated file. If you provide the
+ * {@link Contract#name} field then that field will override the generated file name.
*
- * Example: name of file with 2 contracts is {@code foo.groovy}, it will be
- * converted by the implementation to {@code foo.json}. The recursive file
- * converter will create two files {@code 0_foo.json} and {@code 1_foo.json}
+ * Example: name of file with 2 contracts is {@code foo.groovy}, it will be converted
+ * by the implementation to {@code foo.json}. The recursive file converter will create
+ * two files {@code 0_foo.json} and {@code 1_foo.json}
*/
- String generateOutputFileNameForInput(String inputFileName)
+ String generateOutputFileNameForInput(String inputFileName);
+
+ /**
+ * Describes the file extension that this stub generator can handle.
+ * @return string describing the file extension
+ */
+ default String fileExtension() {
+ return ".json";
+ }
+
}
diff --git a/reference/html/spring-cloud-contract-verifier.html b/reference/html/spring-cloud-contract-verifier.html
index 9a43812cd9..49a5bf4675 100644
--- a/reference/html/spring-cloud-contract-verifier.html
+++ b/reference/html/spring-cloud-contract-verifier.html
@@ -13562,43 +13562,57 @@ own implementation of the StubGenerator interface. The following co
package org.springframework.cloud.contract.verifier.converter;
-import groovy.transform.CompileStatic
+import java.util.Map;
-import org.springframework.cloud.contract.spec.Contract
-import org.springframework.cloud.contract.verifier.file.ContractMetadata
+import org.springframework.cloud.contract.spec.Contract;
+import org.springframework.cloud.contract.verifier.file.ContractMetadata;
/**
* Converts contracts into their stub representation.
*
* @since 1.1.0
*/
-@CompileStatic
-interface StubGenerator {
+public interface StubGenerator {
/**
- * @return {@code true} if the converter can handle the file to convert it into a stub.
+ * @param fileName - file name
+ * @return {@code true} if the converter can handle the file to convert it into a
+ * stub.
*/
- boolean canHandleFileName(String fileName)
+ default boolean canHandleFileName(String fileName) {
+ return fileName.endsWith(fileExtension());
+ }
/**
- * @return the collection of converted contracts into stubs. One contract can
- * result in multiple stubs.
+ * @param rootName - root name of the contract
+ * @param content - metadata of the contract
+ * @return the collection of converted contracts into stubs. One contract can result
+ * in multiple stubs.
*/
- Map<Contract, String> convertContents(String rootName, ContractMetadata content)
+ Map<Contract, String> convertContents(String rootName, ContractMetadata content);
/**
- * @return the name of the converted stub file. If you have multiple contracts
- * in a single file then a prefix will be added to the generated file. If you
- * provide the {@link Contract#name} field then that field will override the
- * generated file name.
+ * @param inputFileName - name of the input file
+ * @return the name of the converted stub file. If you have multiple contracts in a
+ * single file then a prefix will be added to the generated file. If you provide the
+ * {@link Contract#name} field then that field will override the generated file name.
*
- * Example: name of file with 2 contracts is {@code foo.groovy}, it will be
- * converted by the implementation to {@code foo.json}. The recursive file
- * converter will create two files {@code 0_foo.json} and {@code 1_foo.json}
+ * Example: name of file with 2 contracts is {@code foo.groovy}, it will be converted
+ * by the implementation to {@code foo.json}. The recursive file converter will create
+ * two files {@code 0_foo.json} and {@code 1_foo.json}
*/
- String generateOutputFileNameForInput(String inputFileName)
+ String generateOutputFileNameForInput(String inputFileName);
+
+ /**
+ * Describes the file extension that this stub generator can handle.
+ * @return string describing the file extension
+ */
+ default String fileExtension() {
+ return ".json";
+ }
+
}
diff --git a/reference/html/spring-cloud-contract.html b/reference/html/spring-cloud-contract.html
index 3ba3a37584..a487485142 100644
--- a/reference/html/spring-cloud-contract.html
+++ b/reference/html/spring-cloud-contract.html
@@ -444,7 +444,7 @@ $(addBlockSwitches);
Olga Maciaszek-Sharma, Mariusz Smykuła, Dave Syer, Jay Bryant
-
{spring-cloud-version}
+
2.2.0.BUILD-SNAPSHOT
@@ -13843,43 +13843,57 @@ own implementation of the StubGenerator interface. The following co
package org.springframework.cloud.contract.verifier.converter;
-import groovy.transform.CompileStatic
+import java.util.Map;
-import org.springframework.cloud.contract.spec.Contract
-import org.springframework.cloud.contract.verifier.file.ContractMetadata
+import org.springframework.cloud.contract.spec.Contract;
+import org.springframework.cloud.contract.verifier.file.ContractMetadata;
/**
* Converts contracts into their stub representation.
*
* @since 1.1.0
*/
-@CompileStatic
-interface StubGenerator {
+public interface StubGenerator {
/**
- * @return {@code true} if the converter can handle the file to convert it into a stub.
+ * @param fileName - file name
+ * @return {@code true} if the converter can handle the file to convert it into a
+ * stub.
*/
- boolean canHandleFileName(String fileName)
+ default boolean canHandleFileName(String fileName) {
+ return fileName.endsWith(fileExtension());
+ }
/**
- * @return the collection of converted contracts into stubs. One contract can
- * result in multiple stubs.
+ * @param rootName - root name of the contract
+ * @param content - metadata of the contract
+ * @return the collection of converted contracts into stubs. One contract can result
+ * in multiple stubs.
*/
- Map<Contract, String> convertContents(String rootName, ContractMetadata content)
+ Map<Contract, String> convertContents(String rootName, ContractMetadata content);
/**
- * @return the name of the converted stub file. If you have multiple contracts
- * in a single file then a prefix will be added to the generated file. If you
- * provide the {@link Contract#name} field then that field will override the
- * generated file name.
+ * @param inputFileName - name of the input file
+ * @return the name of the converted stub file. If you have multiple contracts in a
+ * single file then a prefix will be added to the generated file. If you provide the
+ * {@link Contract#name} field then that field will override the generated file name.
*
- * Example: name of file with 2 contracts is {@code foo.groovy}, it will be
- * converted by the implementation to {@code foo.json}. The recursive file
- * converter will create two files {@code 0_foo.json} and {@code 1_foo.json}
+ * Example: name of file with 2 contracts is {@code foo.groovy}, it will be converted
+ * by the implementation to {@code foo.json}. The recursive file converter will create
+ * two files {@code 0_foo.json} and {@code 1_foo.json}
*/
- String generateOutputFileNameForInput(String inputFileName)
+ String generateOutputFileNameForInput(String inputFileName);
+
+ /**
+ * Describes the file extension that this stub generator can handle.
+ * @return string describing the file extension
+ */
+ default String fileExtension() {
+ return ".json";
+ }
+
}
File contains tab characters (this is the first instance).
49
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 84).
52
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
52
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
53
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
54
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
55
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
57
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 90).
61
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
64
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
65
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
69
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 86).
78
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
83
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
86
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
86
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
89
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
92
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 90).
96
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
97
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
103
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
107
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
108
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
109
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
110
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
122
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
153
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
157
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 94).
162
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
170
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
181
-
+
Error
design
DesignForExtension
Class 'ConvertMojo' looks like designed for extension (can be subclassed), but the method 'execute' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'ConvertMojo' final or making the method 'execute' static/final/abstract/empty, or adding allowed annotation for the method.
File contains tab characters (this is the first instance).
36
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
36
-
+
Error
naming
ConstantName
Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
36
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
38
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
40
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
42
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
44
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
46
-
+
Error
misc
FinalParameters
Parameter project should be final.
46
-
+
Error
coding
HiddenField
'project' hides a field.
46
-
+
Error
misc
FinalParameters
Parameter mavenSession should be final.
46
-
+
Error
coding
HiddenField
'mavenSession' hides a field.
46
-
+
Error
misc
FinalParameters
Parameter mavenResourcesFiltering should be final.
47
-
+
Error
coding
HiddenField
'mavenResourcesFiltering' hides a field.
47
-
+
Error
misc
FinalParameters
Parameter config should be final.
48
-
+
Error
coding
HiddenField
'config' hides a field.
48
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
55
-
+
Error
misc
FinalParameters
Parameter contractsDirectory should be final.
55
-
+
Error
misc
FinalParameters
Parameter outputDirectory should be final.
55
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 98).
57
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 102).
58
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
59
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
63
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 85).
65
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
69
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
80
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
92
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
98
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
98
-
+
Error
misc
FinalParameters
Parameter includedRootFolderAntPattern should be final.
98
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 85).
99
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
101
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
102
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 90).
103
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 91).
109
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
109
-
+
Error
misc
FinalParameters
Parameter includedRootFolderAntPattern should be final.
109
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
110
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
File contains tab characters (this is the first instance).
43
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
46
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
50
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
57
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
67
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
76
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
79
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
82
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
85
-
+
Error
design
DesignForExtension
Class 'GenerateStubsMojo' looks like designed for extension (can be subclassed), but the method 'execute' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateStubsMojo' final or making the method 'execute' static/final/abstract/empty, or adding allowed annotation for the method.
85
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
85
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 129).
88
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 114).
89
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
94
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
98
-
+
Error
misc
FinalParameters
Parameter stubsOutputDir should be final.
98
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 86).
101
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 114).
103
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 85).
105
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 90).
107
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
109
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
110
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
112
-
+
Error
whitespace
NoWhitespaceAfter
'{' is followed by whitespace.
112
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 99).
113
-
+
Error
coding
AvoidInlineConditionals
Avoid inline conditionals.
113
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 109).
117
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
File contains tab characters (this is the first instance).
50
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
53
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
56
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
56
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
57
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
60
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 101).
61
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
64
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 103).
65
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
68
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
71
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
74
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
77
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
80
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
83
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 86).
111
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
119
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
124
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
127
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
127
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
130
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
133
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 84).
137
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
138
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
144
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
148
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
149
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
150
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
151
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
163
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
164
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
166
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
168
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
175
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
176
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 91).
178
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 91).
179
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
210
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
214
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 94).
219
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
227
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'execute' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'execute' static/final/abstract/empty, or adding allowed annotation for the method.
232
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
233
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 137).
237
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 117).
242
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 86).
243
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 110).
247
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
248
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 128).
253
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 103).
254
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 84).
256
-
+
Error
coding
HiddenField
'contractsDirectory' hides a field.
256
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 105).
257
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 95).
258
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 100).
259
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
260
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 102).
261
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 102).
264
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 106).
267
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
269
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 102).
273
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
276
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 101).
277
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 101).
278
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 90).
284
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
285
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 108).
288
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
294
-
+
Error
misc
FinalParameters
Parameter config should be final.
294
-
+
Error
misc
FinalParameters
Parameter contractsDirectory should be final.
295
-
+
Error
coding
HiddenField
'contractsDirectory' hides a field.
295
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 84).
298
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'mappingsToMap' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'mappingsToMap' static/final/abstract/empty, or adding allowed annotation for the method.
317
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
317
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 94).
323
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'getExcludedFiles' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'getExcludedFiles' static/final/abstract/empty, or adding allowed annotation for the method.
328
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
328
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'setExcludedFiles' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'setExcludedFiles' static/final/abstract/empty, or adding allowed annotation for the method.
332
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
332
-
+
Error
misc
FinalParameters
Parameter excludedFiles should be final.
332
-
+
Error
coding
HiddenField
'excludedFiles' hides a field.
332
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'getIgnoredFiles' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'getIgnoredFiles' static/final/abstract/empty, or adding allowed annotation for the method.
336
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
336
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'setIgnoredFiles' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'setIgnoredFiles' static/final/abstract/empty, or adding allowed annotation for the method.
340
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
340
-
+
Error
misc
FinalParameters
Parameter ignoredFiles should be final.
340
-
+
Error
coding
HiddenField
'ignoredFiles' hides a field.
340
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'isAssertJsonSize' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'isAssertJsonSize' static/final/abstract/empty, or adding allowed annotation for the method.
344
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
344
-
+
Error
design
DesignForExtension
Class 'GenerateTestsMojo' looks like designed for extension (can be subclassed), but the method 'setAssertJsonSize' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'GenerateTestsMojo' final or making the method 'setAssertJsonSize' static/final/abstract/empty, or adding allowed annotation for the method.
File contains tab characters (this is the first instance).
44
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
44
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 85).
46
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
46
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
48
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
50
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
52
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
54
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
56
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
58
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
60
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
60
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
62
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
64
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
66
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
68
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
70
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
72
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 85).
74
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
74
-
+
Error
sizes
ParameterNumber
More than 7 parameters (found 12).
74
-
+
Error
misc
FinalParameters
Parameter project should be final.
74
-
+
Error
coding
HiddenField
'project' hides a field.
74
-
+
Error
misc
FinalParameters
Parameter contractDependency should be final.
74
-
+
Error
coding
HiddenField
'contractDependency' hides a field.
74
-
+
Error
misc
FinalParameters
Parameter contractsPath should be final.
75
-
+
Error
coding
HiddenField
'contractsPath' hides a field.
75
-
+
Error
misc
FinalParameters
Parameter contractsRepositoryUrl should be final.
75
-
+
Error
coding
HiddenField
'contractsRepositoryUrl' hides a field.
75
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 101).
76
-
+
Error
misc
FinalParameters
Parameter stubsMode should be final.
76
-
+
Error
coding
HiddenField
'stubsMode' hides a field.
76
-
+
Error
misc
FinalParameters
Parameter log should be final.
76
-
+
Error
coding
HiddenField
'log' hides a field.
76
-
+
Error
misc
FinalParameters
Parameter repositoryUsername should be final.
76
-
+
Error
coding
HiddenField
'repositoryUsername' hides a field.
76
-
+
Error
misc
FinalParameters
Parameter repositoryPassword should be final.
77
-
+
Error
coding
HiddenField
'repositoryPassword' hides a field.
77
-
+
Error
misc
FinalParameters
Parameter repositoryProxyHost should be final.
77
-
+
Error
coding
HiddenField
'repositoryProxyHost' hides a field.
77
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
78
-
+
Error
misc
FinalParameters
Parameter repositoryProxyPort should be final.
78
-
+
Error
coding
HiddenField
'repositoryProxyPort' hides a field.
78
-
+
Error
misc
FinalParameters
Parameter deleteStubsAfterTest should be final.
78
-
+
Error
coding
HiddenField
'deleteStubsAfterTest' hides a field.
78
-
+
Error
misc
FinalParameters
Parameter contractsProperties should be final.
79
-
+
Error
coding
HiddenField
'contractsProperties' hides a field.
79
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
90
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 90).
95
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
95
-
+
Error
misc
FinalParameters
Parameter config should be final.
95
-
+
Error
misc
FinalParameters
Parameter defaultContractsDir should be final.
96
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
99
-
+
Error
coding
AvoidInlineConditionals
Avoid inline conditionals.
100
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
102
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 108).
104
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
105
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 98).
106
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
File contains tab characters (this is the first instance).
43
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
43
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
47
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
54
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
60
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
64
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 84).
80
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
81
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 94).
94
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
102
-
+
Error
design
DesignForExtension
Class 'PushStubsToScmMojo' looks like designed for extension (can be subclassed), but the method 'execute' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'PushStubsToScmMojo' final or making the method 'execute' static/final/abstract/empty, or adding allowed annotation for the method.
107
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 129).
111
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 119).
113
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 97).
117
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
118
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 81).
119
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 123).
120
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 97).
124
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
125
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 93).
126
-
+
Error
design
DesignForExtension
Class 'PushStubsToScmMojo' looks like designed for extension (can be subclassed), but the method 'buildOptions' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'PushStubsToScmMojo' final or making the method 'buildOptions' static/final/abstract/empty, or adding allowed annotation for the method.
File contains tab characters (this is the first instance).
48
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
51
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
53
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
55
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
58
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
61
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
74
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 84).
85
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 89).
105
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 84).
107
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
117
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
120
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
121
-
+
Error
misc
FinalParameters
Parameter localStubRunner should be final.
121
-
+
Error
coding
HiddenField
'localStubRunner' hides a field.
121
-
+
Error
misc
FinalParameters
Parameter remoteStubRunner should be final.
121
-
+
Error
coding
HiddenField
'remoteStubRunner' hides a field.
121
-
+
Error
design
DesignForExtension
Class 'RunMojo' looks like designed for extension (can be subclassed), but the method 'execute' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'RunMojo' final or making the method 'execute' static/final/abstract/empty, or adding allowed annotation for the method.
126
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 83).
127
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 107).
130
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
135
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 94).
139
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 97).
141
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 97).
142
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
143
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
145
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 92).
146
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 95).
147
-
+
Error
blocks
RightCurly
'}' at column 4 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
153
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 103).
155
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
160
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
163
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
169
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).
File contains tab characters (this is the first instance).
45
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
45
-
+
Error
naming
ConstantName
Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
45
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
47
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
49
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
51
-
+
Error
misc
FinalParameters
Parameter repoSystem should be final.
52
-
+
Error
coding
HiddenField
'repoSystem' hides a field.
52
-
+
Error
misc
FinalParameters
Parameter project should be final.
53
-
+
Error
coding
HiddenField
'project' hides a field.
53
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 87).
58
-
+
Error
design
DesignForExtension
Class 'AetherStubDownloaderFactory' looks like designed for extension (can be subclassed), but the method 'build' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'AetherStubDownloaderFactory' final or making the method 'build' static/final/abstract/empty, or adding allowed annotation for the method.
File contains tab characters (this is the first instance).
36
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
36
-
+
Error
naming
ConstantName
Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
36
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 85).
38
-
+
Error
design
DesignForExtension
Class 'LocalStubRunner' looks like designed for extension (can be subclassed), but the method 'run' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'LocalStubRunner' final or making the method 'run' static/final/abstract/empty, or adding allowed annotation for the method.
File contains tab characters (this is the first instance).
40
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
40
-
+
Error
naming
ConstantName
Name 'log' must match pattern '^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$'.
40
-
+
Error
javadoc
JavadocVariable
Missing a Javadoc comment.
42
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
44
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 90).
45
-
+
Error
misc
FinalParameters
Parameter aetherStubDownloaderFactory should be final.
45
-
+
Error
coding
HiddenField
'aetherStubDownloaderFactory' hides a field.
45
-
+
Error
design
DesignForExtension
Class 'RemoteStubRunner' looks like designed for extension (can be subclassed), but the method 'run' does not have javadoc that explains how to do that safely. If class is not designed for extension consider making the class 'RemoteStubRunner' final or making the method 'run' static/final/abstract/empty, or adding allowed annotation for the method.
49
-
+
Error
javadoc
JavadocMethod
Missing a Javadoc comment.
49
-
+
Error
misc
FinalParameters
Parameter options should be final.
49
-
+
Error
misc
FinalParameters
Parameter repositorySystemSession should be final.
50
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
55
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 88).
57
-
+
Error
sizes
LineLength
Line is longer than 80 characters (found 82).
59
-
+
Error
blocks
RightCurly
'}' at column 3 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).