Joey Armstrong | bb26e93 | 2024-01-29 16:17:27 -0500 | [diff] [blame] | 1 | .. _code--makefile-lint-targets: |
Joey Armstrong | fb8f3c8 | 2024-01-29 10:13:18 -0500 | [diff] [blame] | 2 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 3 | ====================================== |
| 4 | Makefile Lint Targets: Syntax Checking |
| 5 | ====================================== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 6 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 7 | Targets |
| 8 | ======= |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 9 | |
| 10 | .. code:: bash |
| 11 | |
| 12 | git clone ssh://gerrit.opencord.org:29418/voltha-helm-charts.git |
| 13 | cd voltha-helm-charts |
| 14 | |
| 15 | make help | grep lint |
| 16 | lint-chart chart_version_check.sh |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 17 | lint-doc8 Syntax check *.rst documentation files. |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 18 | lint-helm Syntax check helm configs |
| 19 | lint-json Syntax check json sources |
| 20 | lint-license Verify sources contain a license block. |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 21 | lint-robot Syntax check robot sources using rflint |
| 22 | lint-shell Syntax check bash,bourne,etc sources |
| 23 | lint-yaml Syntax check yaml source using yamllint |
| 24 | UNSTABLE= Build targets prone to failure (lint-helm) |
| 25 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 26 | [PYTHON] |
Joey Armstrong | a2fa658 | 2023-04-07 11:03:36 -0400 | [diff] [blame] | 27 | lint-python Syntax check using available python tools |
| 28 | lint-flake8 Syntax check using tool flake8 |
| 29 | lint-pylint Syntax check using tool pylint |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 30 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 31 | | |
| 32 | |
| 33 | |
| 34 | All Sources |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 35 | =========== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 36 | |
| 37 | The generic lint target can be used to invoke all defined lint targets. |
| 38 | |
| 39 | .. code:: bash |
| 40 | |
| 41 | make clean |
| 42 | make lint 2>&1 | tee log |
| 43 | |
| 44 | | |
| 45 | |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 46 | |
| 47 | Makefile help |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 48 | ============= |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 49 | |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 50 | Individual Makefiles support a help target that will display a list of |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 51 | targets and functionality supported. |
| 52 | |
| 53 | .. code:: bash |
| 54 | |
| 55 | make help |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 56 | make help | grep {topic} |
| 57 | |
| 58 | .. list-table:: help |
| 59 | :widths: 20, 60 |
| 60 | :header-rows: 1 |
| 61 | |
| 62 | * - Make Target |
| 63 | - Description |
| 64 | * - help |
| 65 | - Display available help for targets and flags |
| 66 | * - make help | lint-{topic} |
| 67 | - Display summary usage for lint-doc8, lint-license, lint-make |
| 68 | * - lint-{topic}-help |
| 69 | - Display extended help for a topic, supported makefile targets, etc |
| 70 | |
| 71 | Legacy Help Usage |
| 72 | ----------------- |
| 73 | |
| 74 | .. code:: bash |
| 75 | |
| 76 | make help |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 77 | make help-verbose |
| 78 | make help VERBOSE=1 |
| 79 | |
| 80 | | |
| 81 | |
| 82 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 83 | doc8 / restructuredText (rst) |
| 84 | ============================= |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 85 | |
| 86 | Command: `doc8 <https://pypi.org/project/doc8/>`_ |
| 87 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 88 | .. list-table:: Makefile Targets |
| 89 | :widths: 20, 60 |
| 90 | :header-rows: 1 |
| 91 | |
| 92 | * - Target |
| 93 | - Description |
| 94 | * - help |
| 95 | - Display item ``lint-doc8`` as a summary help topic item. |
| 96 | * - lint-doc8-help |
| 97 | - Display extended help for ``lint-doc8`` targets |
| 98 | * - |
| 99 | - |
| 100 | * - lint-doc8 |
| 101 | - Build system lint target used to syntax check restructuredText sources. |
| 102 | * - lint-doc8-all |
| 103 | - Filesystem traversal, check all ``*.rst`` sources. |
| 104 | * - lint-doc8-mod |
| 105 | - Syntax check locally modified files (~git status) |
| 106 | * - lint-doc8-src |
| 107 | - Syntax check a list of files passed in as an argument. |
| 108 | * - |
| 109 | - |
| 110 | * - lint-doc8-install |
| 111 | - Dependency driven installation of the doc8 tool. |
| 112 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 113 | .. code:: bash |
| 114 | |
| 115 | make clean |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 116 | make lint-doc8 2>&1 | tee log |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 117 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 118 | make lint # supported by repositories that define lint-doc8 as a default target. |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 119 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 120 | .. list-table:: Sources |
| 121 | :widths: 20, 60 |
| 122 | :header-rows: 1 |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 123 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 124 | * - Source |
| 125 | - Description |
| 126 | * - `makefiles/lint/doc8/include.mk <http://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/doc8/include.mk>`_ |
| 127 | - Main makefile logic for syntax checking RST sources. |
| 128 | * - `makefiles/lint/doc8/install.mk <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/doc8/install.mk>`_ |
| 129 | - Dependency logic to install the doc8 tool when needed. |
| 130 | * - `makefiles/lint/doc8/excl.mk <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/doc8/install.mk>`_ |
| 131 | - Common doc8 exclusion patterns for all repositories. |
| 132 | |
| 133 | See Also |
| 134 | -------- |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 135 | |
Joey Armstrong | 1b8fdc3 | 2023-12-20 17:22:57 -0500 | [diff] [blame] | 136 | - lint-doc8-all target dependency will create a `python virtual env <https://wiki.opencord.org>`_ |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 137 | - python 3.10+ requires `virtual env patching <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/patches/>`_ (dynamic, applied when needed). |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 138 | - `makefiles/patches/include.mk <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/makefiles-orig/patches/>`__ |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 139 | |
| 140 | | |
| 141 | |
| 142 | |
| 143 | python: flake8 |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 144 | ============== |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 145 | |
| 146 | Command: `flake8 <https://flake8.pycqa.org/en/latest>`_ |
| 147 | |
| 148 | .. code:: bash |
| 149 | |
| 150 | make clean |
| 151 | make lint 2>&1 | tee log |
| 152 | make lint-flake8-all 2>&1 | tee log |
| 153 | make lint-flake8-modified 2>&1 | tee log |
| 154 | |
| 155 | Sources: |
| 156 | |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 157 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/>`__ |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 158 | - makefiles/lint/flake8.mk |
| 159 | |
| 160 | Notes: |
| 161 | |
Joey Armstrong | 1b8fdc3 | 2023-12-20 17:22:57 -0500 | [diff] [blame] | 162 | - lint-flake8-all target dependency will create a `python virtual env <https://wiki.opencord.org>`_ |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 163 | - python 3.10+ requires `virtual env patching <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/patches/>`_ (dynamic, applied when needed). |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 164 | - `makefiles/patches/include.mk <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/makefiles-orig/patches/>`__ |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 165 | |
| 166 | | |
| 167 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 168 | Helm Charts |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 169 | =========== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 170 | |
| 171 | Command(s): |
| 172 | - `helmlint.sh <https://gerrit.opencord.org/plugins/gitiles/helm-repo-tools/+/refs/heads/master/helmlint.sh>`_ |
| 173 | |
| 174 | .. code:: bash |
| 175 | |
| 176 | make clean |
| 177 | make lint-chart lint-helm 2>&1 | tee log |
| 178 | |
| 179 | Sources: |
| 180 | |
| 181 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/voltha-helm-charts/+/refs/heads/master/makefiles/lint/>`__ |
Joey Armstrong | 2a68795 | 2023-02-01 13:10:12 -0500 | [diff] [blame] | 182 | - `makefiles/lint/helm/include.mk <https://gerrit.opencord.org/plugins/gitiles/voltha-helm-charts/+/refs/heads/master/makefiles/lint/helm/include.mk>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 183 | - [`master <https://gerrit.opencord.org/plugins/gitiles/helm-repo-tools/+/refs/heads/master>`__] `helm-repo-tools <https://gerrit.opencord.org/plugins/gitiles/helm-repo-tools>`_ |
| 184 | |
| 185 | | |
| 186 | |
| 187 | |
| 188 | Golang |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 189 | ====== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 190 | |
| 191 | Command: |
| 192 | |
| 193 | Sources: |
| 194 | |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 195 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/>`__ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 196 | |
| 197 | | |
| 198 | |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 199 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 200 | JSON |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 201 | ==== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 202 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 203 | Command: `json.tool <https://docs.python.org/3/library/json.html>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 204 | |
| 205 | .. code:: bash |
| 206 | |
| 207 | make clean |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 208 | make lint 2>&1 | tee log |
| 209 | make lint-json-all 2>&1 | tee log |
| 210 | make lint-json-modified 2>&1 | tee log |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 211 | |
| 212 | Sources: |
| 213 | |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 214 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/>`__ |
| 215 | - `makefiles/lint/json.mk <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/json.mk>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 216 | |
| 217 | | |
| 218 | |
| 219 | |
| 220 | License / Copyright notice |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 221 | ========================== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 222 | |
| 223 | Command: |
| 224 | |
| 225 | .. code:: bash |
| 226 | |
| 227 | make clean |
| 228 | make lint-license 2>&1 | tee log |
| 229 | |
| 230 | Sources: |
| 231 | |
| 232 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/voltha-system-tests/+/refs/heads/master/makefiles/lint>`__ |
Joey Armstrong | 8b426fc | 2023-11-14 16:09:11 -0500 | [diff] [blame] | 233 | - `makefiles/lint/license.mk <http://gerrit.opencord.org/plugins/gitiles/voltha-system-tests/+/refs/heads/master/makefiles/lint/license/include.mk>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 234 | |
| 235 | | |
| 236 | |
| 237 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 238 | python: pylint |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 239 | ============== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 240 | |
Joey Armstrong | 8b426fc | 2023-11-14 16:09:11 -0500 | [diff] [blame] | 241 | Command: `pylint <http://github.com/pylint-dev/pylint>`_, `pypi.org <https://pypi.org/project/pylint/>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 242 | |
| 243 | .. code:: bash |
| 244 | |
| 245 | make clean |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 246 | make lint 2>&1 | tee log |
| 247 | make lint-pylint-all 2>&1 | tee log |
| 248 | make lint-pylint-modified 2>&1 | tee log |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 249 | |
| 250 | Sources: |
| 251 | |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 252 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/>`__ |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 253 | - makefiles/lint/pylint.mk |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 254 | - `makefiles/patches/include.mk <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/makefiles-orig/patches/>`__ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 255 | |
| 256 | Notes: |
| 257 | |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 258 | - pylint the --py3k option is no longer supported by v3.10+ |
Joey Armstrong | 1b8fdc3 | 2023-12-20 17:22:57 -0500 | [diff] [blame] | 259 | - lint-pylint-all target dependency will create a `python virtual env <https://wiki.opencord.org>`_ |
Joey Armstrong | bd6cc3d | 2023-01-09 19:52:12 -0500 | [diff] [blame] | 260 | - python 3.10+ requires `virtual env patching <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master/patches/>`_ (dynamic, applied when needed). |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 261 | |
| 262 | | |
| 263 | |
| 264 | |
| 265 | Robot |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 266 | ===== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 267 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 268 | Command: rflint `robotframework-lint <https://pypi.org/project/robotframework-lint/>`_ |
| 269 | |
| 270 | .. code:: bash |
| 271 | |
| 272 | make clean |
| 273 | make lint 2>&1 | tee log |
| 274 | make lint-robot-all 2>&1 | tee log |
| 275 | make lint-robot-modified 2>&1 | tee log |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 276 | |
| 277 | Sources: |
| 278 | |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 279 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/>`__ |
Joey Armstrong | 1eb713f | 2024-01-30 13:53:00 -0500 | [diff] [blame] | 280 | - `makefiles/lint/robot/*.mk <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/robot>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 281 | |
| 282 | | |
| 283 | |
| 284 | |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 285 | Shell / Command Line Scripts |
| 286 | ============================ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 287 | |
| 288 | Command: `shellcheck <https://github.com/koalaman/shellcheck>`_ |
| 289 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 290 | .. code:: bash |
| 291 | |
| 292 | make clean |
| 293 | make lint 2>&1 | tee log |
| 294 | make lint-shell-all 2>&1 | tee log |
| 295 | make lint-shell-modified 2>&1 | tee log |
| 296 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 297 | Sources: |
| 298 | |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 299 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/>`__ |
Joey Armstrong | 8b426fc | 2023-11-14 16:09:11 -0500 | [diff] [blame] | 300 | - `makefiles/lint/shell.mk <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/shell/include.mk>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 301 | |
| 302 | | |
| 303 | |
| 304 | |
| 305 | Yaml |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 306 | ==== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 307 | |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 308 | Command: `yamllint <https://yamllint.readthedocs.io/en/stable/>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 309 | |
| 310 | .. code:: bash |
| 311 | |
| 312 | make clean |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 313 | make lint 2>&1 | tee log |
| 314 | make lint-yaml-all 2>&1 | tee log |
| 315 | make lint--modified 2>&1 | tee log |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 316 | |
| 317 | Sources: |
| 318 | |
Joey Armstrong | 644fb65 | 2023-10-02 13:12:20 -0400 | [diff] [blame] | 319 | - `makefiles/lint <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/>`__ |
| 320 | - `makefiles/lint/yaml.mk <https://gerrit.opencord.org/plugins/gitiles/onf-make/+/refs/heads/master/makefiles/lint/yaml.mk>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 321 | |
| 322 | | |
| 323 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 324 | |
| 325 | Bugs |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 326 | ==== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 327 | |
| 328 | - `jira::VOLTHA <https://jira.opencord.org/projects/VOL>`- |
| 329 | - Include repository URL |
| 330 | - Include gerrit/github changeset if available. |
| 331 | - A logfile snippet of the error and surrounding context. |
| 332 | |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 333 | | |
| 334 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 335 | |
| 336 | Repositories |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 337 | ============ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 338 | |
| 339 | - [`master <https://gerrit.opencord.org/plugins/gitiles/bbsim/+/refs/heads/master>`__] `bbsim <https://gerrit.opencord.org/plugins/gitiles/bbsim>`_ |
| 340 | - [`master <https://gerrit.opencord.org/plugins/gitiles/pod-configs/+/refs/heads/master>`__] `pod-configs <https://gerrit.opencord.org/plugins/gitiles/pod-configs>`_ |
| 341 | - [`master <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master>`__] `voltha-docs <https://gerrit.opencord.org/plugins/gitiles/voltha-docs>`_ |
| 342 | - [`master <https://gerrit.opencord.org/plugins/gitiles/voltha-helm-charts/+/refs/heads/master>`__] `voltha-helm-charts <https://gerrit.opencord.org/plugins/gitiles/voltha-helm-charts>`_ |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 343 | - [`master <https://gerrit.opencord.org/plugins/gitiles/voltha-docs/+/refs/heads/master>`__] `voltha-docs <https://gerrit.opencord.org/plugins/gitiles/voltha-docs>`_ |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 344 | |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 345 | | |
| 346 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 347 | |
| 348 | Notes |
Joey Armstrong | a9a16b6 | 2023-11-01 14:31:15 -0400 | [diff] [blame] | 349 | ===== |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 350 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 351 | - Volume problem reports require cleanup before linting can become a default. |
Joey Armstrong | 4de98b7 | 2023-02-09 14:51:38 -0500 | [diff] [blame] | 352 | |
| 353 | - After bulk linting problems for a language source have been cleaned up |
| 354 | default linting can be enabled by modifing {project-root}/config.mk. |
| 355 | |
Joey Armstrong | a8bc8e1 | 2022-12-04 07:06:59 -0500 | [diff] [blame] | 356 | - Lint target support is globally available across repositories, given time |
| 357 | it will be. Submit patches as needed or open a jira ticket to request |
| 358 | linting support in specific repositories. |
| 359 | - Makefile refactoring: yes absolutely! Baby steps are needed in the interim... |
Joey Armstrong | b544dff | 2022-12-07 15:12:05 -0500 | [diff] [blame] | 360 | |
| 361 | | |