Lines Matching +full:- +full:- +full:pretty
35 # script/make-pretty
39 # script/make-pretty clang
40 # script/make-pretty clang-format
41 # script/make-pretty clang-tidy
45 # script/make-pretty markdown
49 # script/make-pretty python
53 # script/make-pretty shell
57 # script/make-pretty check clang
58 # script/make-pretty check clang-format
59 # script/make-pretty check clang-tidy
60 # script/make-pretty check markdown
61 # script/make-pretty check python
62 # script/make-pretty check shell
65 set -euo pipefail
86 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
87 '-DOT_ANYCAST_LOCATOR=ON'
88 '-DOT_APP_RCP=OFF'
89 '-DOT_MTD=OFF'
90 '-DOT_RCP=OFF'
91 '-DOT_PLATFORM=simulation'
92 '-DOT_BACKBONE_ROUTER=ON'
93 '-DOT_BORDER_AGENT=ON'
94 '-DOT_BORDER_ROUTER=ON'
95 '-DOT_BORDER_ROUTING=ON'
96 '-DOT_BORDER_ROUTING_DHCP6_PD=ON'
97 '-DOT_CHANNEL_MANAGER=ON'
98 '-DOT_CHANNEL_MANAGER_CSL=ON'
99 '-DOT_CHANNEL_MONITOR=ON'
100 '-DOT_COAP=ON'
101 '-DOT_COAP_BLOCK=ON'
102 '-DOT_COAP_OBSERVE=ON'
103 '-DOT_COAPS=ON'
104 '-DOT_COMMISSIONER=ON'
105 '-DOT_CSL_RECEIVER=ON'
106 '-DOT_DATASET_UPDATER=ON'
107 '-DOT_DHCP6_CLIENT=ON'
108 '-DOT_DHCP6_SERVER=ON'
109 '-DOT_DIAGNOSTIC=ON'
110 '-DOT_DNS_CLIENT=ON'
111 '-DOT_DNS_DSO=ON'
112 '-DOT_DNS_UPSTREAM_QUERY=ON'
113 "-DOT_DNSSD_DISCOVERY_PROXY=ON"
114 '-DOT_DNSSD_SERVER=ON'
115 '-DOT_DUA=ON'
116 '-DOT_MLR=ON'
117 '-DOT_ECDSA=ON'
118 '-DOT_HISTORY_TRACKER=ON'
119 '-DOT_IP6_FRAGM=ON'
120 '-DOT_JAM_DETECTION=ON'
121 '-DOT_JOINER=ON'
122 '-DOT_LINK_RAW=ON'
123 '-DOT_LINK_METRICS_INITIATOR=ON'
124 '-DOT_LINK_METRICS_SUBJECT=ON'
125 '-DOT_MAC_FILTER=ON'
126 '-DOT_MDNS=ON'
127 '-DOT_MESH_DIAG=ON'
128 '-DOT_NAT64_BORDER_ROUTING=ON'
129 '-DOT_NAT64_TRANSLATOR=ON'
130 '-DOT_NETDATA_PUBLISHER=ON'
131 '-DOT_NETDIAG_CLIENT=ON'
132 '-DOT_PING_SENDER=ON'
133 '-DOT_REFERENCE_DEVICE=ON'
134 '-DOT_SERVICE=ON'
135 '-DOT_SLAAC=ON'
136 '-DOT_SNTP_CLIENT=ON'
137 '-DOT_SRP_ADV_PROXY=ON'
138 '-DOT_SRP_CLIENT=ON'
139 '-DOT_SRP_SERVER=ON'
140 '-DOT_THREAD_VERSION=1.4'
141 '-DOT_TREL=ON'
142 '-DOT_COVERAGE=ON'
143 '-DOT_LOG_LEVEL_DYNAMIC=ON'
144 '-DOT_COMPILE_WARNING_AS_ERROR=ON'
145 '-DOT_UPTIME=ON'
151 echo -e '========================================'
152 echo -e ' format c/c++ (clang-format)'
153 echo -e '========================================'
155 …git ls-files "${OT_CLANG_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|')…
156 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format -style=file -i -verbose
161 echo -e '========================================'
162 echo -e ' check c/c++ (clang-format)'
163 echo -e '========================================'
165 …git ls-files "${OT_CLANG_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|')…
166 | xargs -n3 -P"$OT_BUILD_JOBS" script/clang-format-check
171 echo -e '========================================'
172 echo -e ' format c/c++ (clang-tidy)'
173 echo -e '========================================'
175 (mkdir -p ./build/cmake-tidy \
176 && cd ./build/cmake-tidy \
178 && ../../script/clang-tidy -j"$OT_BUILD_JOBS" "${OT_CLANG_TIDY_FIX_DIRS[@]}" -fix)
183 echo -e '========================================'
184 echo -e ' check c/c++ (clang-tidy)'
185 echo -e '========================================'
187 (mkdir -p ./build/cmake-tidy \
188 && cd ./build/cmake-tidy \
190 && ../../script/clang-tidy -j"$OT_BUILD_JOBS" "${OT_CLANG_TIDY_FIX_DIRS[@]}")
195 echo -e '========================================'
196 echo -e ' format markdown'
197 echo -e '========================================'
199 …git ls-files "${OT_MARKDOWN_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '…
200 | xargs -n10 -P"$OT_BUILD_JOBS" npx prettier@2.0.4 --write
205 echo -e '========================================'
206 echo -e ' check markdown'
207 echo -e '========================================'
209 …git ls-files "${OT_MARKDOWN_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '…
210 | xargs -n10 -P"$OT_BUILD_JOBS" npx prettier@2.0.4 --check
215 echo -e '========================================'
216 echo -e ' format python'
217 echo -e '========================================'
219 …git ls-files "${OT_PYTHON_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'…
220 …| xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style '{based_on_style: google, column…
225 echo -e '========================================'
226 echo -e ' check python'
227 echo -e '========================================'
229 …git ls-files "${OT_PYTHON_SOURCES[@]}" | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'…
230 …| xargs -n10 -P"$OT_BUILD_JOBS" python3 -m yapf --verbose --style '{based_on_style: google, column…
235 echo -e '========================================'
236 echo -e ' format shell'
237 echo -e '========================================'
239 git ls-files | xargs shfmt -f | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'))" \
240 | xargs -n10 -P"$OT_BUILD_JOBS" shfmt -i 4 -bn -ci -fn -s -w
245 echo -e '========================================'
246 echo -e ' check shell'
247 echo -e '========================================'
249 git ls-files | xargs shfmt -f | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'))" \
250 | xargs -n10 -P"$OT_BUILD_JOBS" shfmt -i 4 -bn -ci -fn -s -d
252 git ls-files | xargs shfmt -f | grep -v -E "^($(echo "${OT_EXCLUDE_DIRS[@]}" | tr ' ' '|'))" \
253 | xargs -n10 -P"$OT_BUILD_JOBS" shellcheck
267 elif [ "$1" == 'clang-format' ]; then
269 elif [ "$1" == 'clang-tidy' ]; then
295 elif [ "$1" == 'clang-format' ]; then
297 elif [ "$1" == 'clang-tidy' ]; then