diff --git a/src/README.md b/src/README.md index 03769a1ce..99c52e638 100644 --- a/src/README.md +++ b/src/README.md @@ -12,7 +12,7 @@ Manages compilation and validation of repository configuration and consts. Both ----- ## /cli -Command Line Interface controller. Utilizes /pkg/repository as an exernal dependency. +Command Line Interface controller. Utilizes /pkg/repository as an external dependency. ----- diff --git a/src/cli/restore/exchange_test.go b/src/cli/restore/exchange_test.go index 7545514d6..4f5915c21 100644 --- a/src/cli/restore/exchange_test.go +++ b/src/cli/restore/exchange_test.go @@ -41,7 +41,7 @@ func (suite *ExchangeUnitSuite) TestAddExchangeCommands() { cmd := &cobra.Command{Use: test.use} - // normally a persisten flag from the root. + // normally a persistent flag from the root. // required to ensure a dry run. utils.AddRunModeFlag(cmd, true) diff --git a/src/cli/restore/onedrive_test.go b/src/cli/restore/onedrive_test.go index 8a44282c7..cf119c328 100644 --- a/src/cli/restore/onedrive_test.go +++ b/src/cli/restore/onedrive_test.go @@ -41,7 +41,7 @@ func (suite *OneDriveUnitSuite) TestAddOneDriveCommands() { cmd := &cobra.Command{Use: test.use} - // normally a persisten flag from the root. + // normally a persistent flag from the root. // required to ensure a dry run. utils.AddRunModeFlag(cmd, true) diff --git a/src/cli/restore/sharepoint_test.go b/src/cli/restore/sharepoint_test.go index 04ff0f2a6..ce7e3c73d 100644 --- a/src/cli/restore/sharepoint_test.go +++ b/src/cli/restore/sharepoint_test.go @@ -41,7 +41,7 @@ func (suite *SharePointUnitSuite) TestAddSharePointCommands() { cmd := &cobra.Command{Use: test.use} - // normally a persisten flag from the root. + // normally a persistent flag from the root. // required to ensure a dry run. utils.AddRunModeFlag(cmd, true) diff --git a/src/cli/utils/flags.go b/src/cli/utils/flags.go index f6c27a538..0b0e4a843 100644 --- a/src/cli/utils/flags.go +++ b/src/cli/utils/flags.go @@ -59,7 +59,7 @@ const ( FileModifiedBeforeFN = "file-modified-before" ) -// well-knwon flag values +// well-known flag values const ( RunModeFlagTest = "flag-test" RunModeRun = "run" diff --git a/src/cli/utils/testdata/flags.go b/src/cli/utils/testdata/flags.go index abcf92b23..1048a4e31 100644 --- a/src/cli/utils/testdata/flags.go +++ b/src/cli/utils/testdata/flags.go @@ -20,7 +20,7 @@ var ( EmailReceivedAfterInput = "mailReceivedAfter" EmailReceivedBeforeInput = "mailReceivedBefore" EmailSenderInput = "mailSender" - EmailSubjectInput = "mailSubjet" + EmailSubjectInput = "mailSubject" EventInput = []string{"event1", "event2"} EventCalInput = []string{"eventCal1", "eventCal2"} diff --git a/src/cli/utils/utils.go b/src/cli/utils/utils.go index f22583c80..6be59d367 100644 --- a/src/cli/utils/utils.go +++ b/src/cli/utils/utils.go @@ -55,8 +55,8 @@ func HasNoFlagsAndShownHelp(cmd *cobra.Command) bool { } type cmdCfg struct { - hidden bool - preRelese bool + hidden bool + preRelease bool } type cmdOpt func(*cmdCfg) @@ -76,7 +76,7 @@ func HideCommand() cmdOpt { func MarkPreReleaseCommand() cmdOpt { return func(cc *cmdCfg) { cc.hidden = true - cc.preRelese = true + cc.preRelease = true } } @@ -89,7 +89,7 @@ func AddCommand(parent, c *cobra.Command, opts ...cmdOpt) (*cobra.Command, *pfla parent.AddCommand(c) c.Hidden = cc.hidden - if cc.preRelese { + if cc.preRelease { // There is a default deprecated message that always shows so we do some terminal magic to overwrite it c.Deprecated = "\n\033[1F\033[K" + "==================================================================================================\n" + diff --git a/src/cmd/factory/factory.go b/src/cmd/factory/factory.go index d7bb14620..b174702c8 100644 --- a/src/cmd/factory/factory.go +++ b/src/cmd/factory/factory.go @@ -61,16 +61,16 @@ func main() { } func handleFactoryRoot(cmd *cobra.Command, args []string) error { - Err(cmd.Context(), impl.ErrNotYetImplemeted) + Err(cmd.Context(), impl.ErrNotYetImplemented) return cmd.Help() } func handleExchangeFactory(cmd *cobra.Command, args []string) error { - Err(cmd.Context(), impl.ErrNotYetImplemeted) + Err(cmd.Context(), impl.ErrNotYetImplemented) return cmd.Help() } func handleOneDriveFactory(cmd *cobra.Command, args []string) error { - Err(cmd.Context(), impl.ErrNotYetImplemeted) + Err(cmd.Context(), impl.ErrNotYetImplemented) return cmd.Help() } diff --git a/src/cmd/factory/impl/common.go b/src/cmd/factory/impl/common.go index 17dd0b922..f2760ad3f 100644 --- a/src/cmd/factory/impl/common.go +++ b/src/cmd/factory/impl/common.go @@ -35,7 +35,7 @@ var ( // TODO: ErrGenerating = clues.New("not all items were successfully generated") -var ErrNotYetImplemeted = clues.New("not yet implemented") +var ErrNotYetImplemented = clues.New("not yet implemented") // ------------------------------------------------------------------------------------------ // Restoration diff --git a/src/cmd/factory/impl/onedrive.go b/src/cmd/factory/impl/onedrive.go index f6bef0edf..c10fe7af2 100644 --- a/src/cmd/factory/impl/onedrive.go +++ b/src/cmd/factory/impl/onedrive.go @@ -18,7 +18,7 @@ func AddOneDriveCommands(cmd *cobra.Command) { } func handleOneDriveFileFactory(cmd *cobra.Command, args []string) error { - Err(cmd.Context(), ErrNotYetImplemeted) + Err(cmd.Context(), ErrNotYetImplemented) if utils.HasNoFlagsAndShownHelp(cmd) { return nil diff --git a/src/cmd/purge/scripts/onedrivePurge.ps1 b/src/cmd/purge/scripts/onedrivePurge.ps1 index 1a587d25a..4b72ebe8f 100644 --- a/src/cmd/purge/scripts/onedrivePurge.ps1 +++ b/src/cmd/purge/scripts/onedrivePurge.ps1 @@ -152,9 +152,9 @@ else { } #extract the suffix after the domain -$siteSiffix = "" +$siteSuffix = "" if ($siteUrl -imatch "^.*?(?<=sharepoint.com)(.*?$)") { - $siteSiffix = $Matches.1 + $siteSuffix = $Matches.1 } else { Write-Host "Site url appears to be malformed" @@ -174,5 +174,5 @@ $LibraryNameList = $LibraryNameList | ForEach-Object { @($_.Split(',').Trim()) } $FolderPrefixPurgeList = $FolderPrefixPurgeList | ForEach-Object { @($_.Split(',').Trim()) } foreach ($library in $LibraryNameList) { - Purge-Library -LibraryName $library -PurgeBeforeTimestamp $PurgeBeforeTimestamp -FolderPrefixPurgeList $FolderPrefixPurgeList -SiteSuffix $siteSiffix + Purge-Library -LibraryName $library -PurgeBeforeTimestamp $PurgeBeforeTimestamp -FolderPrefixPurgeList $FolderPrefixPurgeList -SiteSuffix $siteSuffix } \ No newline at end of file diff --git a/src/internal/common/ptr/pointer_test.go b/src/internal/common/ptr/pointer_test.go index 528c866f4..fdc8d9c88 100644 --- a/src/internal/common/ptr/pointer_test.go +++ b/src/internal/common/ptr/pointer_test.go @@ -20,7 +20,7 @@ func TestPointerSuite(t *testing.T) { suite.Run(t, s) } -// TestVal checks to ptr derefencing for the +// TestVal checks to ptr dereferencing for the // following types: // - *string // - *bool diff --git a/src/internal/connector/discovery/api/beta_service.go b/src/internal/connector/discovery/api/beta_service.go index 855be421f..13bafbaa4 100644 --- a/src/internal/connector/discovery/api/beta_service.go +++ b/src/internal/connector/discovery/api/beta_service.go @@ -37,7 +37,7 @@ func (s BetaService) Serialize(object serialization.Parsable) ([]byte, error) { err = writer.WriteObjectValue("", object) if err != nil { - return nil, clues.Wrap(err, "writeObjecValue serialization") + return nil, clues.Wrap(err, "writeObjectValue serialization") } return writer.GetSerializedContent() diff --git a/src/internal/connector/exchange/api/api.go b/src/internal/connector/exchange/api/api.go index 831f71d99..05e90728b 100644 --- a/src/internal/connector/exchange/api/api.go +++ b/src/internal/connector/exchange/api/api.go @@ -19,7 +19,7 @@ import ( // DeltaUpdate holds the results of a current delta token. It normally // gets produced when aggregating the addition and removal of items in -// a delta-queriable folder. +// a delta-queryable folder. type DeltaUpdate struct { // the deltaLink itself URL string diff --git a/src/internal/connector/exchange/api/shared.go b/src/internal/connector/exchange/api/shared.go index b5bb4fb90..0fbfa33f3 100644 --- a/src/internal/connector/exchange/api/shared.go +++ b/src/internal/connector/exchange/api/shared.go @@ -94,7 +94,7 @@ func getItemsAddedAndRemovedFromContainer( // iterate through the items in the page for _, item := range items { - // if the additional data conains a `@removed` key, the value will either + // if the additional data contains a `@removed` key, the value will either // be 'changed' or 'deleted'. We don't really care about the cause: both // cases are handled the same way in storage. if item.GetAdditionalData()[graph.AddtlDataRemoved] == nil { diff --git a/src/internal/connector/exchange/attachment_uploadable.go b/src/internal/connector/exchange/attachment_uploadable.go index 7f025b458..0dc3ced1e 100644 --- a/src/internal/connector/exchange/attachment_uploadable.go +++ b/src/internal/connector/exchange/attachment_uploadable.go @@ -9,7 +9,7 @@ import ( "github.com/alcionai/corso/src/internal/connector/graph" ) -// attachementUploadable represents structs that are able to upload small attachments directly to an item or use an +// attachmentUploadable represents structs that are able to upload small attachments directly to an item or use an // upload session to connect large attachments to their corresponding M365 item. type attachmentUploadable interface { uploadSmallAttachment(ctx context.Context, attachment models.Attachmentable) error diff --git a/src/internal/connector/exchange/exchange_data_collection.go b/src/internal/connector/exchange/exchange_data_collection.go index 2f8f9d4f2..f8e274d79 100644 --- a/src/internal/connector/exchange/exchange_data_collection.go +++ b/src/internal/connector/exchange/exchange_data_collection.go @@ -203,7 +203,7 @@ func (col *Collection) streamItems(ctx context.Context, errs *fault.Bus) { "fetch parallelism value not set or out of bounds, using default", "default_parallelism", urlPrefetchChannelBufferSize, - "requested_paralellism", + "requested_parallellism", col.ctrl.ItemFetchParallelism, ) } diff --git a/src/internal/connector/graph/betasdk/models/horizontal_section.go b/src/internal/connector/graph/betasdk/models/horizontal_section.go index 3e143d40f..3d8b7c243 100644 --- a/src/internal/connector/graph/betasdk/models/horizontal_section.go +++ b/src/internal/connector/graph/betasdk/models/horizontal_section.go @@ -10,7 +10,7 @@ type HorizontalSection struct { msmodel.Entity // The set of vertical columns in this section. columns []HorizontalSectionColumnable - // Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. + // Enumeration value that indicates the emphasis of the section background. The possible values are: none, neutral, soft, strong, unknownFutureValue. emphasis *SectionEmphasisType // Layout type of the section. The possible values are: none, oneColumn, twoColumns, threeColumns, oneThirdLeftColumn, oneThirdRightColumn, fullWidth, unknownFutureValue. layout *HorizontalSectionLayoutType @@ -34,7 +34,7 @@ func (m *HorizontalSection) GetColumns() []HorizontalSectionColumnable { return m.columns } -// GetEmphasis gets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. +// GetEmphasis gets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, neutral, soft, strong, unknownFutureValue. func (m *HorizontalSection) GetEmphasis() *SectionEmphasisType { return m.emphasis } @@ -122,7 +122,7 @@ func (m *HorizontalSection) SetColumns(value []HorizontalSectionColumnable) { m.columns = value } -// SetEmphasis sets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. +// SetEmphasis sets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, neutral, soft, strong, unknownFutureValue. func (m *HorizontalSection) SetEmphasis(value *SectionEmphasisType) { m.emphasis = value } diff --git a/src/internal/connector/graph/betasdk/models/vertical_section.go b/src/internal/connector/graph/betasdk/models/vertical_section.go index e4e8f6ed5..051b855e6 100644 --- a/src/internal/connector/graph/betasdk/models/vertical_section.go +++ b/src/internal/connector/graph/betasdk/models/vertical_section.go @@ -8,7 +8,7 @@ import ( // VerticalSection type VerticalSection struct { msmodel.Entity - // Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. + // Enumeration value that indicates the emphasis of the section background. The possible values are: none, neutral, soft, strong, unknownFutureValue. emphasis *SectionEmphasisType // The set of web parts in this section. webparts []WebPartable @@ -27,7 +27,7 @@ func CreateVerticalSectionFromDiscriminatorValue(parseNode i878a80d2330e89d26896 return NewVerticalSection(), nil } -// GetEmphasis gets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. +// GetEmphasis gets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, neutral, soft, strong, unknownFutureValue. func (m *VerticalSection) GetEmphasis() *SectionEmphasisType { return m.emphasis } @@ -93,7 +93,7 @@ func (m *VerticalSection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return nil } -// SetEmphasis sets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, netural, soft, strong, unknownFutureValue. +// SetEmphasis sets the emphasis property value. Enumeration value that indicates the emphasis of the section background. The possible values are: none, neutral, soft, strong, unknownFutureValue. func (m *VerticalSection) SetEmphasis(value *SectionEmphasisType) { m.emphasis = value } diff --git a/src/internal/connector/graph/cache_container.go b/src/internal/connector/graph/cache_container.go index fa5a979bb..fd9c06aac 100644 --- a/src/internal/connector/graph/cache_container.go +++ b/src/internal/connector/graph/cache_container.go @@ -66,12 +66,12 @@ type ContainerResolver interface { // conclude its search. Default input is "". Populate(ctx context.Context, errs *fault.Bus, baseFolderID string, baseContainerPather ...string) error - // PathInCache performs a look up of a path reprensentation + // PathInCache performs a look up of a path representation // and returns the m365ID of directory iff the pathString // matches the path of a container within the cache. // @returns bool represents if m365ID was found. PathInCache(pathString string) (string, bool) - // LocationInCache performs a look up of a path reprensentation + // LocationInCache performs a look up of a path representation // and returns the m365ID of directory iff the pathString // matches the logical path of a container within the cache. // @returns bool represents if m365ID was found. diff --git a/src/internal/connector/graph/metadata_collection.go b/src/internal/connector/graph/metadata_collection.go index 357f6bc7d..d90da2742 100644 --- a/src/internal/connector/graph/metadata_collection.go +++ b/src/internal/connector/graph/metadata_collection.go @@ -28,7 +28,7 @@ type MetadataCollection struct { statusUpdater support.StatusUpdater } -// MetadataCollecionEntry describes a file that should get added to a metadata +// MetadataCollectionEntry describes a file that should get added to a metadata // collection. The Data value will be encoded into json as part of a // transformation into a MetadataItem. type MetadataCollectionEntry struct { diff --git a/src/internal/connector/graph_connector.go b/src/internal/connector/graph_connector.go index 539aa88dc..9645f4186 100644 --- a/src/internal/connector/graph_connector.go +++ b/src/internal/connector/graph_connector.go @@ -157,7 +157,7 @@ func (gc *GraphConnector) UpdateStatus(status *support.ConnectorOperationStatus) gc.status = support.MergeStatus(gc.status, *status) } -// Status returns the current status of the graphConnector operaion. +// Status returns the current status of the graphConnector operation. func (gc *GraphConnector) Status() support.ConnectorOperationStatus { return gc.status } diff --git a/src/internal/connector/mockconnector/mock_data_message.go b/src/internal/connector/mockconnector/mock_data_message.go index 0139bc9ec..f67fff4b9 100644 --- a/src/internal/connector/mockconnector/mock_data_message.go +++ b/src/internal/connector/mockconnector/mock_data_message.go @@ -167,7 +167,7 @@ func GetMockMessageWith( // Serialized with: kiota-serialization-json-go v0.7.1 func GetMockMessageWithSizedAttachment(subject string, n int) []byte { // I know we said 35, but after base64encoding, 24mb of base content - // bloats up to 34mb (35 baloons to 49). So we have to restrict n + // bloats up to 34mb (35 balloons to 49). So we have to restrict n // appropriately. if n > 24 { n = 24 diff --git a/src/internal/connector/onedrive/collections_test.go b/src/internal/connector/onedrive/collections_test.go index 2f823ce60..f2c6c1250 100644 --- a/src/internal/connector/onedrive/collections_test.go +++ b/src/internal/connector/onedrive/collections_test.go @@ -1785,7 +1785,7 @@ func (suite *OneDriveCollectionsUnitSuite) TestGet() { doNotMergeItems: false, }, { - name: "OneDrive_OneItemPage_InvalidPrevDelta_DeleteNonExistantFolder", + name: "OneDrive_OneItemPage_InvalidPrevDelta_DeleteNonExistentFolder", drives: []models.Driveable{drive1}, items: map[string][]deltaPagerResult{ driveID1: { diff --git a/src/internal/connector/onedrive/drive.go b/src/internal/connector/onedrive/drive.go index 117e8f288..fd0c8859a 100644 --- a/src/internal/connector/onedrive/drive.go +++ b/src/internal/connector/onedrive/drive.go @@ -33,7 +33,7 @@ const ( // DeltaUpdate holds the results of a current delta token. It normally // gets produced when aggregating the addition and removal of items in -// a delta-queriable folder. +// a delta-queryable folder. // FIXME: This is same as exchange.api.DeltaUpdate type DeltaUpdate struct { // the deltaLink itself diff --git a/src/internal/connector/sharepoint/restore.go b/src/internal/connector/sharepoint/restore.go index 39aa85cff..816494130 100644 --- a/src/internal/connector/sharepoint/restore.go +++ b/src/internal/connector/sharepoint/restore.go @@ -117,8 +117,8 @@ func RestoreCollections( return status, err } -// createRestoreFolders creates the restore folder hieararchy in the specified drive and returns the folder ID -// of the last folder entry given in the hiearchy +// createRestoreFolders creates the restore folder hierarchy in the specified drive and returns the folder ID +// of the last folder entry given in the hierarchy func createRestoreFolders( ctx context.Context, service graph.Servicer, diff --git a/src/internal/connector/support/m365Transform.go b/src/internal/connector/support/m365Transform.go index 3c6a7981e..fb44f2a6d 100644 --- a/src/internal/connector/support/m365Transform.go +++ b/src/internal/connector/support/m365Transform.go @@ -65,7 +65,7 @@ func ToMessage(orig models.Messageable) models.Messageable { return aMessage } -// ToEventSimplified transforms an event to simplifed restore format +// ToEventSimplified transforms an event to simplified restore format // To overcome some of the MS Graph API challenges, the event object is modified in the following ways: // - Instead of adding attendees and generating spurious notifications, // add a summary of attendees at the beginning to the event before the original body content diff --git a/src/internal/connector/uploadsession/uploadsession_test.go b/src/internal/connector/uploadsession/uploadsession_test.go index 9fdf88b5d..f080affa3 100644 --- a/src/internal/connector/uploadsession/uploadsession_test.go +++ b/src/internal/connector/uploadsession/uploadsession_test.go @@ -36,7 +36,7 @@ func (suite *UploadSessionSuite) TestWriter() { contentRangeRegex := regexp.MustCompile(`^bytes (?P\d+)-(?P\d+)/(?P\d+)$`) nextOffset := -1 - // Initialize a test http server that validates expeected headers + // Initialize a test http server that validates expected headers ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { assert.Equal(t, r.Method, http.MethodPut) diff --git a/src/internal/kopia/conn.go b/src/internal/kopia/conn.go index e4d25b508..cabb1a555 100644 --- a/src/internal/kopia/conn.go +++ b/src/internal/kopia/conn.go @@ -87,7 +87,7 @@ func (w *conn) Initialize(ctx context.Context) error { return clues.Stack(ErrorRepoAlreadyExists, err).WithClues(ctx) } - return clues.Wrap(err, "initialzing repo").WithClues(ctx) + return clues.Wrap(err, "initializing repo").WithClues(ctx) } err = w.commonConnect( diff --git a/src/internal/kopia/model_store.go b/src/internal/kopia/model_store.go index e129aec42..e0d4d3968 100644 --- a/src/internal/kopia/model_store.go +++ b/src/internal/kopia/model_store.go @@ -497,7 +497,7 @@ func (ms *ModelStore) Delete(ctx context.Context, s model.Schema, id model.Stabl return ms.DeleteWithModelStoreID(ctx, latest) } -// DeletWithModelStoreID deletes the model with the given ModelStoreID from the +// DeleteWithModelStoreID deletes the model with the given ModelStoreID from the // model store. Turns into a noop if id is not empty but the model does not // exist. func (ms *ModelStore) DeleteWithModelStoreID(ctx context.Context, id manifest.ID) error { diff --git a/src/internal/kopia/model_store_test.go b/src/internal/kopia/model_store_test.go index e9220f0bb..9b9daf9f7 100644 --- a/src/internal/kopia/model_store_test.go +++ b/src/internal/kopia/model_store_test.go @@ -286,7 +286,7 @@ func (suite *ModelStoreIntegrationSuite) TestPutGet_PreSetID() { expect assert.ComparisonAssertionFunc }{ { - name: "genreate new id", + name: "generate new id", baseID: "", expect: assert.NotEqual, }, diff --git a/src/internal/kopia/snapshot_manager_test.go b/src/internal/kopia/snapshot_manager_test.go index 4ba22d40d..7fafc5e39 100644 --- a/src/internal/kopia/snapshot_manager_test.go +++ b/src/internal/kopia/snapshot_manager_test.go @@ -784,7 +784,7 @@ func (suite *SnapshotFetchUnitSuite) TestFetchPrevSnapshots() { assert.ElementsMatch(t, expected, got) - // Check the resons for selecting each manifest are correct. + // Check the reasons for selecting each manifest are correct. expectedReasons := make(map[manifest.ID][]Reason, len(test.expectedReasons)) for idx, reason := range test.expectedReasons { expectedReasons[test.data[idx].man.ID] = reason diff --git a/src/internal/streamstore/mock/mock.go b/src/internal/streamstore/mock/mock.go index 295633ada..bb1bbc124 100644 --- a/src/internal/streamstore/mock/mock.go +++ b/src/internal/streamstore/mock/mock.go @@ -20,7 +20,7 @@ type Streamer struct { } func (ms Streamer) Collect(context.Context, streamstore.Collectable) error { - return clues.New("not implented") + return clues.New("not implemented") } func (ms Streamer) Read( @@ -58,9 +58,9 @@ func (ms Streamer) Read( } func (ms Streamer) Write(context.Context, *fault.Bus) (string, error) { - return "", clues.New("not implented") + return "", clues.New("not implemented") } func (ms Streamer) Delete(context.Context, string) error { - return clues.New("not implented") + return clues.New("not implemented") } diff --git a/src/internal/tester/resource_owners.go b/src/internal/tester/resource_owners.go index 85c8ae5b7..19c73f8e1 100644 --- a/src/internal/tester/resource_owners.go +++ b/src/internal/tester/resource_owners.go @@ -98,7 +98,7 @@ func LoadTestM365UserID(t *testing.T) string { // expects cfg value to be a string representing an array such as: // ["site1\,uuid","site2\,uuid"] -// the delimeter must be a |. +// the delimiter must be a |. func LoadTestM365OrgSites(t *testing.T) []string { cfg, err := readTestConfig() require.NoError(t, err, "retrieving load test m365 org sites from test configuration", clues.ToCore(err)) @@ -118,7 +118,7 @@ func LoadTestM365OrgSites(t *testing.T) []string { // expects cfg value to be a string representing an array such as: // ["foo@example.com","bar@example.com"] -// the delimeter may be either a , or |. +// the delimiter may be either a , or |. func LoadTestM365OrgUsers(t *testing.T) []string { cfg, err := readTestConfig() require.NoError(t, err, "retrieving load test m365 org users from test configuration", clues.ToCore(err)) diff --git a/src/pkg/fault/fault.go b/src/pkg/fault/fault.go index a228bd5a2..c3601bd14 100644 --- a/src/pkg/fault/fault.go +++ b/src/pkg/fault/fault.go @@ -51,7 +51,7 @@ func New(failFast bool) *Bus { } } -// FailFast returs the failFast flag in the bus. +// FailFast returns the failFast flag in the bus. func (e *Bus) FailFast() bool { return e.failFast } diff --git a/src/pkg/fault/item.go b/src/pkg/fault/item.go index 551fb01fb..c0a5eac76 100644 --- a/src/pkg/fault/item.go +++ b/src/pkg/fault/item.go @@ -109,22 +109,22 @@ func (i Item) Values() []string { return []string{"Error", i.Type.Printable(), i.Name, cn, i.Cause} } -// ContainerErr produces a Container-type Item for tracking erronous items +// ContainerErr produces a Container-type Item for tracking erroneous items func ContainerErr(cause error, id, name string, addtl map[string]any) *Item { return itemErr(ContainerType, cause, id, name, addtl) } -// FileErr produces a File-type Item for tracking erronous items. +// FileErr produces a File-type Item for tracking erroneous items. func FileErr(cause error, id, name string, addtl map[string]any) *Item { return itemErr(FileType, cause, id, name, addtl) } -// OnwerErr produces a ResourceOwner-type Item for tracking erronous items. +// OnwerErr produces a ResourceOwner-type Item for tracking erroneous items. func OwnerErr(cause error, id, name string, addtl map[string]any) *Item { return itemErr(ResourceOwnerType, cause, id, name, addtl) } -// itemErr produces a Item of the provided type for tracking erronous items. +// itemErr produces a Item of the provided type for tracking erroneous items. func itemErr(t itemType, cause error, id, name string, addtl map[string]any) *Item { return &Item{ ID: id, @@ -176,7 +176,7 @@ var _ print.Printable = &Skipped{} // the underlying reason is transient or otherwise recoverable, // the item should not be skipped. // -// Skipped wraps Item primarily to minimze confusion when sharing the +// Skipped wraps Item primarily to minimize confusion when sharing the // fault interface. Skipped items are not errors, and Item{} errors are // not the basis for a Skip. type Skipped struct { diff --git a/src/pkg/logger/example_logger_test.go b/src/pkg/logger/example_logger_test.go index 13b1ee417..962dadc90 100644 --- a/src/pkg/logger/example_logger_test.go +++ b/src/pkg/logger/example_logger_test.go @@ -59,7 +59,7 @@ func Example_seed() { func Example_logger_standards() { log := logger.Ctx(context.Background()) - // 1. Keep messsages short. Lowercase text, no ending punctuation. + // 1. Keep messages short. Lowercase text, no ending punctuation. // This ensures logs are easy to scan, and simple to grok. // // preferred diff --git a/src/pkg/path/path.go b/src/pkg/path/path.go index ee7a0303a..5093bcb79 100644 --- a/src/pkg/path/path.go +++ b/src/pkg/path/path.go @@ -132,7 +132,7 @@ var ( // Builder is a simple path representation that only tracks path elements. It // can join, escape, and unescape elements. Higher-level packages are expected -// to wrap this struct to build resource-speicific contexts (e.x. an +// to wrap this struct to build resource-specific contexts (e.x. an // ExchangeMailPath). // Resource-specific paths allow access to more information like segments in the // path. Builders that are turned into resource paths later on do not need to diff --git a/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md b/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md index 17a2cf0a9..eeb384a4e 100644 --- a/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md +++ b/website/blog/2022-12-12-benchmarking-intel-vs-arm-for-backup-applications.md @@ -1,7 +1,7 @@ --- slug: benchmarking-intel-vs-arm-for-backup-applications title: "Benchmarking Intel vs. ARM (Graviton) for Splitting, Compressing, Hashing, and Encrypting Data" -description: "Throughput and cost-effectiveness comparision of Intel vs. Arm using compute-intensive data-processing microbenchmarks." +description: "Throughput and cost-effectiveness comparison of Intel vs. Arm using compute-intensive data-processing microbenchmarks." authors: ntolia tags: [corso, intel, arm, benchmarks] date: 2022-12-12 diff --git a/website/docs/setup/m365-access.md b/website/docs/setup/m365-access.md index 7142b44aa..744ea9435 100644 --- a/website/docs/setup/m365-access.md +++ b/website/docs/setup/m365-access.md @@ -1,5 +1,5 @@ --- -description: "Connect to a Microsft 365 tenant" +description: "Connect to a Microsoft 365 tenant" --- # Microsoft 365 access