Skip to content

Commit

Permalink
Fix typos found by codespell
Browse files Browse the repository at this point in the history
The typos have been determined via `codespell --skip .git -w`.
Unfortunately there are too many false-positives to add this as automatic
check.
  • Loading branch information
Martchus committed Jul 6, 2021
1 parent 022afd2 commit 71bef7e
Show file tree
Hide file tree
Showing 77 changed files with 674 additions and 134 deletions.
6 changes: 3 additions & 3 deletions assets/javascripts/admin_groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ var ajaxQueries = [];
var showPanelTimeout = undefined;

function saveReorganizedGroups() {
// wipe scheduled queries (for still uncommited changes new queries will be added)
// wipe scheduled queries (for still uncommitted changes new queries will be added)
ajaxQueries = [];

// to avoid flickering, show the panel a litle bit delayed
// to avoid flickering, show the panel a little bit delayed
showPanelTimeout = setTimeout(function() {
$('#reorganize_groups_panel').show();
}, 500);
Expand Down Expand Up @@ -288,7 +288,7 @@ function saveReorganizedGroups() {
return;
}

// update initial value (to avoid queries for already commited changes)
// update initial value (to avoid queries for already committed changes)
groupLi.data('initial-index', index);
if (parentId) {
groupLi.data('initial-parent', parentId);
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/admin_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function setup_admin_user() {
if (xhr.responseJSON && xhr.responseJSON.error)
addFlash('danger', xhr.responseJSON.error);
else
addFlash('danger', 'An error has ocurred. Maybe there are unsatisfied foreign key restrictions in the DB for this user.');
addFlash('danger', 'An error has occurred. Maybe there are unsatisfied foreign key restrictions in the DB for this user.');
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/audit_log.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function loadAuditLogTable() {
targets: 1,
render: function(data, type, row) {
if (type === 'display')
// I want to have a link to events for cases when one wants to share interesing event
// I want to have a link to events for cases when one wants to share interesting event
return '<a href="' + audit_url + '?eventid=' + row.id + '" title=' + data + '>' + jQuery.timeago(data + " UTC") + '</a>';
else
return data;
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function toggleFullscreenMode(fullscreen) {
// change ID of main container (to change applied CSS rules)
$('#content').attr('id', fullscreen ? 'content_fullscreen' : 'content');

// change visiblity of some elements
// change visibility of some elements
$('.navbar, .footer, .jumbotron, #group_description')[fullscreen ? 'hide' : 'show']();

// toggle navbar visibility
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/job_templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function buildMediumGroup(group, media) {
var prioHeading = $('<th class="prio">Prio</th>');
prioHeading.css('white-space', 'nowrap');
var prioHelpPopover = $('<a href="#" class="help_popover fa fa-question-circle"" data-content="' +
'The priority can be set for each row specificly. However, the priority might be left empty as well. ' +
'The priority can be set for each row specifically. However, the priority might be left empty as well. ' +
'In this case default priority for the whole job group is used (displayed in italic font)." data-toggle="popover" ' +
'data-trigger="focus" role="button"></a>');
prioHelpPopover.popover({ html: true });
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/keyevent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// http://stackoverflow.com/questions/5681146/chrome-10-keyevent-or-something-similar-to-firefoxs-keyevent

// FIXME: key events may be differnt in other browsers:
// FIXME: key events may be different in other browsers:
// http://www.javascripter.net/faq/keyeventconstantsfirefox.htm
if (typeof KeyEvent === "undefined") {
var KeyEvent = {
Expand Down
8 changes: 4 additions & 4 deletions assets/javascripts/running.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function updateTestStatus(newStatus) {
} else if (!resultClassList.contains('resultrunning')) {
return;
}
// detatch the preview container if it is contained by the row to be relaced
// detach the preview container if it is contained by the row to be relaced
const resultRow = resultCell.parentNode;
if ($.contains(resultRow, previewContainer)) {
previewContainer.style.display = 'none';
Expand Down Expand Up @@ -286,7 +286,7 @@ function initLivelogAndTerminal() {
liveViewElements.push(value);
value.panel.bodyVisible = false;
value.panel.find('.card-header').on('click', function() {
// toggle visiblity
// toggle visibility
var body = value.panel.find('.card-body');
body.toggle(200);
value.panel.bodyVisible = !value.panel.bodyVisible;
Expand Down Expand Up @@ -418,7 +418,7 @@ function handleJobStateTransition(oldJobState, newJobState, newJobResult) {
// (called when live view tab is shown)
function resumeLiveView() {
$.each(liveViewElements, function(index, value) {
// skip streams which are shown in an expandible pannel which is currently collapsed
// skip streams which are shown in an expandible panel which is currently collapsed
if (value.panel && !value.panel.bodyVisible) {
return;
}
Expand Down Expand Up @@ -451,7 +451,7 @@ var developerMode = {
ownSession: false, // whether the development session belongs to us
panelExpanded: false, // whether the panel is supposed to be expanded
panelActuallyExpanded: false, // whether the panel is currently expanded
panelExplicitelyCollapsed: false, // whether the panel has been explicitely collapsed since the page has been opened
panelExplicitelyCollapsed: false, // whether the panel has been explicitly collapsed since the page has been opened
reconnectAttempts: 0, // number of (re)connect attempts (reset to 0 when we finally receive a message from os-autoinst)
currentModuleIndex: undefined, // the index of the current module

Expand Down
8 changes: 4 additions & 4 deletions assets/javascripts/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function CanvasState(canvas) {
this.width = canvas.width;
this.height = canvas.height;
this.ctx = canvas.getContext('2d');
// This complicates things a little but but fixes mouse co-ordinate problems
// This complicates things a little but but fixes mouse coordinate problems
// when there's a border or padding. See getMouse for more detail
var stylePaddingLeft, stylePaddingTop, styleBorderLeft, styleBorderTop;
if (document.defaultView && document.defaultView.getComputedStyle) {
Expand Down Expand Up @@ -201,7 +201,7 @@ function CanvasState(canvas) {
}
return;
}
// havent returned means we have failed to select anything.
// haven't returned means we have failed to select anything.
// If there was an object selected, we deselect it
if (myState.selection) {
myState.selection = null;
Expand All @@ -226,7 +226,7 @@ function CanvasState(canvas) {
}

// We don't want to drag the object by its top-left corner, we want to drag it
// from where we clicked. Thats why we saved the offset and use it here
// from where we clicked. That's why we saved the offset and use it here
objectToDrag.x = mx - myState.dragoffx;
objectToDrag.y = my - myState.dragoffy;

Expand All @@ -248,7 +248,7 @@ function CanvasState(canvas) {
}

} else {
// ensure rectange is within the screen
// ensure rectangle is within the screen
if (objectToDrag.x < 0) {
objectToDrag.x = 0;
} else if (objectToDrag.x + objectToDrag.w > this.width) {
Expand Down
2 changes: 1 addition & 1 deletion assets/stylesheets/cropper.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

/*
* FIX MARCHING ANTS IN IE
* As IE <6 tries to load background images we can uncomment the follwoing hack
* As IE <6 tries to load background images we can uncomment the following hack
* to remove that issue, not as pretty - but is anything in IE?
* And yes I do know that 'filter' is evil, but it will make it look semi decent in IE
*
Expand Down
2 changes: 1 addition & 1 deletion assets/stylesheets/navigation.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// navbar and dropdown menues
// navbar and dropdown menus
.navbar {
border: none;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
Expand Down
6 changes: 3 additions & 3 deletions container/openqa_data/data.template/conf/openqa.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ branding = plain
# hsts = 365

#[scm git]
# name of remote to get updates from before commiting changes (e.g. origin, leave out-commented to disable remote update)
# name of remote to get updates from before committing changes (e.g. origin, leave out-commented to disable remote update)
#update_remote = origin
# name of branch to rebase against before commiting changes (e.g. origin/master, leave out-commented to disable rebase)
# name of branch to rebase against before committing changes (e.g. origin/master, leave out-commented to disable rebase)
#update_branch = origin/master
# whether commited changes should be pushed
# whether committed changes should be pushed
#do_push = no

## Authentication method to use for user management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
sub {
my ($schema) = @_;

log_info('Setting asset limit explicitely on job group level where previously inherited from parent job group');
log_info('Setting asset limit explicitly on job group level where previously inherited from parent job group');

# note: Using manual query here because the script needs to be executed before the "auto" migration of DBIx
# which would assume that the migration has already happened.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
$job->update({t_finished => ($job->t_started // $job->t_created)});
}

# fix wrong job states previous openQA versions accidently assigned
# fix wrong job states previous openQA versions accidentally assigned
$jobs = $schema->resultset('Jobs')->search(
{
state => [OpenQA::Jobs::Constants::SKIPPED, OpenQA::Jobs::Constants::USER_CANCELLED],
Expand Down
4 changes: 2 additions & 2 deletions docs/Client.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ curl http://openqa.example.com/api/v1/jobs/overview?result=failed

But using `curl` directly can also get a bit clunky when the data you need to
submit is more complex, you want to store host and authentication information
in config files, or just get the retuned JSON pretty printed.
in config files, or just get the returned JSON pretty printed.

For those cases openQA also contains a dedicated client to help you with that.
It is called `openqa-cli` and can usually be installed with an `openQA-client`
Expand Down Expand Up @@ -114,7 +114,7 @@ curl -u arthur:1234567890ABCDEF:ABCDEF1234567890 -X DELETE \
== Features

Many of the `openqa-cli api` features are designed to be similar to other
commonly used tools like `curl`. It helps a lot if you are already familar with
commonly used tools like `curl`. It helps a lot if you are already familiar with
the https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol[HTTP protocol] and
https://en.wikipedia.org/wiki/JSON[JSON]. Both will be referenced extensively.

Expand Down
4 changes: 2 additions & 2 deletions docs/Contributing.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ for the openSUSE RPM package>>.

=== Perl and other packages
In openQA, there is a `dependencies.yaml` file including a list of
dependencies, seperated in groups. For example the openQA client does not need
dependencies, separated in groups. For example the openQA client does not need
all modules required to run openQA. Edit this file to add or change a dependency
and run `make update-deps`. This will generate the `cpanfile` and
`dist/rpm/openQA.spec` files.
Expand Down Expand Up @@ -911,7 +911,7 @@ node_modules/jshint/bin/jshint path/to/javascript.js
== Profiling the web UI
1. Install NYTProf, under openSUSE Tumbleweed: `zypper in perl-Devel-NYTProf perl-Mojolicious-Plugin-NYTProf`
2. Put `profiling_enabled = 1+ in `openqa.ini`.
3. Optionally import production data like described in the official contributers documentation.
3. Optionally import production data like described in the official contributors documentation.
4. Restart the web UI, browse some pages. Profiling is done in the background.
5. Access profiling data via `/nytprof` route.
Expand Down
2 changes: 1 addition & 1 deletion docs/ExternalResults.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ test results, test definition and test output.

In structured data mode, elements of the collections are objects. They can be
of any type, even though subclassing or objects of type of `OpenQA::Parser::Result`
are prefered.
are preferred.

One thing to keep in mind, is that in case deeply nested objects need to be parsed
like hash of hashes, array of hashes, they would need to subclass `OpenQA::Parser::Result`
Expand Down
10 changes: 5 additions & 5 deletions docs/UsersGuide.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ the group_overview page. The index page does not show tags by default to prevent
a potential performance regression. Tags can be enabled on the index page using the
corresponding option in the filter form at the bottom of the page.

image::images/build_tagging.png[Example of a tag coment and corresponding tagged build]
image::images/build_tagging.png[Example of a tag comment and corresponding tagged build]

==== Keeping important builds ====

Expand Down Expand Up @@ -759,7 +759,7 @@ scenarios:

Also link:https://yaml.org/type/merge.html[YAML Merge Keys] are supported.
This way you can reuse previously defined anchors and add other values to it.
Values in the merged alias will be overriden.
Values in the merged alias will be overridden.

You can even merge more than one alias.

Expand Down Expand Up @@ -868,7 +868,7 @@ settings), you have to quote it.
== Use of the REST API

openQA includes a _client_ script which - depending on the distribution - is
packaged independantly if you just want to interface with an existing openQA
packaged independently if you just want to interface with an existing openQA
instance without needing to install the full package. Call `openqa-cli --help`
for help.

Expand All @@ -885,10 +885,10 @@ over the web UI.

==== Cloning existing jobs - openqa-clone-job ====

If one wants to recreate an existing job from any publically available openQA
If one wants to recreate an existing job from any publicly available openQA
instance the script `openqa-clone-job` can be used to copy the necessary
settings and assets to another instance and schedule the test. For the test to
be executed it has to be ensured that matching ressources can be found, for
be executed it has to be ensured that matching resources can be found, for
example a worker with matching `WORKER_CLASS` must be registered. More details
on `openqa-clone-job` can be found in
<<WritingTests.asciidoc#writingtests,Writing Tests>>.
Expand Down
8 changes: 4 additions & 4 deletions docs/WritingTests.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ A@64bit --> B@64bit
A@ppc --> B@ppc
----

====== Conflicting machines prevent inheritence from parent
====== Conflicting machines prevent inheritance from parent
Assume test suite `A` is supposed to run on machine `64bit-8G`. Additionally, test suite `B` is supposed to run on machine `64bit-1G`.

Adding the variable `START_AFTER_TEST=A` to test suite `B` will *not* work. That means openQA will *not* create a job dependency and instead shows
Expand Down Expand Up @@ -776,7 +776,7 @@ assuming of course, that the tested machine was already set up with necessary in
.autoyast based tftp test
====
Here we will use autoyast to setup the system of the test job and the os-autoinst autoyast testing infrastructure. For supportserver, this means using proxy to access QEMU provided data, for dowloading autoyast profile and tftp verify script:
Here we will use autoyast to setup the system of the test job and the os-autoinst autoyast testing infrastructure. For supportserver, this means using proxy to access QEMU provided data, for downloading autoyast profile and tftp verify script:
[source,ini]
--------------------------------------------------------------------------------
Expand Down Expand Up @@ -835,7 +835,7 @@ from the SUT to the host.

The second method uses another serial port for both input and output. The SUT
attaches a TTY to the serial port which os-autoinst logs into. All
communication is therefor text based, similar to if you SSH'd into a remote
communication is therefore text based, similar to if you SSH'd into a remote
machine. This is called the serial terminal console (or the virtio console,
see implementation section for details).

Expand Down Expand Up @@ -1321,7 +1321,7 @@ openqa-clone-job --from https://openqa.opensuse.org --host localhost 24 SKIPTO=
* Use qemu-img snapshot -l something.img to find out what snapshots are in the image. Snapshots are named
`"test module category"-"test module name"` (e.g. `installation-start_install`).

==== Storing only the last sucessful snapshot
==== Storing only the last successful snapshot

* Run the worker with `--no-cleanup parameter`. This will preserve the hard disks after test runs.
* Set `TESTDEBUG=1` on a job. This will make openQA save a snapshot after each
Expand Down
6 changes: 3 additions & 3 deletions etc/openqa/openqa.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@
#auto_clone_regex = ^(cache failure|terminated prematurely):

#[scm git]
# name of remote to get updates from before commiting changes (e.g. origin, leave out-commented to disable remote update)
# name of remote to get updates from before committing changes (e.g. origin, leave out-commented to disable remote update)
#update_remote = origin
# name of branch to rebase against before commiting changes (e.g. origin/master, leave out-commented to disable rebase)
# name of branch to rebase against before committing changes (e.g. origin/master, leave out-commented to disable rebase)
#update_branch = origin/master
# whether commited changes should be pushed
# whether committed changes should be pushed
#do_push = no

## Authentication method to use for user management
Expand Down
2 changes: 1 addition & 1 deletion external/os-autoinst-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ them and then do:

You can find more information here:
* [Repository and usage](https://github.com/ingydotnet/git-subrepo)
* [A good comparison beween subrepo, submodule and
* [A good comparison between subrepo, submodule and
subtree](https://github.com/ingydotnet/git-subrepo/blob/master/Intro.pod)


Expand Down
Loading

0 comments on commit 71bef7e

Please sign in to comment.