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