Skip to content

Commit ce6eb37

Browse files
authored
Рефакторинг MD пакетов (#1384)
1 parent 7309f82 commit ce6eb37

File tree

59 files changed

+891
-299
lines changed

Some content is hidden

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

59 files changed

+891
-299
lines changed

bundles/com.e1c.v8codestyle.md/plugin.xml

+17-17
Original file line numberDiff line numberDiff line change
@@ -24,63 +24,63 @@
2424
</category>
2525
<check
2626
category="com.e1c.v8codestyle.md"
27-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.ConfigurationDataLock">
27+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.configuration.check.ConfigurationDataLock">
2828
</check>
2929
<check
3030
category="com.e1c.v8codestyle.md"
3131
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.MdObjectNameLength">
3232
</check>
3333
<check
3434
category="com.e1c.v8codestyle.md"
35-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameClient">
35+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameClient">
3636
</check>
3737
<check
3838
category="com.e1c.v8codestyle.md"
39-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameClientServer">
39+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameClientServer">
4040
</check>
4141
<check
4242
category="com.e1c.v8codestyle.md"
43-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameGlobal">
43+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameGlobal">
4444
</check>
4545
<check
4646
category="com.e1c.v8codestyle.md"
47-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleType">
47+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleType">
4848
</check>
4949
<check
5050
category="com.e1c.v8codestyle.md"
5151
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.MdListObjectPresentationCheck">
5252
</check>
5353
<check
5454
category="com.e1c.v8codestyle.md"
55-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.MdScheduledJobDescriptionCheck">
55+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.scheduledjob.check.MdScheduledJobDescriptionCheck">
5656
</check>
5757
<check
5858
category="com.e1c.v8codestyle.md"
5959
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.MdStandardAttributeSynonymEmpty">
6060
</check>
6161
<check
6262
category="com.e1c.v8codestyle.md"
63-
class="com.e1c.v8codestyle.md.check.MdScheduledJobPeriodicityCheck">
63+
class="com.e1c.v8codestyle.md.scheduledjob.check.MdScheduledJobPeriodicityCheck">
6464
</check>
6565
<check
6666
category="com.e1c.v8codestyle.md"
67-
class="com.e1c.v8codestyle.md.check.RegisterResourcePrecisionCheck">
67+
class="com.e1c.v8codestyle.md.register.check.RegisterResourcePrecisionCheck">
6868
</check>
6969
<check
7070
category="com.e1c.v8codestyle.md"
71-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameServerCallCheck">
71+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameServerCallCheck">
7272
</check>
7373
<check
7474
category="com.e1c.v8codestyle.md"
75-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameCachedCheck">
75+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameCachedCheck">
7676
</check>
7777
<check
7878
category="com.e1c.v8codestyle.md"
79-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameClientCachedCheck">
79+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameClientCachedCheck">
8080
</check>
8181
<check
8282
category="com.e1c.v8codestyle.md"
83-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameServerCallCachedCheck">
83+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameServerCallCachedCheck">
8484
</check>
8585
<check
8686
category="com.e1c.v8codestyle.md"
@@ -100,15 +100,15 @@
100100
</check>
101101
<check
102102
category="com.e1c.v8codestyle.md"
103-
class="com.e1c.v8codestyle.md.check.SubsystemSynonymTooLongCheck">
103+
class="com.e1c.v8codestyle.md.subsystem.check.SubsystemSynonymTooLongCheck">
104104
</check>
105105
<check
106106
category="com.e1c.v8codestyle.md"
107-
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.check.CommonModuleNameGlobalClientCheck">
107+
class="com.e1c.v8codestyle.internal.md.ExecutableExtensionFactory:com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNameGlobalClientCheck">
108108
</check>
109109
<check
110110
category="com.e1c.v8codestyle.md"
111-
class="com.e1c.v8codestyle.md.check.CommonModuleNamePrivilegedCheck">
111+
class="com.e1c.v8codestyle.md.commonmodule.check.CommonModuleNamePrivilegedCheck">
112112
</check>
113113
<check
114114
category="com.e1c.v8codestyle.md"
@@ -120,7 +120,7 @@
120120
</check>
121121
<check
122122
category="com.e1c.v8codestyle.md"
123-
class="com.e1c.v8codestyle.md.check.DocumentPostInPrivilegedModeCheck">
123+
class="com.e1c.v8codestyle.md.document.check.DocumentPostInPrivilegedModeCheck">
124124
</check>
125125
<check
126126
category="com.e1c.v8codestyle.md"
@@ -132,7 +132,7 @@
132132
</check>
133133
<check
134134
category="com.e1c.v8codestyle.md"
135-
class="com.e1c.v8codestyle.md.check.FunctionalOptionPrivilegedGetModeCheck">
135+
class="com.e1c.v8codestyle.md.functionoption.check.FunctionalOptionPrivilegedGetModeCheck">
136136
</check>
137137
</extension>
138138

bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/Messages.java

-46
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ final class Messages
2222
extends NLS
2323
{
2424
private static final String BUNDLE_NAME = Messages.class.getPackageName() + ".messages"; //$NON-NLS-1$
25-
public static String CommonModuleNameClient_description;
26-
public static String CommonModuleNameClient_message;
2725
public static String DbObjectRefNonRefTypesCheck_Description;
2826
public static String DbObjectRefNonRefTypesCheck_Ref_and_other;
2927
public static String DbObjectRefNonRefTypesCheck_Title;
@@ -40,45 +38,16 @@ final class Messages
4038
public static String MdObjectAttributeCommentNotExist_Param_Attribute_name_list;
4139
public static String MdObjectAttributeCommentNotExist_title;
4240
public static String MdObjectNameWithoutSuffix_Name_suffix_list_title;
43-
public static String CommonModuleNameClient_title;
44-
public static String CommonModuleNameClientServer_description;
45-
public static String CommonModuleNameClientServer_message;
46-
public static String CommonModuleNameClientServer_title;
47-
public static String CommonModuleNamePrivilegedCheck_Description;
48-
public static String CommonModuleNamePrivilegedCheck_Issue;
49-
public static String CommonModuleNamePrivilegedCheck_Title;
50-
public static String CommonModuleNameGlobal_Description;
51-
public static String CommonModuleNameGlobal_Message;
52-
public static String CommonModuleNameGlobal_Title;
53-
public static String CommonModuleNameGlobalClientCheck_Description;
54-
public static String CommonModuleNameGlobalClientCheck_Message;
55-
public static String CommonModuleNameGlobalClientCheck_Title;
56-
public static String CommonModuleType_description;
57-
public static String CommonModuleType_message;
58-
public static String CommonModuleType_title;
59-
public static String ConfigurationDataLock_description;
60-
public static String ConfigurationDataLock_message;
61-
public static String ConfigurationDataLock_title;
62-
public static String CommonModuleNameServerCallPostfixCheck_0;
63-
public static String CommonModuleNameServerCallPostfixCheck_Common_module_name_description;
64-
public static String CommonModuleNameServerCallPostfixCheck_Common_module_postfix_title;
6541
public static String DbObjectAnyRefCheck_AnyRef;
6642
public static String DbObjectAnyRefCheck_Description;
6743
public static String DbObjectAnyRefCheck_Title;
6844
public static String DbObjectMaxNumberLengthCheck_description;
6945
public static String DbObjectMaxNumberLengthCheck_message;
7046
public static String DbObjectMaxNumberLengthCheck_parameter;
7147
public static String DbObjectMaxNumberLengthCheck_title;
72-
public static String DocumentPostInPrivilegedModeCheck_description;
73-
public static String DocumentPostInPrivilegedModeCheck_message_Post_in_privileged_mode;
74-
public static String DocumentPostInPrivilegedModeCheck_message_Unpost_in_privileged_mode;
75-
public static String DocumentPostInPrivilegedModeCheck_title;
7648
public static String ExtensionMdObjectNamePrefixCheck_Description;
7749
public static String ExtensionMdObjectNamePrefixCheck_Object_0_should_have_1_prefix;
7850
public static String ExtensionMdObjectNamePrefixCheck_Title;
79-
public static String FunctionalOptionPrivilegedGetModeCheck_description;
80-
public static String FunctionalOptionPrivilegedGetModeCheck_message;
81-
public static String FunctionalOptionPrivilegedGetModeCheck_title;
8251
public static String MdObjectNameLength_description;
8352
public static String MdObjectNameLength_Maximum_name_length_description;
8453
public static String MdObjectNameLength_message;
@@ -93,24 +62,9 @@ final class Messages
9362
public static String MdOwnerAttributeSynonymEmpty_Description;
9463
public static String MdOwnerAttributeSynonymEmpty_owner_ErrorMessage;
9564
public static String MdOwnerAttributeSynonymEmpty_parent_ErrorMessage;
96-
public static String MdScheduledJobDescriptionCheck_title;
97-
public static String MdScheduledJobDescriptionCheck_description;
98-
public static String MdScheduledJobDescriptionCheck_message;
99-
public static String MdScheduledJobPeriodicityCheck_description;
100-
public static String MdScheduledJobPeriodicityCheck_The_minimum_job_interval_is_less_then_minute;
101-
public static String MdScheduledJobPeriodicityCheck_title;
102-
public static String MdScheduledJobPeriodicityCheck_Minimum_job_interval_description;
10365
public static String UnsafePasswordStorageCheck_Avoid_storing_password_in_infobase;
10466
public static String UnsafePasswordStorageCheck_Avoid_storing_password_in_infobase_description;
10567
public static String UnsafePasswordStorageCheck_Avoid_storing_password_in_infobase_error;
106-
public static String RegisterResourcePrecisionCheck_description;
107-
public static String RegisterResourcePrecisionCheck_message;
108-
public static String RegisterResourcePrecisionCheck_title;
109-
public static String SubsystemSynonymTooLongCheck_description;
110-
public static String SubsystemSynonymTooLongCheck_Exclude_languages_comma_separated;
111-
public static String SubsystemSynonymTooLongCheck_Length_of_section_name_more_than_symbols_for_language;
112-
public static String SubsystemSynonymTooLongCheck_Maximum_section_name_length;
113-
public static String SubsystemSynonymTooLongCheck_title;
11468
static
11569
{
11670
// initialize resource bundle

bundles/com.e1c.v8codestyle.md/src/com/e1c/v8codestyle/md/check/messages.properties

-92
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,4 @@
11

2-
CommonModuleNameClientServer_description = Client-server common module should end with ClientServer suffix
3-
4-
CommonModuleNameClientServer_message = Client-server common module should end with "{0}" suffix
5-
6-
CommonModuleNameClientServer_title = Client-server common module should end with ClientServer suffix
7-
8-
CommonModuleNameClient_description = Client common module should end with Client suffix
9-
10-
CommonModuleNameClient_message = Client common module name should end with "{0}" suffix
11-
12-
CommonModuleNameClient_title = Client common module should end with Client suffix
13-
14-
CommonModuleNameGlobalClientCheck_Description = Client global common module should end with Client suffix
15-
16-
CommonModuleNameGlobalClientCheck_Message = Client global common module should not have "{0}" suffix
17-
18-
CommonModuleNameGlobalClientCheck_Title = Client global common module should end with Client suffix
19-
20-
CommonModuleNameGlobal_Description = Global common module should end with Global suffix
21-
22-
CommonModuleNameGlobal_Message = Global common module should end with "{0}" suffix
23-
24-
CommonModuleNameGlobal_Title = Global common module should end with Global suffix
25-
26-
CommonModuleNamePrivilegedCheck_Description = Privileged common module should end with FullAccess suffix
27-
28-
CommonModuleNamePrivilegedCheck_Issue = Privileged common module should end with "{0}" suffix
29-
30-
CommonModuleNamePrivilegedCheck_Title = Privileged common module should end with FullAccess suffix
31-
32-
CommonModuleNameServerCallPostfixCheck_0 = Common module should end with {0}
33-
34-
CommonModuleNameServerCallPostfixCheck_Common_module_name_description = Common module should end with correct postfix
35-
36-
CommonModuleNameServerCallPostfixCheck_Common_module_postfix_title = Common module should end with correct postfix
37-
38-
CommonModuleType_description = Common module has incorrect type
39-
40-
CommonModuleType_message = Common module for type "{0}" has incorrect settings: {1}
41-
42-
CommonModuleType_title = Common module has incorrect type
43-
44-
ConfigurationDataLock_description = Application should use managed data lock mode
45-
46-
ConfigurationDataLock_message = Application should use managed data lock mode
47-
48-
ConfigurationDataLock_title = Configuration data lock mode
49-
502
DbObjectAnyRefCheck_AnyRef = Do not use composite types AnyRef, CatalogRef, DocumentRef, and other for standard metadata objects stored in the infobase.
513

524
DbObjectAnyRefCheck_Description = Do not use composite types AnyRef, CatalogRef, DocumentRef, and other for standard metadata objects stored in the infobase.
@@ -67,26 +19,12 @@ DbObjectRefNonRefTypesCheck_Ref_and_other = Composite type attributes used in jo
6719

6820
DbObjectRefNonRefTypesCheck_Title = Restrictions on the use of composite type attributes
6921

70-
DocumentPostInPrivilegedModeCheck_title = In document that allow posting don't set flag "Post/Unpost in privileged mode"
71-
72-
DocumentPostInPrivilegedModeCheck_description = In document that allow posting don't set flag "Post/Unpost in privileged mode"
73-
74-
DocumentPostInPrivilegedModeCheck_message_Post_in_privileged_mode = In document that allow posting don't set flag "Post in privileged mode"
75-
76-
DocumentPostInPrivilegedModeCheck_message_Unpost_in_privileged_mode = In document that allow posting don't set flag "Unpost in privileged mode"
77-
7822
ExtensionMdObjectNamePrefixCheck_Description = The object name of the extension object does not have a prefix corresponding to the prefix of the extension itself
7923

8024
ExtensionMdObjectNamePrefixCheck_Object_0_should_have_1_prefix = The object "{0}" should have "{1}" prefix
8125

8226
ExtensionMdObjectNamePrefixCheck_Title = Extension object name does not have extension prefix
8327

84-
FunctionalOptionPrivilegedGetModeCheck_message = Functional option don't use privileged get mode
85-
86-
FunctionalOptionPrivilegedGetModeCheck_description = Functional option don't use privileged get mode
87-
88-
FunctionalOptionPrivilegedGetModeCheck_title = Functional option don't use privileged get mode
89-
9028
MdListObjectPresentationCheck_Neither_Object_presentation_nor_List_presentation_is_not_filled = Neither Object presentation nor List presentation is not filled
9129

9230
MdListObjectPresentationCheck_decription = Neither Object presentation nor List presentation is not filled
@@ -141,36 +79,6 @@ MdOwnerAttributeSynonymEmpty_owner_ErrorMessage = Synonym of the 'Owner' standar
14179

14280
MdOwnerAttributeSynonymEmpty_parent_ErrorMessage = Synonym of the 'Parent' standard attribute is not specified
14381

144-
MdScheduledJobDescriptionCheck_description = The description of the predefine sheduled job is set
145-
146-
MdScheduledJobDescriptionCheck_message = The description of the predefine sheduled job is set
147-
148-
MdScheduledJobDescriptionCheck_title = The description of the predefine sheduled job is set
149-
150-
MdScheduledJobPeriodicityCheck_Minimum_job_interval_description = Minimum job interval
151-
152-
MdScheduledJobPeriodicityCheck_The_minimum_job_interval_is_less_then_minute = The minimum job interval is less then {0}s
153-
154-
MdScheduledJobPeriodicityCheck_description = The minimum job interval is less then {0}s
155-
156-
MdScheduledJobPeriodicityCheck_title = The minimum job interval is less then {0}s
157-
158-
RegisterResourcePrecisionCheck_description = Accumulation or accounting register resource precision is more than 25
159-
160-
RegisterResourcePrecisionCheck_message = Accumulation or accounting register resource "{0}" precision is more than {1}
161-
162-
RegisterResourcePrecisionCheck_title = Accumulation or accounting register resource precision is more than 25
163-
164-
SubsystemSynonymTooLongCheck_Exclude_languages_comma_separated = Exclude languages (codes, comma-separated)
165-
166-
SubsystemSynonymTooLongCheck_Length_of_section_name_more_than_symbols_for_language = Length of section synonym "{0}" more than {1} symbols for language {2}
167-
168-
SubsystemSynonymTooLongCheck_Maximum_section_name_length = Maximum section name length
169-
170-
SubsystemSynonymTooLongCheck_description = Section name is more than 35 characters long
171-
172-
SubsystemSynonymTooLongCheck_title = Section name is more than 35 characters long
173-
17482
UnsafePasswordStorageCheck_Avoid_storing_password_in_infobase = Avoid storing passwords in the infobase
17583

17684
UnsafePasswordStorageCheck_Avoid_storing_password_in_infobase_description = To minimize risks of unauthorized access to passwords, avoid storing passwords in the infobase.

0 commit comments

Comments
 (0)