forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsource-formatter.properties
345 lines (317 loc) · 20.2 KB
/
source-formatter.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
##
## Exclusions
##
#
# Input a list of comma delimited paths that will be excluded by the source
# formatter.
#
source.formatter.excludes=\
**/.cache/**,\
**/.git/**,\
**/.gradle/**,\
**/.task-cache/**,\
**/bin/**,\
**/bower_components/**,\
**/build/**,\
**/bundles/**,\
**/classes/**,\
**/modules/apps/foundation/portal-remote/portal-remote-axis-extender-test/src/testIntegration/java/com/liferay/portal/remote/axis/extender/test/service/http/**,\
**/modules/apps/knowledge-base/knowledge-base-web/src/main/resources/META-INF/resources/display/configuration.jsp,\
**/modules/apps/sync/sync-web/docroot/WEB-INF/src/com/liferay/sync/service/impl/SyncPreferencesLocalServiceImpl.java,\
**/modules/sdk/ant-bnd/src/test/resources/com/liferay/ant/bnd/jsp/dependencies/*.jsp,\
**/modules/sdk/gradle-templates/src/**,\
**/modules/util/portal-tools-service-builder/src/main/resources/jalopy.xml,\
**/node_modules/**,\
**/portal-impl/src/portal-ext.properties,\
**/test-classes/**,\
**/test-coverage/**,\
**/test-results/**,\
**/tmp/**,\
**/tools/sdk/**,\
**/tools/tck/**,\
**/webapps/**
#
# Input a list of comma delimited paths that should be ignored when doing
# specific checks for field types, like proper naming or checking for
# finalable, mutable, or staticable field types.
#
check.java.field.types.excludes=\
modules/apps/sync/sync-engine/src/main/java/com/liferay/sync/engine/session/Session.java,\
modules/apps/wsrp/wsrp-portlet/docroot/WEB-INF/src/com/liferay/wsrp/proxy/Stub.java,\
modules/util/portal-tools-service-builder/src/main/java/com/liferay/portal/tools/service/builder/ServiceBuilder.java,\
portal-impl/src/com/liferay/portal/events/EventsProcessorUtil.java,\
portal-impl/src/com/liferay/portal/template/AbstractTemplate.java,\
portal-impl/test/unit/com/liferay/portal/json/One.java,\
portal-impl/test/unit/com/liferay/portal/json/Two.java,\
portal-impl/test/unit/com/liferay/portal/nio/intraband/proxy/IntrabandProxyUtilTest.java,\
portal-kernel/src/com/liferay/portal/kernel/io/PathHolder.java
#
# Input a list of comma delimited paths that should be ignored when checking
# for correct tabbing.
#
check.tabs.excludes=\
portal-impl/test/unit/com/liferay/portal/nio/intraband/proxy/IntrabandProxyUtilTest.java
#
# Input a list of comma delimited paths that should be ignored when applying
# diamond operators.
#
diamond.operator.excludes=\
**/ant-beanshell/**,\
**/ant-bnd/**,\
**/org-gradle/**,\
**/osgi-util/**,\
modules/core/registry-impl/src/main/java/com/liferay/registry/internal/RegistryImpl.java,\
portal-impl/src/com/liferay/portal/jsonwebservice/JSONWebServiceActionsManagerImpl.java,\
portal-impl/src/com/liferay/portlet/messageboards/util/MBMailMessage.java,\
portal-kernel/src/com/liferay/portal/kernel/repository/BaseRepositoryImpl.java,\
portal-kernel/src/com/liferay/portal/kernel/search/generic/BooleanClauseFactoryImpl.java,\
portal-kernel/src/com/liferay/portal/kernel/util/ListUtil.java
#
# Input a list of comma delimited paths that should be ignored when trying
# to fit multiple lines on single line.
#
fit.on.single.line.excludes=\
portal-impl/test/integration/com/liferay/portal/xmlrpc/XmlRpcParserTest.java
#
# Input a list of comma delimited paths that are allowed to call
# session.createSQLQuery instead of session.createSynchronizedSQLQuery. See
# LPS-42599.
#
hibernate.sql.query.excludes=
#
# Input a list of comma delimited paths that are allowed to have Java terms
# without an access level modifier specified.
#
javaterm.access.level.modifier.excludes=\
portal-impl/test/unit/com/liferay/portal/nio/intraband/proxy/IntrabandProxyUtilTest.java,\
portal-kernel/test/unit/com/liferay/portal/kernel/annotation/AnnotationLocatorTest.java,\
portal-kernel/test/unit/com/liferay/portal/kernel/resiliency/spi/agent/annotation/DistributedRegistryTest.java
#
# Input a list of comma delimited paths that are allowed to have
# unalphabetized Java terms. In addition these paths are allowed to have
# nonfinal variables that are capitalized.
#
javaterm.sort.excludes=\
modules/apps/sync/sync-engine/src/main/java/com/liferay/sync/engine/service/persistence/**,\
modules/apps/web-experience/journal/journal-service/src/main/java/com/liferay/journal/transformer/RegexTransformerUtil.java@_log,\
portal-impl/src/com/liferay/portal/util/PortalImpl.java@_logWebServerServlet,\
portal-kernel/src/com/liferay/portal/kernel/log/LogFactoryUtil.java@_logFactory,\
portal-kernel/src/com/liferay/portal/kernel/model/ListTypeConstants.java,\
portal-kernel/src/com/liferay/portal/kernel/portlet/UserAttributes.java,\
portal-kernel/src/com/liferay/portal/kernel/servlet/HttpHeaders.java,\
portal-kernel/src/com/liferay/portal/kernel/util/JavaDetector.java@_log,\
portal-kernel/src/com/liferay/portal/kernel/util/ReleaseInfo.java,\
tools/servers/tcat/LiferayDeployerFactory.groovy
#
# Input a list of comma delimited JSP paths that are allowed to have
# variables that are not used by other files in portal. These variable are
# used by plugins.
#
jsp.unused.variables.excludes=\
portal-web/docroot/html/taglib/ui/social_bookmark/init.jsp@20
#
# Input a list of comma delimited paths that are allowed to surpass the 80
# column limit.
#
line.length.excludes=\
modules/apps/collaboration/item-selector/item-selector-editor-configuration/src/main/java/com/liferay/item/selector/editor/configuration/BaseEditorConfigContributor.java@34,\
modules/apps/collaboration/wiki/wiki-editor-configuration/src/test/java/com/liferay/wiki/editor/configuration/WikiAttachmentCKEditorEditorConfigContributorTest.java,\
modules/apps/collaboration/wiki/wiki-test/src/testIntegration/java/com/liferay/wiki/subscription/test/WikiSubscriptionContainerModelTest.java,\
modules/apps/collaboration/wiki/wiki-test/src/testIntegration/java/com/liferay/wiki/trash/test/WikiPageDependentsTrashHandlerTest.java,\
modules/apps/collaboration/wiki/wiki-test/src/testIntegration/java/com/liferay/wiki/trash/test/WikiPageTrashHandlerTest.java@185,\
modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-api/src/main/java/com/liferay/dynamic/data/mapping/exception/RequiredDataProviderInstanceException.java,\
modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-api/src/main/java/com/liferay/dynamic/data/mapping/util/DDMFormLayoutFactoryHelper.java,\
modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/service/impl/DDMDataProviderInstanceLocalServiceImpl.java@108,\
modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-service/src/main/java/com/liferay/dynamic/data/mapping/util/impl/DDMBeanTranslatorImpl.java,\
modules/apps/foundation/configuration-admin/configuration-admin-web/src/main/java/com/liferay/configuration/admin/web/portlet/action/ExportConfigurationMVCResourceCommand.java@141,\
modules/apps/foundation/portal-configuration/portal-configuration-extender/src/testIntegration/java/com/liferay/portal/configuration/extender/internal/test/ConfiguratorExtensionTest.java@218,\
modules/apps/foundation/portal-configuration/portal-configuration-extender/src/testIntegration/java/com/liferay/portal/configuration/extender/internal/test/ConfiguratorExtensionTest.java@300,\
modules/apps/foundation/portal-configuration/portal-configuration-metatype-definitions-annotations/src/main/java/com/liferay/portal/configuration/metatype/definitions/annotations/AnnotationsExtendedObjectClassDefinition.java@37,\
modules/apps/foundation/portal-security/portal-security-ldap/src/main/java/com/liferay/portal/security/ldap/internal/configuration/LDAPServerConfigurationProviderImpl.java@412,\
modules/apps/foundation/portal-template/portal-template-freemarker/src/main/java/com/liferay/portal/template/freemarker/configuration/FreeMarkerEngineConfiguration.java@52,\
modules/apps/web-experience/export-import/export-import-api/src/main/java/com/liferay/exportimport/portlet/preferences/processor/ExportImportPortletPreferencesProcessorRegistryUtil.java,\
modules/apps/web-experience/export-import/export-import-test/src/testIntegration/java/com/liferay/exportimport/test/LayoutSetPrototypePropagationTest.java@258,\
modules/apps/web-experience/journal/journal-service/src/main/java/com/liferay/journal/configuration/JournalServiceConfigurationKeys.java,\
modules/apps/web-experience/journal/journal-service/src/main/java/com/liferay/journal/configuration/JournalServiceConfigurationValues.java,\
modules/apps/web-experience/product-navigation/product-navigation-control-menu-api/src/main/java/com/liferay/product/navigation/control/menu/util/ProductNavigationControlMenuCategoryRegistry.java@124,\
modules/core/osgi-service-tracker-collections/src/testIntegration/java/com/liferay/osgi/service/tracker/collections/map/test/ObjectServiceTrackerMapTest.java@414,\
modules/util/lang-builder/src/main/java/com/liferay/lang/builder/LangBuilder.java@519,\
modules/util/lang-builder/src/main/java/com/liferay/lang/builder/LangBuilder.java@527,\
modules/util/pmd/src/main/java/com/liferay/pmd/rules/java/OverrideBothEqualsAndHashcodeRule.java@28,\
modules/util/portal-tools-service-builder/src/main/java/com/liferay/portal/tools/service/builder/ServiceBuilder.java,\
portal-impl/src/com/liferay/portal/fabric/netty/client/NettyFabricClientConfig.java@69,\
portal-impl/src/com/liferay/portal/spring/hibernate/PortalHibernateConfiguration.java@260,\
portal-impl/src/com/liferay/portal/tools/WebXML23Converter.java@81,\
portal-impl/src/com/liferay/portal/util/PortalImpl.java@546,\
portal-impl/src/com/liferay/portal/util/WebKeys.java,\
portal-impl/test/integration/com/liferay/portal/editor/configuration/EditorConfigContributorTest.java,\
portal-impl/test/integration/com/liferay/portal/editor/configuration/EditorConfigTransformerTest.java,\
portal-impl/test/integration/com/liferay/portal/service/PortletPreferencesLocalServiceTest.java,\
portal-impl/test/integration/com/liferay/portal/util/PortalImplCanonicalURLTest.java,\
portal-impl/test/integration/com/liferay/portal/util/PortalImplLocalizedFriendlyURLTest.java,\
portal-impl/test/integration/com/liferay/portlet/blogs/subscriptions/BlogsSubscriptionRootContainerModelTest.java,\
portal-impl/test/integration/com/liferay/portlet/documentlibrary/service/DLFileEntryExtensionTest.java@314,\
portal-impl/test/integration/com/liferay/portlet/documentlibrary/service/DLFileEntryExtensionTest.java@336,\
portal-impl/test/integration/com/liferay/portlet/documentlibrary/service/persistence/DLFileEntryFinderTest.java,\
portal-kernel/src/com/liferay/portal/kernel/model/ListTypeConstants.java@53,\
portal-kernel/src/com/liferay/portal/kernel/model/ListTypeConstants.java@72,\
portal-kernel/src/com/liferay/portal/kernel/model/ListTypeConstants.java@105,\
portal-kernel/src/com/liferay/portal/kernel/model/impl/VirtualLayout.java@207,\
portal-kernel/src/com/liferay/portal/kernel/model/impl/VirtualLayout.java@211,\
portal-kernel/src/com/liferay/portal/kernel/search/QueryConfig.java@379,\
portal-kernel/src/com/liferay/portal/kernel/util/PropsKeys.java,\
portal-kernel/src/com/liferay/portal/kernel/util/WebKeys.java,\
portal-kernel/test/unit/com/liferay/portal/kernel/concurrent/ThreadPoolExecutorTest.java@234,\
portal-test/src/com/liferay/portal/kernel/test/rule/TransactionalTestRule.java@188,\
portal-test-integration/src/com/liferay/portlet/subscriptions/test/BaseSubscriptionContainerModelTestCase.java,\
portal-test-integration/src/com/liferay/portlet/subscriptions/test/BaseSubscriptionRootContainerModelTestCase.java,\
portal-test-integration/src/com/liferay/portlet/trash/test/BaseTrashHandlerTestCase.java
#
# Input a list of comma delimited portlet XML paths that are allowed to have
# non-numerical portlet-name elements.
#
numerical.portlet.name.element.excludes=\
portal-impl/src/com/liferay/portal/deploy/dependencies/liferay-portlet.xml
#
# Input a list of comma delimited paths that are allowed to use
# java.lang.reflect.Proxy.
#
proxy.excludes=\
modules/apps/foundation/portal-template/portal-template-freemarker/src/main/java/com/liferay/portal/template/freemarker/FreeMarkerManager.java,\
modules/apps/static/portal-osgi-web/portal-osgi-web-servlet-jsp-compiler/src/main/java/com/liferay/portal/osgi/web/servlet/jsp/compiler/JspServlet.java,\
portal-kernel/src/com/liferay/portal/kernel/util/ProxyUtil.java
#
# Input a list of comma delimited paths that are allowed to run outside the
# portal. For files that match any of these paths, we skip source formatting
# rules that enforce calling portal methods.
#
run.outside.portal.excludes=\
**/ant-bnd/**,\
**/gradle-plugins-maven-plugin-builder/**,\
**/gradle-util/**,\
**/markdown-converter/**,\
**/osgi-util/**,\
**/portal-osgi-web-wab-extender/**,\
**/portal-tools-data-partitioning-sql-builder/**,\
**/registry-api/**,\
**/sync-engine/**,\
modules/test/poshi-runner/src/main/java/com/liferay/poshi/runner/util/GetterUtil.java,\
portal-kernel/src/com/liferay/portal/kernel/util/GetterUtil.java
#
# Input a list of comma delimited paths that are allowed to use
# java.io.ObjectInputStream directly. See LPS-60358.
#
secure.deserialization.excluded.files=\
portal-impl/src/com/liferay/portal/bean/BeanPropertiesImpl.java,\
portal-kernel/src/com/liferay/portal/kernel/io/AnnotatedObjectInputStream.java,\
portal-kernel/src/com/liferay/portal/kernel/io/ProtectedObjectInputStream.java,\
portal-kernel/src/com/liferay/portal/kernel/process/local/LocalProcessExecutor.java,\
portal-kernel/src/com/liferay/portal/kernel/process/local/LocalProcessLauncher.java,\
portal-kernel/src/com/liferay/portal/kernel/util/ClassLoaderObjectInputStream.java,\
portal-kernel/src/com/liferay/portal/kernel/util/ClassLoaderProxy.java
#
# Input a list of comma delimited paths that are allowed to use
# java.security.SecureRandom. See LPS-39508.
#
secure.random.excludes=\
portal-kernel/src/com/liferay/portal/kernel/security/SecureRandomUtil.java,\
portal-kernel/test/unit/com/liferay/portal/kernel/security/SecureRandomUtilTest.java
#
# Input a list of comma delimited paths that are allowed to use JAXB and
# JAXP directly. See LPS-50479.
#
secure.xml.excludes=\
modules/apps/foundation/petra/petra-log4j/src/main/java/com/liferay/petra/log4j/Log4JUtil.java,\
modules/apps/static/petra/petra-xml/src/main/java/com/liferay/petra/xml/Dom4jUtil.java,\
modules/apps/static/portal-osgi-web/portal-osgi-web-servlet-context-helper/src/main/java/com/liferay/portal/osgi/web/servlet/context/helper/internal/definition/WebXMLDefinitionLoader.java,\
modules/apps/static/portal-target-platform-indexer/portal-target-platform-indexer/src/main/java/com/liferay/portal/target/platform/indexer/internal/DefaultIndexValidator.java,\
modules/apps/web-experience/xsl-content/xsl-content-web/src/main/java/com/liferay/xsl/content/web/util/XSLContentUtil.java,\
modules/private/apps/spi/spi-provider-web/docroot/WEB-INF/src/com/liferay/portal/resiliency/spi/provider/tomcat/TomcatRemoteSPI.java,\
modules/sdk/ant-bnd/src/main/java/com/liferay/ant/bnd/social/SocialAnalyzerPlugin.java,\
modules/sdk/gradle-plugins-maven-plugin-builder/src/main/java/com/liferay/gradle/plugins/maven/plugin/builder/util/XMLUtil.java,\
portal-impl/src/com/liferay/portal/security/xml/SecureXMLFactoryProviderImpl.java,\
portal-impl/src/com/liferay/portal/tools/JavadocBuilder.java,\
portal-impl/src/com/liferay/portal/tools/PluginsEnvironmentBuilder.java,\
portal-impl/src/com/liferay/portal/tools/ToolDependencies.java,\
portal-impl/src/com/liferay/portal/util/MimeTypesImpl.java,\
portal-impl/src/com/liferay/portal/xml/SAXReaderFactory.java,\
util-java/src/com/liferay/util/ant/Java2WsddTask.java,\
util-java/src/com/liferay/util/log4j/Log4JUtil.java,\
util-java/src/com/liferay/util/xml/Dom4jUtil.java,\
util-java/src/com/liferay/util/xml/XMLMergerRunner.java
#
# Input a list of comma delimited paths that are allowed to have nonstatic
# _log variables.
#
static.log.excludes=\
modules/core/portal-security-pacl/src/main/java/com/liferay/portal/security/pacl/jndi/PACLInitialContextFactory.java,\
modules/core/portal-security-pacl/src/main/java/com/liferay/portal/security/pacl/jndi/PACLInitialContextFactoryBuilder.java,\
portal-impl/src/com/liferay/portal/servlet/filters/BasePortalFilter.java,\
portal-kernel/src/com/liferay/portal/kernel/log/LogWrapper.java
#
# Input a list of comma delimited paths that are excluded when checking for
# correct use of test annotations.
#
test.annotations.excludes=
#
# Input a list of comma delimited upgrade paths that are allowed to call
# ServiceUtil methods. See LPS-34911.
#
upgrade.service.util.excludes=\
portal-impl/src/com/liferay/portal/upgrade/v6_0_12_to_6_1_0/UpgradePermission.java,\
portal-impl/src/com/liferay/portal/upgrade/v6_1_0/UpgradeImageGallery.java,\
portal-impl/src/com/liferay/portal/upgrade/v6_1_0/UpgradePermission.java
#
# Input a list of comma delimited upgrade and verify paths that are allowed
# to call DataAccess.getUpgradeOptimizedConnection. See LPS-65213.
#
upgrade.data.access.connection.excludes=\
portal-impl/src/com/liferay/portal/upgrade/util/BaseUpgradeTableImpl.java,\
portal-impl/src/com/liferay/portal/upgrade/util/UpgradeCompanyId.java,\
portal-impl/src/com/liferay/portal/verify/VerifyProcess.java,\
portal-kernel/src/com/liferay/portal/kernel/upgrade/BaseUpgradeCompanyId.java,\
portal-kernel/src/com/liferay/portal/kernel/upgrade/UpgradeProcess.java,\
portal-kernel/src/com/liferay/portal/kernel/upgrade/util/UpgradeProcessUtil.java
#
# Input a list of comma delimited XML paths that are allowed to have lines
# that start with spaces.
#
xml.excludes=\
definitions/web-facesconfig_1_2.xml,\
portal-web/docroot/dtd/web-facesconfig_1_2.xml
##
## General Source Formatting
##
#
# Set this property to true to allow *ServiceImpl classes to directly call
# methods in *ServiceUtil classes.
#
allow.use.service.util.in.service.impl=false
#
# Specify incorrect and expected parameters for the methods LanguageUtil.get
# and LanguageUtil.format. See LPS-47682.
#
languageutil.expected.parameter=request
languageutil.incorrect.parameter=pageContext
#
# Set this property to true to move frequently used imports to
# common/init.jsp.
#
move.frequently.used.imports.to.common.init=true
#
# Set this property to true to add the release version to deprecated Java
# terms.
#
add.missing.deprecation.release.version=true
##
## Immutable Field Types
##
#
# Input a list of comma delimited field types that are immutable. This list
# will be appended to the following default immutable field types:
# boolean, byte, char, double, float, int, long, short, java.lang.Boolean,
# java.lang.Byte, java.lang.Character, java.lang.Class, java.lang.Double,
# java.lang.Float, java.lang.Int, java.lang.Long, java.lang.Number,
# java.lang.Short, java.lang.String.
#
immutable.field.types=