File tree Expand file tree Collapse file tree 6 files changed +65
-2
lines changed
Expand file tree Collapse file tree 6 files changed +65
-2
lines changed Original file line number Diff line number Diff line change 1+ * out
2+ * logs
3+ * actions
4+ * notifications
5+ * tools
6+ plugins
7+ user_trunk.yaml
8+ user.yaml
9+ tmp
Original file line number Diff line number Diff line change 1+ # Prettier friendly markdownlint config (all formatting rules disabled)
2+ extends : markdownlint/style/prettier
Original file line number Diff line number Diff line change 1+ enable =all
2+ source-path =SCRIPTDIR
3+ disable =SC2154
4+
5+ # If you're having issues with shellcheck following source, disable the errors via:
6+ # disable=SC1090
7+ # disable=SC1091
Original file line number Diff line number Diff line change 1+ rules :
2+ quoted-strings :
3+ required : only-when-needed
4+ extra-allowed : ["{|}"]
5+ key-duplicates : {}
6+ octal-values :
7+ forbid-implicit-octal : true
Original file line number Diff line number Diff line change 1+ # This file controls the behavior of Trunk: https://docs.trunk.io/cli
2+ # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
3+ version : 0.1
4+ cli :
5+ version : 1.25.0
6+ # Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
7+ plugins :
8+ sources :
9+ - id : trunk
10+ ref : v1.7.4
11+ uri : https://github.com/trunk-io/plugins
12+ # Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
13+ runtimes :
14+ enabled :
15+ - go@1.21.0
16+ - node@22.16.0
17+ - python@3.10.8
18+ # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
19+ lint :
20+ enabled :
21+ - actionlint@1.7.10
22+ - checkov@3.2.499
23+ - git-diff-check
24+ - markdownlint@0.47.0
25+ - prettier@3.8.1
26+ - shellcheck@0.11.0
27+ - shfmt@3.6.0
28+ - sqlfluff@4.0.0
29+ - taplo@0.10.0
30+ - trufflehog@3.92.5
31+ - yamllint@1.38.0
32+ actions :
33+ disabled :
34+ - trunk-announce
35+ - trunk-check-pre-push
36+ - trunk-fmt-pre-commit
37+ enabled :
38+ - trunk-upgrade-available
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ setup() {
228228 fi
229229 # Check if updating to resolved FIRST (before acknowledged, since resolved query contains "acknowledged" in WHERE clause)
230230 # Check both normalized and original query, and ensure it's in SET clause, not WHERE clause
231- if [[ " ${query_normalized} " =~ SET.* status.* resolved ]] || [[ " ${query} " =~ SET.* status.* [\" ' ]resolved[\"' ] ]] || ( [[ " ${query_normalized} " =~ resolved ]] && [[ " ${query_normalized} " =~ SET.* status ]] && ! [[ " ${query_normalized} " =~ WHERE.* resolved ]]) ; then
231+ if [[ " ${query_normalized} " =~ SET.* status.* resolved ]] || [[ " ${query} " =~ SET.* status.* [\" ' ]resolved[\"' ] ]] || { [[ " ${query_normalized} " =~ resolved ]] && [[ " ${query_normalized} " =~ SET.* status ]] && ! [[ " ${query_normalized} " =~ WHERE.* resolved ]]; } ; then
232232 # resolve_alert only updates if status IN ('active', 'acknowledged')
233233 # Check if alert is already resolved
234234 if [[ " ${current_status} " == " resolved" ]]; then
@@ -249,7 +249,7 @@ setup() {
249249 fi
250250 # Check if updating to acknowledged (check both normalized and original query)
251251 # Make sure it's in SET clause, not WHERE clause
252- if [[ " ${query_normalized} " =~ SET.* status.* acknowledged ]] || [[ " ${query} " =~ SET.* status.* [\" ' ]acknowledged[\"' ] ]] || ( [[ " ${query_normalized} " =~ acknowledged ]] && [[ " ${query_normalized} " =~ SET.* status ]] && ! [[ " ${query_normalized} " =~ WHERE.* acknowledged ]]) ; then
252+ if [[ " ${query_normalized} " =~ SET.* status.* acknowledged ]] || [[ " ${query} " =~ SET.* status.* [\" ' ]acknowledged[\"' ] ]] || { [[ " ${query_normalized} " =~ acknowledged ]] && [[ " ${query_normalized} " =~ SET.* status ]] && ! [[ " ${query_normalized} " =~ WHERE.* acknowledged ]]; } ; then
253253 # acknowledge_alert only updates if status = 'active'
254254 # Check if alert is already acknowledged or resolved
255255 if [[ " ${current_status} " == " acknowledged" ]] || [[ " ${current_status} " == " resolved" ]]; then
You can’t perform that action at this time.
0 commit comments