databricks-bundle-inspector 0.10.0-next.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/THIRD_PARTY_NOTICES.md +83 -2
- package/dist/cli.cjs +4712 -1379
- package/dist/tree-sitter/THIRD_PARTY_NOTICES.md +55 -0
- package/dist/tree-sitter/tree-sitter-python.wasm +0 -0
- package/dist/tree-sitter/tree-sitter.cjs +4116 -0
- package/dist/tree-sitter/tree-sitter.wasm +0 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -15,6 +15,8 @@ It runs the same checks as the [Databricks Bundle Inspector extension](https://m
|
|
|
15
15
|
npx @uncoverthestack/databricks-bundle-inspector check
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
Installed in a project or with `npm install --global`, it is also `dabi` for short: `dabi check`. With `npx`, use the full package name.
|
|
19
|
+
|
|
18
20
|
That checks every `databricks.yml` or `databricks.yaml` under the current folder. Give folders or bundle files to check only those:
|
|
19
21
|
|
|
20
22
|
```sh
|
|
@@ -60,7 +62,7 @@ Problems that pass `databricks bundle validate` and only fail when you deploy or
|
|
|
60
62
|
- **Secret scopes** named by their resource key instead of their name.
|
|
61
63
|
- **Unresolved variables**.
|
|
62
64
|
|
|
63
|
-
Each finding names its check, such as `[missing_file]`. [Every check, and what code is read](https://github.com/uncoverthestack/databricks-bundle-inspector/blob/main/docs/checks.md). Checks on code read Python and SQL. Scala and R are not
|
|
65
|
+
Each finding names its check, such as `[missing_file]`. [Every check, and what code is read](https://github.com/uncoverthestack/databricks-bundle-inspector/blob/main/docs/checks.md). Checks on code read Python and SQL. Scala and R files are read for `dbutils` calls only. Under each bundle, `not checked` lines say what the checks couldn't look at, such as a notebook in the workspace or jobs defined in Python. A job written only under a target gets a note: check it with `--target`.
|
|
64
66
|
|
|
65
67
|
## Targets
|
|
66
68
|
|
|
@@ -86,7 +88,7 @@ A target that can't be checked is never replaced by the preview: no sign-in, a p
|
|
|
86
88
|
| `-p, --profile <name>` | the CLI's default | The `~/.databrickscfg` profile for `--target` |
|
|
87
89
|
| `--no-color` | | Plain text. Also when `NO_COLOR` is set or the output isn't a terminal |
|
|
88
90
|
|
|
89
|
-
`--format json` has a `schemaVersion`, so scripts can rely on its shape.
|
|
91
|
+
`--format json` has a `schemaVersion`, so scripts can rely on its shape. New fields can be added under the same version; a field that is removed or changes meaning raises it. Each bundle lists its findings in `findings` (with `fix`, how to fix it, when the check has advice) and what the checks couldn't look at in `notChecked` (`reason`, `message`, and `file`, `line`, `task` when known).
|
|
90
92
|
|
|
91
93
|
## Exit codes
|
|
92
94
|
|
|
@@ -104,7 +106,7 @@ A target that can't be checked is never replaced by the preview: no sign-in, a p
|
|
|
104
106
|
- It writes nothing into your bundle folders.
|
|
105
107
|
- No telemetry, and no network calls of its own. Only with `--target` does the Databricks CLI contact your workspace.
|
|
106
108
|
- Names and messages from a bundle are printed as text: never a link, a mention or a GitHub workflow command.
|
|
107
|
-
- The package has no dependencies: `dist/cli.cjs` is one readable file. The libraries
|
|
109
|
+
- The package has no dependencies: `dist/cli.cjs` is one readable file, and `dist/tree-sitter/` holds the Python parser it loads (a JavaScript file and two WebAssembly files, which only read code). The libraries in both are listed in `THIRD_PARTY_NOTICES.md`.
|
|
108
110
|
|
|
109
111
|
## Versions
|
|
110
112
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
`dist/cli.cjs`
|
|
3
|
+
`dist/cli.cjs` and `dist/tree-sitter/` include these packages.
|
|
4
4
|
|
|
5
|
-
## ignore 7.0.
|
|
5
|
+
## ignore 7.0.16 (MIT)
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
|
|
@@ -28,6 +28,87 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
28
28
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
## smol-toml 1.9.1 (BSD-3-Clause)
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
35
|
+
|
|
36
|
+
Redistribution and use in source and binary forms, with or without
|
|
37
|
+
modification, are permitted provided that the following conditions are met:
|
|
38
|
+
|
|
39
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
40
|
+
list of conditions and the following disclaimer.
|
|
41
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
42
|
+
this list of conditions and the following disclaimer in the
|
|
43
|
+
documentation and/or other materials provided with the distribution.
|
|
44
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
45
|
+
may be used to endorse or promote products derived from this software without
|
|
46
|
+
specific prior written permission.
|
|
47
|
+
|
|
48
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
49
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
50
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
51
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
52
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
53
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
54
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
55
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
56
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
57
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## tree-sitter-python 0.25.0 (MIT)
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
The MIT License (MIT)
|
|
64
|
+
|
|
65
|
+
Copyright (c) 2016 Max Brunsfeld
|
|
66
|
+
|
|
67
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
68
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
69
|
+
in the Software without restriction, including without limitation the rights
|
|
70
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
71
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
72
|
+
furnished to do so, subject to the following conditions:
|
|
73
|
+
|
|
74
|
+
The above copyright notice and this permission notice shall be included in all
|
|
75
|
+
copies or substantial portions of the Software.
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
79
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
80
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
81
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
82
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
83
|
+
SOFTWARE.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## web-tree-sitter 0.27.2 (MIT)
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
The MIT License (MIT)
|
|
90
|
+
|
|
91
|
+
Copyright (c) 2018 Max Brunsfeld
|
|
92
|
+
|
|
93
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
94
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
95
|
+
in the Software without restriction, including without limitation the rights
|
|
96
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
97
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
98
|
+
furnished to do so, subject to the following conditions:
|
|
99
|
+
|
|
100
|
+
The above copyright notice and this permission notice shall be included in all
|
|
101
|
+
copies or substantial portions of the Software.
|
|
102
|
+
|
|
103
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
104
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
105
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
106
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
107
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
108
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
109
|
+
SOFTWARE.
|
|
110
|
+
```
|
|
111
|
+
|
|
31
112
|
## yaml 2.9.1 (ISC)
|
|
32
113
|
|
|
33
114
|
```
|