Skip to content

Commit a39f7f2

Browse files
committed
Merge remote-tracking branch 'origin/main' into BED-7215
2 parents b4fd43b + 2c568f4 commit a39f7f2

215 files changed

Lines changed: 12817 additions & 3791 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.air.debug.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ exclude_regex = ["_test.go"]
2929
exclude_unchanged = false
3030
follow_symlink = false
3131
full_bin = "dlv exec --accept-multiclient --log --headless --listen :2345 --api-version 2 ../tmp/main --"
32-
include_dir = ["cmd/api/src", "packages/go", "local-harnesses"]
32+
include_dir = ["cmd/api/src", "packages/go", "local-harnesses", "server"]
3333
include_ext = ["go", "json", "sql", "yaml"]
3434
include_file = []
3535
kill_delay = "0s"

.air.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ exclude_regex = ["_test.go"]
2929
exclude_unchanged = false
3030
follow_symlink = false
3131
full_bin = ""
32-
include_dir = ["cmd/api/src", "packages/go", "local-harnesses"]
32+
include_dir = ["cmd/api/src", "packages/go", "local-harnesses", "server"]
3333
include_ext = ["go", "json", "yaml"]
3434
include_file = []
3535
kill_delay = "0s"

.golangci.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"errcheck"
1919
],
2020
"enable": [
21+
"revive",
2122
"sloglint",
2223
"staticcheck"
2324
],
@@ -65,6 +66,10 @@
6566
{
6667
"path": "packages/go/bhlog/measure/measure\\.go",
6768
"text": "message should be a string literal or a constant"
69+
},
70+
{
71+
"path-except": "server/",
72+
"linters": ["revive"]
6873
}
6974
]
7075
},
@@ -81,6 +86,13 @@
8186
"nilness"
8287
]
8388
},
89+
"revive": {
90+
"rules": [
91+
{
92+
"name": "receiver-naming"
93+
}
94+
]
95+
},
8496
"sloglint": {
8597
"kv-only": false,
8698
"attr-only": true,

.mockery.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2026 Specter Ops, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
all: false
17+
dir: "{{.InterfaceDir}}/mocks"
18+
filename: "{{.InterfaceName | lower}}.go"
19+
force-file-write: true
20+
formatter: goimports
21+
generate: true
22+
include-auto-generated: false
23+
log-level: info
24+
structname: "Mock{{.InterfaceName}}"
25+
pkgname: mocks
26+
recursive: false
27+
require-template-schema-exists: true
28+
template: testify
29+
packages:
30+
github.com/specterops/bloodhound/server:
31+
config:
32+
recursive: true
33+
include-interface-regex: "^[A-Z]"
34+
exclude-subpkg-regex:
35+
- mocks
-24.1 KB
Binary file not shown.
26 KB
Binary file not shown.
6.2 KB
Binary file not shown.
-12.1 KB
Binary file not shown.
12.3 KB
Binary file not shown.
-625 KB
Binary file not shown.

0 commit comments

Comments
 (0)