@@ -16,150 +16,6 @@ declare -i idx=-1
16
16
echo " [MODULE] plugins-good: Plugin group that follow Apache license with good quality"
17
17
# Please append your plugin modules here.
18
18
19
- prebuild_plugins[++idx]=" pr-prebuild-doxygen-tag"
20
- echo " ${prebuild_plugins[idx]} is starting."
21
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check a source code consists of required doxygen tags."
22
- echo " [DEBUG] The current path: $( pwd) ."
23
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
24
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
25
-
26
- prebuild_plugins[++idx]=" pr-prebuild-indent"
27
- echo " ${prebuild_plugins[idx]} is starting."
28
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check the code formatting style with GNU indent"
29
- echo " [DEBUG] The current path: $( pwd) ."
30
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
31
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
32
-
33
-
34
- prebuild_plugins[++idx]=" pr-prebuild-clang"
35
- echo " ${prebuild_plugins[idx]} is starting."
36
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check the code formatting style with clang-format"
37
- echo " [DEBUG] The current path: $( pwd) ."
38
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
39
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
40
-
41
- # prebuild_plugins[++idx]="pr-prebuild-exclusive-vio"
42
- # echo "${prebuild_plugins[idx]} is starting."
43
- # echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check issue #279. VIO commits should not touch non VIO files."
44
- # echo "[DEBUG] The current path: $(pwd)."
45
- # echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
46
- # source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
47
-
48
- prebuild_plugins[++idx]=" pr-prebuild-pylint"
49
- echo " ${prebuild_plugins[idx]} is starting."
50
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check the code formatting style with pylint"
51
- echo " [DEBUG] The current path: $( pwd) ."
52
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
53
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
54
-
55
- prebuild_plugins[++idx]=" pr-prebuild-newline"
56
- echo " ${prebuild_plugins[idx]} is starting."
57
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check if there is a newline issue in text files"
58
- echo " [DEBUG] The current path: $( pwd) ."
59
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
60
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
61
-
62
- prebuild_plugins[++idx]=" pr-prebuild-rpm-spec"
63
- echo " ${prebuild_plugins[idx]} is starting."
64
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check if there is incorrect staements in *.spec file"
65
- echo " [DEBUG] The current path: $( pwd) ."
66
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
67
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
68
-
69
- prebuild_plugins[++idx]=" pr-prebuild-file-size"
70
- echo " ${prebuild_plugins[idx]} is starting."
71
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check the file size to not include big binary files"
72
- echo " [DEBUG] The current path: $( pwd) ."
73
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
74
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
75
-
76
- prebuild_plugins[++idx]=" pr-prebuild-cppcheck"
77
- echo " ${prebuild_plugins[idx]} is starting."
78
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check dangerous coding constructs in source codes (*.c, *.cpp) with cppcheck"
79
- echo " [DEBUG] The current path: $( pwd) ."
80
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
81
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
82
-
83
- prebuild_plugins[++idx]=" pr-prebuild-nobody"
84
- echo " ${prebuild_plugins[idx]} is starting."
85
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check the commit message body"
86
- echo " [DEBUG] The current path: $( pwd) ."
87
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
88
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
89
-
90
- prebuild_plugins[++idx]=" pr-prebuild-timestamp"
91
- echo " ${prebuild_plugins[idx]} is starting."
92
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check the timestamp of the commit"
93
- echo " [DEBUG] The current path: $( pwd) ."
94
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
95
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
96
-
97
- prebuild_plugins[++idx]=" pr-prebuild-executable"
98
- echo " ${prebuild_plugins[idx]} is starting."
99
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check executable bits for .cpp, .c, .hpp, .h, .prototxt, .caffemodel, .txt., .init"
100
- echo " [DEBUG] The current path: $( pwd) ."
101
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
102
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
103
-
104
- prebuild_plugins[++idx]=" pr-prebuild-hardcoded-path"
105
- echo " ${prebuild_plugins[idx]} is starting."
106
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check prohibited hardcoded paths (/home/* for now)"
107
- echo " [DEBUG] The current path: $( pwd) ."
108
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
109
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
110
-
111
- prebuild_plugins[++idx]=" pr-prebuild-misspelling"
112
- echo " ${prebuild_plugins[idx]} is starting."
113
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check a misspelled statement in a document file with GNU Aspell"
114
- echo " [DEBUG] The current path: $( pwd) ."
115
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
116
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
117
-
118
- prebuild_plugins[++idx]=" pr-prebuild-doxygen-build"
119
- echo " ${prebuild_plugins[idx]} is starting."
120
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check a doxygen grammar if a doxygen can normally generate source code"
121
-
122
- prebuild_plugins[++idx]=" pr-prebuild-sloccount"
123
- echo " ${prebuild_plugins[idx]} is starting."
124
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check physical Source Lines of Code (SLOC) in a source code"
125
- echo " [DEBUG] The current path: $( pwd) ."
126
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
127
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
128
-
129
- prebuild_plugins[++idx]=" pr-prebuild-prohibited-words"
130
- echo " ${prebuild_plugins[idx]} is starting."
131
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check if source codes have prohibited words."
132
- echo " [DEBUG] The current path: $( pwd) ."
133
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
134
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
135
-
136
- prebuild_plugins[++idx]=" pr-prebuild-signed-off-by"
137
- echo " ${prebuild_plugins[idx]} is starting."
138
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check 'Signed-off-by' in commit body"
139
- echo " [DEBUG] The current path: $( pwd) ."
140
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
141
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
142
-
143
- prebuild_plugins[++idx]=" pr-prebuild-shellcheck"
144
- echo " ${prebuild_plugins[idx]} is starting."
145
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check a syntax error in a shell script file with 'shellcheck' package"
146
- echo " [DEBUG] The current path: $( pwd) ."
147
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
148
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
149
-
150
- prebuild_plugins[++idx]=" pr-prebuild-flawfinder"
151
- echo " ${prebuild_plugins[idx]} is starting."
152
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check security problems in the C/C++ source code with 'flawfinder' package"
153
- echo " [DEBUG] The current path: $( pwd) ."
154
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
155
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
156
-
157
- prebuild_plugins[++idx]=" pr-prebuild-coverity"
158
- echo " ${prebuild_plugins[idx]} is starting."
159
- echo " [MODULE] ${BOT_NAME} /${prebuild_plugins[idx]} : Check defects in the C/C++ source code with 'coverity' package"
160
- echo " [DEBUG] The current path: $( pwd) ."
161
- echo " [DEBUG] source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh"
162
- source ${REFERENCE_REPOSITORY} /ci/taos/plugins-good/${prebuild_plugins[idx]} .sh
163
19
164
20
# #################################################################################################################
165
21
echo " [MODULE] plugins-staging: Plugin group that does not have an evaluation and aging test enough"
0 commit comments