forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source-formatter.properties
210 lines (187 loc) · 8.8 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
##
## Exclusions
##
#
# Input a list of comma delimited paths that will be excluded by the source
# formatter.
#
source.formatter.excludes=\
**/.git/**,\
**/bin/**,\
**/bundles/**,\
**/classes/**,\
**/test-classes/**,\
**/test-coverage/**,\
**/test-results/**,\
**/tmp/**,\
**/tools/sdk/**,\
**/webapps/**
#
# Input a list of comma delimited file names that should be ignored when
# trying to fit multiple lines on single line.
#
fit.on.single.line.excludes.files=\
portal-impl/src/com/liferay/portal/backgroundtask/messaging/BackgroundTaskStatusMessageListener.java@32
#
# Input a list of comma delimited file names that are allowed to have
# unalphabetized friendly URL routes.
#
friendly.url.routes.sort.excludes.files=\
portal-impl/src/com/liferay/portlet/admin/admin-server-friendly-url-routes.xml,\
portal-impl/src/com/liferay/portlet/assetpublisher/asset-publisher-friendly-url-routes.xml
#
# Input a list of comma delimited file names that are allowed to call
# session.createSQLQuery instead of session.createSynchronizedSQLQuery. See
# LPS-42599.
#
hibernate.sql.query.excludes.files=
#
# Input a list of comma delimited file names that are allowed to have Java
# terms without an access level modifier specified.
#
javaterm.access.level.modifier.excludes.files=\
portal-service/test/unit/com/liferay/portal/kernel/resiliency/spi/agent/annotation/DistributedRegistryTest.java@315
#
# Input a list of comma delimited file names that are allowed to have
# unalphabetized Java terms. In addition these files are allowed to have
# nonfinal variables that are capitalized.
#
javaterm.sort.excludes.files=\
portal-impl/src/com/liferay/portal/util/PortalImpl.java@_logWebServerServlet,\
portal-service/src/com/liferay/portal/kernel/log/LogFactoryUtil.java@_logFactory,\
portal-service/src/com/liferay/portal/kernel/servlet/HttpHeaders.java,\
portal-service/src/com/liferay/portal/kernel/util/ReleaseInfo.java,\
portal-service/src/com/liferay/portal/model/ListTypeConstants.java,\
portal-service/src/com/liferay/portlet/UserAttributes.java
#
# Input a list of comma delimited JSP file names 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.files=\
portal-web/docroot/html/taglib/ui/social_bookmark/init.jsp@20
#
# Input a list of comma delimited file names that are allowed to surpass the
# 80 column limit.
#
line.length.excludes.files=\
modules/util/osgi-util/test/integration/com/liferay/osgi/util/test/ReflectionServiceTrackerTest.java@166,\
portal-impl/src/com/liferay/portal/parsers/creole/parser/Creole10Lexer.java,\
portal-impl/src/com/liferay/portal/parsers/creole/parser/Creole10Parser.java,\
portal-impl/src/com/liferay/portal/spring/hibernate/PortalHibernateConfiguration.java@298,\
portal-impl/src/com/liferay/portal/tools/LangBuilder.java@445,\
portal-impl/src/com/liferay/portal/tools/LangBuilder.java@451,\
portal-impl/src/com/liferay/portal/tools/WebXML23Converter.java@81,\
portal-impl/src/com/liferay/portal/tools/servicebuilder/ServiceBuilder.java,\
portal-impl/src/com/liferay/portal/util/WebKeys.java,\
portal-impl/src/com/liferay/portlet/journal/util/JournalUtil.java@861,\
portal-impl/test/integration/com/liferay/portal/lar/LayoutSetPrototypePropagationTest.java@202,\
portal-impl/test/integration/com/liferay/portal/model/impl/LayoutFriendlyURLTest.java@298,\
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/portal/service/PortletPreferencesLocalServiceTest.java,\
portal-impl/test/integration/com/liferay/portlet/documentlibrary/service/persistence/DLFileEntryFinderTest.java,\
portal-impl/test/integration/com/liferay/portlet/wiki/trash/WikiPageDependentsTrashHandlerTest.java,\
portal-service/src/com/liferay/portal/kernel/search/QueryConfig.java@339,\
portal-service/src/com/liferay/portal/kernel/util/PropsKeys.java,\
portal-service/src/com/liferay/portal/kernel/util/WebKeys.java,\
portal-service/test/unit/com/liferay/portal/kernel/util/TableNameOrderByComparatorTest.java@46
#
# Input a list of comma delimited portlet XML files names that are allowed
# to have non-numerical portlet-name elements.
#
numerical.portlet.name.element.excludes.files=\
portal-impl/src/com/liferay/portal/deploy/dependencies/liferay-portlet.xml
#
# Input a list of comma delimited file names that are allowed to use
# java.lang.reflect.Proxy.
#
proxy.excludes.files=\
portal-impl/src/com/liferay/portal/server/DeepNamedValueScanner.java,\
portal-service/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/,\
/markdown-converter/,\
/osgi-util/,\
/registry-api/,\
/sync-engine/
#
# Input a list of comma delimited file names that are allowed to use
# java.security.SecureRandom. See LPS-39508.
#
secure.random.excludes.files=\
portal-service/src/com/liferay/portal/kernel/security/SecureRandomUtil.java,\
portal-service/test/unit/com/liferay/portal/kernel/security/SecureRandomUtilTest.java
#
# Input a list of comma delimited file names that are allowed to have
# nonstatic _log variables.
#
static.log.excludes.files=\
portal-impl/src/com/liferay/portal/servlet/filters/BasePortalFilter.java,\
portal-pacl/src/com/liferay/portal/security/pacl/jndi/PACLInitialContextFactory.java,\
portal-pacl/src/com/liferay/portal/security/pacl/jndi/PACLInitialContextFactoryBuilder.java,\
portal-service/src/com/liferay/portal/kernel/log/LogWrapper.java
#
# Input a list of comma delimited file names that are exluded when checking
# for correct use of test annotations.
#
test.annotations.excludes.files=\
portal-impl/test/unit/com/liferay/portal/cluster/TestBean.java
#
# Input a list of comma delimited upgrade file names that are allowed to
# call ServiceUtil methods. See LPS-34911.
#
upgrade.service.util.excludes.files=\
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 XML file names that are allowed to have
# lines that start with spaces.
#
xml.excludes.files=\
definitions/web-facesconfig_1_2.xml,\
portal-web/docroot/dtd/web-facesconfig_1_2.xml,\
util-taglib/src/com/liferay/taglib/aui.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 excpected 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, java.lang.reflect.Field,
# java.lang.reflect.Method.
#
immutable.field.types=