Commit 6762a67
feat(dblint): add pglinter (#632)
adds support for [`pglinter`](https://github.com/pmpetit/pglinter) and
integrate it with `dblint`. It reuses the existing infrastructure, and
99% of the code changes are generated.
adapted the `Dockerfile` to also install `pglinter`. Will take around 10
minutes now to build, but its all cached after that.
the initial metadata is generated from the downloaded repo. a follow-up
pr will automate this too.
pglinter works in a weird way where the user defines thresholds for
certain rules. e.g.
```
---
source: crates/pgls_pglinter/tests/diagnostics.rs
expression: content
snapshot_kind: text
---
Category: pglinter/base/howManyObjectsWithUppercase
Severity: Warning
Message: Count number of objects with uppercase in name or in columns.
Advices:
Count number of objects with uppercase in name or in columns.
[Info] Rule: B005
How to fix:
[Info] 1. Do not use uppercase for any database objects
```
I would much rather see the actual objects that have an uppercase in
name...
Opened an issue to check in with the maintainer:
pmpetit/pglinter#83
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 25d67d6 commit 6762a67
File tree
77 files changed
+5695
-850
lines changed- .github
- actions/setup-postgres
- workflows
- .sqlx
- crates
- pgls_completions/src/snapshots
- pgls_configuration/src
- pglinter
- rules
- pgls_diagnostics_categories/src
- pgls_pglinter
- src
- rules
- base
- cluster
- schema
- tests
- snapshots
- pgls_schema_cache/src
- queries
- pgls_workspace/src
- docs
- packages
- @postgres-language-server/backend-jsonrpc/src
- @postgrestools/backend-jsonrpc/src
- xtask/codegen
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
77 files changed
+5695
-850
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
64 | 98 | | |
65 | 99 | | |
66 | 100 | | |
67 | 101 | | |
68 | 102 | | |
69 | 103 | | |
| 104 | + | |
70 | 105 | | |
71 | 106 | | |
72 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
73 | 113 | | |
74 | | - | |
75 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
76 | 125 | | |
77 | 126 | | |
78 | 127 | | |
79 | | - | |
80 | 128 | | |
81 | 129 | | |
82 | 130 | | |
83 | 131 | | |
84 | 132 | | |
85 | | - | |
| 133 | + | |
86 | 134 | | |
87 | 135 | | |
88 | 136 | | |
| |||
91 | 139 | | |
92 | 140 | | |
93 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
100 | 112 | | |
101 | | - | |
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
107 | | - | |
| 118 | + | |
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments