From 40640d1556f8237b7a011a8a69f2d443db66d515 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 19 Jun 2026 08:48:38 +0000 Subject: [PATCH] Fix typos across the repository This commit correctly identifies and fixes several misspelled words across rust/go/eldritch codebase, comments, strings, documentation, etc. that were identified by using the `codespell` utility along with further tweaks made from review. Co-authored-by: KCarretto <16250309+KCarretto@users.noreply.github.com> --- AGENTS.md | 4 ++-- bin/reflective_loader/Cargo.toml | 2 +- bin/reflective_loader/src/loader.rs | 10 +++++----- docs/_docs/admin-guide/tavern.md | 2 +- docs/_docs/dev-guide/tavern.md | 2 +- docs/_docs/user-guide/eldritch.md | 2 +- docs/_docs/user-guide/imix.md | 4 ++-- implants/Cargo.toml | 2 +- implants/golem/src/main.rs | 2 +- implants/golem/tests/cli.rs | 2 +- .../eldritch-core/src/interpreter/introspection.rs | 2 +- .../eldritch/stdlib/eldritch-libassets/src/std/mod.rs | 2 +- .../stdlib/eldritch-libpivot/src/std/ncat_impl.rs | 2 +- .../stdlib/eldritch-libpivot/src/std/port_scan_impl.rs | 2 +- .../stdlib/eldritch-libpivot/src/std/ssh_copy_impl.rs | 2 +- implants/lib/transport/Cargo.toml | 2 +- tavern/app.go | 2 +- tavern/internal/auth/token_auth.go | 2 +- tavern/internal/builder/README.md | 4 ++-- tavern/internal/c2/api_claim_tasks.go | 1 - tavern/internal/cdn/download_screenshot_test.go | 4 ++-- tavern/internal/ent/enttest/testdb.go | 2 +- tavern/internal/ent/hook_events_test.go | 4 ++-- tavern/internal/http/shell/websocket.go | 2 +- tavern/internal/redirectors/quic/quic_test.go | 2 +- .../src/pages/shellv2/hooks/useCallbackTimer.test.ts | 8 ++++---- tavern/test_data_test.go | 2 +- tavern/tomes/file_tree/main.eldritch | 4 ++-- tavern/tomes/git.go | 2 +- tavern/tomes/netstat/main.eldritch | 2 +- 30 files changed, 42 insertions(+), 43 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index b9b659776..d4ad00969 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -80,8 +80,8 @@ cargo fmt 3. **Rust Formatting**: Always run `cargo fmt` - CI will fail without it. 4. **Linear History**: Use squash merge for PRs. 5. **React Components**: Avoid large ternary operations, instead break out the two pieces into components and use a simple ternary operation e.g. `condition ? : ` -6. **React Utilities**: Separate styling from logic and abstract reuseable functions into utils files. -7. **React Styling**: Attempt to reference existing pages and components for style guidelines, be sure to re-use components and match styling to maintain consistency. +6. **React Utilities**: Separate styling from logic and abstract reusable functions into utils files. +7. **React Styling**: Attempt to reference existing pages and components for style guidelines, be sure to reuse components and match styling to maintain consistency. 8. **Prefer Line-of-Sight Coding**: Avoid large indentation by returning early and keeping an unnested control flow, for example: ```golang diff --git a/bin/reflective_loader/Cargo.toml b/bin/reflective_loader/Cargo.toml index e9911187b..36a261f7e 100644 --- a/bin/reflective_loader/Cargo.toml +++ b/bin/reflective_loader/Cargo.toml @@ -17,7 +17,7 @@ edition = "2021" crate-type = ["cdylib"] [profile.dev] -opt-level = "z" # This reduces the numebr of symbols not found. +opt-level = "z" # This reduces the number of symbols not found. lto = true codegen-units = 1 panic = "abort" diff --git a/bin/reflective_loader/src/loader.rs b/bin/reflective_loader/src/loader.rs index 90c387674..ddc56d5f6 100644 --- a/bin/reflective_loader/src/loader.rs +++ b/bin/reflective_loader/src/loader.rs @@ -160,7 +160,7 @@ struct PeFileHeaders64 { section_headers: [IMAGE_SECTION_HEADER; MAX_PE_SECTIONS], } -// Pares the PE file from a series of bytes +// Parses the PE file from a series of bytes #[cfg(target_arch = "x86_64")] impl PeFileHeaders64 { fn new(dll_bytes_ptr: *mut c_void) -> Self { @@ -390,7 +390,7 @@ fn process_import_address_tables( function_ordinal_ptr, ) as _; } else { - // Calculate a refernce to the function name by adding the dll_base and name's RVA. + // Calculate a reference to the function name by adding the dll_base and name's RVA. let image_import_ptr: *mut IMAGE_IMPORT_BY_NAME = (new_dll_base as usize + unsafe { library_thunk.u1.AddressOfData } as usize) as *mut IMAGE_IMPORT_BY_NAME; @@ -679,9 +679,9 @@ mod tests { }; const TEST_PAYLOAD: &[u8] = - include_bytes!("..\\..\\create_file_dll\\target\\debug\\create_file_dll.dll"); + include_bytes!("../../create_file_dll/target/debug/create_file_dll.dll"); const TEST_PAYLOAD_RELATIVE_PATH: &str = - "..\\create_file_dll\\target\\debug\\create_file_dll.dll"; + "../../create_file_dll/target/debug/create_file_dll.dll"; fn get_export_address_by_name( pe_bytes: &[u8], @@ -819,7 +819,7 @@ mod tests { assert_eq!(base_reloc_entry.reloc_type, 0xa); } - // PE Headers change everytime create file dll is built + // PE Headers change every time create file dll is built // #[test] // fn test_reflective_loader_parse_pe_headers() -> () { diff --git a/docs/_docs/admin-guide/tavern.md b/docs/_docs/admin-guide/tavern.md index 0b70a81bb..e38a21abe 100644 --- a/docs/_docs/admin-guide/tavern.md +++ b/docs/_docs/admin-guide/tavern.md @@ -571,7 +571,7 @@ mutation tempLink { } ``` -This will create a link that allows the link to be active until Feburary 2nd 2026 at 21:33:18 UTC with 10 downloads. These two conditions are or'd so if either is allowed the download will work. +This will create a link that allows the link to be active until February 2nd 2026 at 21:33:18 UTC with 10 downloads. These two conditions are or'd so if either is allowed the download will work. If no path is specified a random 6 character path will be generated. In the graphql query above we request the path back to ensure we know where to grab the file. diff --git a/docs/_docs/dev-guide/tavern.md b/docs/_docs/dev-guide/tavern.md index 42eee2d2e..cd9458aad 100644 --- a/docs/_docs/dev-guide/tavern.md +++ b/docs/_docs/dev-guide/tavern.md @@ -31,7 +31,7 @@ func () Annotations() []schema.Annotation { entgql.MutationUpdate(), // Auto generate update mutation ), entsql.Annotation{ - Collation: "utf8mb4_general_ci", // Recommended - requried for case insensitive searching + Collation: "utf8mb4_general_ci", // Recommended - required for case insensitive searching }, } } diff --git a/docs/_docs/user-guide/eldritch.md b/docs/_docs/user-guide/eldritch.md index 914225d9a..6e8d590da 100644 --- a/docs/_docs/user-guide/eldritch.md +++ b/docs/_docs/user-guide/eldritch.md @@ -962,7 +962,7 @@ It can use specific timestamps (epoch seconds or string format) or copy timestam `file.write(path: str, content: str) -> None` The **file.write** method writes to a given file path with the given content. -If a file already exists at this path, the method will overwite it. If a directory +If a file already exists at this path, the method will overwrite it. If a directory already exists at the path the method will error. ### file.write_binary diff --git a/docs/_docs/user-guide/imix.md b/docs/_docs/user-guide/imix.md index 03208866f..466c060a0 100644 --- a/docs/_docs/user-guide/imix.md +++ b/docs/_docs/user-guide/imix.md @@ -383,8 +383,8 @@ To change the default uniqueness behavior you can set the `IMIX_UNIQUE` environm ### Available Selectors -To proiritize stealth we reccomend removing the file uniqueness selectors: `export IMIX_UNIQUE='[{"type":"env"},{"type":"macaddr"}]'` -If you know the environment will have VMs cloned without sysprep we recommend proritizing the file selectors and removing macaddr: `export IMIX_UNIQUE='[{"type":"env"},{"type":"file"},{"type":"file","args":{"path_override":"/etc/system-id"}}]'` +To prioritize stealth we recommend removing the file uniqueness selectors: `export IMIX_UNIQUE='[{"type":"env"},{"type":"macaddr"}]'` +If you know the environment will have VMs cloned without sysprep we recommend prioritizing the file selectors and removing macaddr: `export IMIX_UNIQUE='[{"type":"env"},{"type":"file"},{"type":"file","args":{"path_override":"/etc/system-id"}}]'` ### Default Behavior diff --git a/implants/Cargo.toml b/implants/Cargo.toml index 7d2c67013..7c7de1dd3 100644 --- a/implants/Cargo.toml +++ b/implants/Cargo.toml @@ -119,7 +119,7 @@ rand_chacha = { version = "0.3.1", default-features = false, features = ["std"]} regex = { version = "1.5.5", default-features = false} reqwest = { version = "0.12.15", default-features = false } russh = "0.37.1" -russh-sftp = "=2.0.8" # `thiserror` dependcy in older versions causes downstream issues in other libraries. +russh-sftp = "=2.0.8" # `thiserror` dependency in older versions causes downstream issues in other libraries. russh-keys = "0.37.1" rustls = "0.23" quinn = { version = "0.11", default-features = false, features = ["ring", "runtime-tokio"] } diff --git a/implants/golem/src/main.rs b/implants/golem/src/main.rs index b2f41503f..d7ec07839 100644 --- a/implants/golem/src/main.rs +++ b/implants/golem/src/main.rs @@ -143,7 +143,7 @@ fn main() -> anyhow::Result<()> { }); } } - // If we havent specified tomes in INPUT, we need to look through the asset locker for tomes to run + // If we haven't specified tomes in INPUT, we need to look through the asset locker for tomes to run if parsed_tomes.is_empty() { match locker.list() { Ok(assets) => { diff --git a/implants/golem/tests/cli.rs b/implants/golem/tests/cli.rs index 4d0cb8ac4..6bdcc2af6 100644 --- a/implants/golem/tests/cli.rs +++ b/implants/golem/tests/cli.rs @@ -70,7 +70,7 @@ fn test_golem_main_loaded_files() -> anyhow::Result<()> { // Test running `./golem -a ../../bin/golem_cli_test/ -e` // NOTE: Depending on how this test is run, the commands may not actually be run -// therefor we only test the output of eldritch and not the stdlib +// therefore we only test the output of eldritch and not the stdlib #[test] fn test_golem_main_loaded_and_embdedded_files() -> anyhow::Result<()> { let mut cmd = Command::new(cargo_bin!("golem")); diff --git a/implants/lib/eldritch/eldritch-core/src/interpreter/introspection.rs b/implants/lib/eldritch/eldritch-core/src/interpreter/introspection.rs index 9b4547ea7..8161a7aec 100644 --- a/implants/lib/eldritch/eldritch-core/src/interpreter/introspection.rs +++ b/implants/lib/eldritch/eldritch-core/src/interpreter/introspection.rs @@ -126,7 +126,7 @@ pub fn find_best_match(target: &str, candidates: &[String]) -> Option { // Threshold logic: // Allow a distance of up to 4, or half the string length + 1. // This allows "config" (6) -> "get_config" (10) (dist 4, threshold 4) - // "apend" (5) -> "append" (6) (dist 1, threshold 3) + // "append" (5) -> "append" (6) (dist 1, threshold 3) let threshold = (target.len() / 2 + 1).clamp(1, 4); for candidate in candidates { diff --git a/implants/lib/eldritch/stdlib/eldritch-libassets/src/std/mod.rs b/implants/lib/eldritch/stdlib/eldritch-libassets/src/std/mod.rs index c99e0cf0b..a4e6cc62f 100644 --- a/implants/lib/eldritch/stdlib/eldritch-libassets/src/std/mod.rs +++ b/implants/lib/eldritch/stdlib/eldritch-libassets/src/std/mod.rs @@ -148,7 +148,7 @@ impl StdAssetsLibrary { // Make a hashset of the new asset names let new_assets: HashSet = backend.assets().into_iter().map(Cow::into_owned).collect(); - // See if any name overlap with existin assets + // See if any name overlap with existing assets let colliding_names: Vec<&str> = self .asset_names .intersection(&new_assets) diff --git a/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ncat_impl.rs b/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ncat_impl.rs index 2d29ed646..94d45ccfc 100644 --- a/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ncat_impl.rs +++ b/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ncat_impl.rs @@ -19,7 +19,7 @@ async fn handle_ncat(address: String, port: i32, data: String, protocol: String) // Connect to remote host let mut connection = TcpStream::connect(&address_and_port).await?; - // Write our meessage + // Write our message connection.write_all(data.as_bytes()).await?; // Read server response diff --git a/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/port_scan_impl.rs b/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/port_scan_impl.rs index 38d9241cc..572a43b57 100644 --- a/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/port_scan_impl.rs +++ b/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/port_scan_impl.rs @@ -402,7 +402,7 @@ async fn handle_port_scan( let mut result: Vec<(String, i32, String, String)> = vec![]; // Await results of each job. - // We are not acting on scan results indepently so it's okay to loop through each and only return when all have finished. + // We are not acting on scan results independently so it's okay to loop through each and only return when all have finished. for task in all_scan_futures { match task.await? { Ok(res) => { diff --git a/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ssh_copy_impl.rs b/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ssh_copy_impl.rs index 2d884e69c..f9a6e88d1 100644 --- a/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ssh_copy_impl.rs +++ b/implants/lib/eldritch/stdlib/eldritch-libpivot/src/std/ssh_copy_impl.rs @@ -244,7 +244,7 @@ mod tests { offset: u64, data: Vec, ) -> Result { - //Warning this will only write one chunk - subsequesnt chunks will overwirte the old ones. + //Warning this will only write one chunk - subsequent chunks will overwrite the old ones. // Tests over the size of the chunk will fail let tmp_data = String::from_utf8(data).unwrap(); fs::write(handle, tmp_data.trim_end_matches(char::from(0))).unwrap(); diff --git a/implants/lib/transport/Cargo.toml b/implants/lib/transport/Cargo.toml index 361a8dd0c..d00c02f86 100644 --- a/implants/lib/transport/Cargo.toml +++ b/implants/lib/transport/Cargo.toml @@ -34,7 +34,7 @@ http = { workspace = true } tower = { workspace = true } # Use hyper 1.x for grpc hyper = { workspace = true, features = ["client"] } -# These crates are kinda funky gonna keep them in just transprot for now. +# These crates are kinda funky gonna keep them in just transport for now. hyper_legacy = { package = "hyper", version = "0.14", features = ["client", "http1", "http2", "stream"] } hyper-util = { version = "0.1", features = ["client", "client-legacy", "http1", "http2"] } hyper-rustls = { version = "0.27", default-features = false, features = ["webpki-tokio", "http2"] } diff --git a/tavern/app.go b/tavern/app.go index 7508fac9c..793ceb2dd 100644 --- a/tavern/app.go +++ b/tavern/app.go @@ -45,8 +45,8 @@ import ( tavernmcp "realm.pub/tavern/internal/mcp" "realm.pub/tavern/internal/portals" "realm.pub/tavern/internal/portals/mux" - "realm.pub/tavern/internal/portals/ssh" "realm.pub/tavern/internal/portals/pty" + "realm.pub/tavern/internal/portals/ssh" "realm.pub/tavern/internal/redirectors" "realm.pub/tavern/internal/scheduler" "realm.pub/tavern/internal/secrets" diff --git a/tavern/internal/auth/token_auth.go b/tavern/internal/auth/token_auth.go index fc9734f73..eccd5ea52 100644 --- a/tavern/internal/auth/token_auth.go +++ b/tavern/internal/auth/token_auth.go @@ -19,7 +19,7 @@ const ParamTokenRedirToken = "access_token" // HeaderAPIAccessToken is the name of the header clients should set to authenticate with personal access tokens. const HeaderAPIAccessToken = "X-Tavern-Access-Token" -// NewTokenRedirectHandler returns a new http endpoint that redirects the requestor to http://127.0.0.1 at the port specified +// NewTokenRedirectHandler returns a new http endpoint that redirects the requester to http://127.0.0.1 at the port specified // in the query parameters. This method requires an authenticated session, and will set the user's personal access token in the redirected // URL query parameters intended for use by CLI applications authenticating to Tavern. func NewTokenRedirectHandler() http.HandlerFunc { diff --git a/tavern/internal/builder/README.md b/tavern/internal/builder/README.md index ea1b5e8a4..f056af9b7 100644 --- a/tavern/internal/builder/README.md +++ b/tavern/internal/builder/README.md @@ -15,7 +15,7 @@ The builder package orchestrates agent compilation for target platforms. It conn ### future - Add terraform for build server -- Register redirectors so bulider callback uri can be a drop down. +- Register redirectors so builder callback uri can be a drop down. - Modifying the agent IMIX_CONFIG currently requires changes to both imix and tavern code bases now. Is there a way to codegen a YAML spec from tavern to the agent? - De-dupe agent builds should the API stop builds that have the same params and point to the existing build? Or is this a UI thing? @@ -33,7 +33,7 @@ The builder package orchestrates agent compilation for target platforms. It conn - Target OS + Target Format ---> rust target - TargetOS's only support certain formats - where to get the realm source code from - pull public repo? - - Currentt pattern with arbitrary bulid script is RCE as a service. Scope and limit this to just build configuration options. + - Currentt pattern with arbitrary build script is RCE as a service. Scope and limit this to just build configuration options. - upstream should be free form - pubkey can be set by the server ## Overview diff --git a/tavern/internal/c2/api_claim_tasks.go b/tavern/internal/c2/api_claim_tasks.go index 849ea2841..d82014fc0 100644 --- a/tavern/internal/c2/api_claim_tasks.go +++ b/tavern/internal/c2/api_claim_tasks.go @@ -494,4 +494,3 @@ func (srv *Server) ClaimTasks(ctx context.Context, req *c2pb.ClaimTasksRequest) // Return claimed tasks return &resp, nil } - diff --git a/tavern/internal/cdn/download_screenshot_test.go b/tavern/internal/cdn/download_screenshot_test.go index 12256728d..e36202438 100644 --- a/tavern/internal/cdn/download_screenshot_test.go +++ b/tavern/internal/cdn/download_screenshot_test.go @@ -67,8 +67,8 @@ func TestDownloadScreenshot(t *testing.T) { wantBody: []byte(fmt.Sprintf("%s\n", cdn.ErrInvalidFileID.Error())), }, { - name: "Cached", - reqURL: fmt.Sprintf("/download/%d", existingScreenshot.ID), + name: "Cached", + reqURL: fmt.Sprintf("/download/%d", existingScreenshot.ID), wantStatus: cdn.ErrFileNotModified.StatusCode, wantBody: []byte(fmt.Sprintf("%s\n", cdn.ErrFileNotModified.Error())), }, diff --git a/tavern/internal/ent/enttest/testdb.go b/tavern/internal/ent/enttest/testdb.go index c764cb2fe..9410d8c1f 100644 --- a/tavern/internal/ent/enttest/testdb.go +++ b/tavern/internal/ent/enttest/testdb.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "realm.pub/tavern/internal/ent" entsql "entgo.io/ent/dialect/sql" + "realm.pub/tavern/internal/ent" // The mattn driver _ "github.com/mattn/go-sqlite3" diff --git a/tavern/internal/ent/hook_events_test.go b/tavern/internal/ent/hook_events_test.go index c92f17f80..69d6a5446 100644 --- a/tavern/internal/ent/hook_events_test.go +++ b/tavern/internal/ent/hook_events_test.go @@ -187,8 +187,8 @@ func TestHookDeriveNotifications_HostAccessRecovered(t *testing.T) { require.NoError(t, err) // Step 2: Simulate the host being lost by setting NextSeenAt into the past - pastTime := time.Now().Add(-5 * time.Minute) - _, err = client.Host.UpdateOneID(hostID).SetNextSeenAt(pastTime).Save(ctx) + pastime := time.Now().Add(-5 * time.Minute) + _, err = client.Host.UpdateOneID(hostID).SetNextSeenAt(pastime).Save(ctx) require.NoError(t, err) // Step 3: Second upsert — beacon checks in again after being lost diff --git a/tavern/internal/http/shell/websocket.go b/tavern/internal/http/shell/websocket.go index c27bdf9be..9da688ed0 100644 --- a/tavern/internal/http/shell/websocket.go +++ b/tavern/internal/http/shell/websocket.go @@ -39,7 +39,7 @@ const ( type WebsocketControlFlowSignal string // WebsocketControlFlowSignalPortalUpgrade indicates that the connection has been upgraded to use a portal for interactivity. -// WebsocketControlFlowSignalPortalDowngrade indicates that the connection has been downgraded to a non-interactive polling model, indicating that the portal has closed or is unuseable. +// WebsocketControlFlowSignalPortalDowngrade indicates that the connection has been downgraded to a non-interactive polling model, indicating that the portal has closed or is unusable. const ( WebsocketControlFlowSignalPortalUpgrade = "PORTAL_UPGRADE" WebsocketControlFlowSignalPortalDowngrade = "PORTAL_DOWNGRADE" diff --git a/tavern/internal/redirectors/quic/quic_test.go b/tavern/internal/redirectors/quic/quic_test.go index 736071402..208e24395 100644 --- a/tavern/internal/redirectors/quic/quic_test.go +++ b/tavern/internal/redirectors/quic/quic_test.go @@ -113,7 +113,7 @@ func TestRedirector_QUIC_UnaryAndStreaming(t *testing.T) { // 2. Setup the QUIC redirector redirecter := &quicRedirector.Redirector{} - + // Create UDP listener to find a free port conn, err := net.ListenUDP("udp", &net.UDPAddr{IP: net.ParseIP("127.0.0.1"), Port: 0}) require.NoError(t, err) diff --git a/tavern/internal/www/src/pages/shellv2/hooks/useCallbackTimer.test.ts b/tavern/internal/www/src/pages/shellv2/hooks/useCallbackTimer.test.ts index 95fe513c9..fde833c36 100644 --- a/tavern/internal/www/src/pages/shellv2/hooks/useCallbackTimer.test.ts +++ b/tavern/internal/www/src/pages/shellv2/hooks/useCallbackTimer.test.ts @@ -24,8 +24,8 @@ describe("useCallbackTimer", () => { }); it("should return true for isMissedCallback but false for isLateCheckin when checkin is 1 minute late", () => { - const pastTime = moment().subtract(1, "minute").subtract(10, "seconds").toISOString(); - const beaconData = { node: { nextSeenAt: pastTime } }; + const pastime = moment().subtract(1, "minute").subtract(10, "seconds").toISOString(); + const beaconData = { node: { nextSeenAt: pastime } }; const { result } = renderHook(() => useCallbackTimer(beaconData)); @@ -35,8 +35,8 @@ describe("useCallbackTimer", () => { }); it("should return true for isLateCheckin when checkin is over 5 minutes late", () => { - const pastTime = moment().subtract(5, "minutes").subtract(10, "seconds").toISOString(); - const beaconData = { node: { nextSeenAt: pastTime } }; + const pastime = moment().subtract(5, "minutes").subtract(10, "seconds").toISOString(); + const beaconData = { node: { nextSeenAt: pastime } }; const { result } = renderHook(() => useCallbackTimer(beaconData)); diff --git a/tavern/test_data_test.go b/tavern/test_data_test.go index dae4cec2e..f8181dcc0 100644 --- a/tavern/test_data_test.go +++ b/tavern/test_data_test.go @@ -14,7 +14,7 @@ import ( // TestCreateTestData ensures createTestData runs without error and creates at least one beacon. func TestCreateTestData(t *testing.T) { var ( - ctx = context.Background() + ctx = context.Background() ) graph := enttest.OpenTempDB(t) defer graph.Close() diff --git a/tavern/tomes/file_tree/main.eldritch b/tavern/tomes/file_tree/main.eldritch index 3d2f236e5..a406a0191 100644 --- a/tavern/tomes/file_tree/main.eldritch +++ b/tavern/tomes/file_tree/main.eldritch @@ -22,14 +22,14 @@ def can_read(f): # Are we root? root = usernfo["euid"]["uid"] == 0 - # If the user isnt root and the user doesnt own the file, clear the user byte + # If the user isn't root and the user doesnt own the file, clear the user byte if not root and f["owner"] not in (usernfo["euid"]["name"], usernfo["uid"]["name"]): f_user = 0 # TODO: https://github.com/spellshift/realm/issues/570 # Will NOT match any group other than primary until #570 is fixed - # If the user isnt root and the group doesnt own the file, clear the group byte + # If the user isn't root and the group doesnt own the file, clear the group byte if not root and f["group"] not in (str(usernfo["egid"]), str(usernfo["gid"])): f_group = 0 diff --git a/tavern/tomes/git.go b/tavern/tomes/git.go index 852060ff8..5908c3797 100644 --- a/tavern/tomes/git.go +++ b/tavern/tomes/git.go @@ -286,7 +286,7 @@ func findTomePaths(tree *object.Tree) ([]string, error) { return tomePaths, nil } -// parseNamespaceFromGit attempts to return a shortend namespace for the tome based on the git URL. +// parseNamespaceFromGit attempts to return a shortened namespace for the tome based on the git URL. // If it cannot or something goes wrong, this will return the provided git URL as the namespace. func parseNamespaceFromGit(gitURLStr string) string { gitURL, err := url.Parse(gitURLStr) diff --git a/tavern/tomes/netstat/main.eldritch b/tavern/tomes/netstat/main.eldritch index b1a456534..e5d5c65bd 100644 --- a/tavern/tomes/netstat/main.eldritch +++ b/tavern/tomes/netstat/main.eldritch @@ -23,7 +23,7 @@ def netstat(): for p in process.list(): pids[p['pid']] = p['name'] - # Counts for dynamic column formating + # Counts for dynamic column formatting counts = [6, 6, 7, 6, 8] rows = [["PROTO", "LOCAL", "REMOTE", "STATE", "PROCESS"]] # Loop through each net result and format the columns