Qual: Clean up codespell exceptions (#28104)

The files with exceptions can be updated as there are many less cases to
exclude.

In the project files there are a few minor spelling corrections, and
`$scrit` was changed to `$search_crit` to avoid a spelling suggestion.
This commit is contained in:
MDW 2024-02-10 17:27:36 +01:00 committed by GitHub
parent 16f723f0ba
commit 2e254892ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 308 additions and 2615 deletions

View File

@ -5,69 +5,39 @@ provid
# PostgreSQL
postgresql
alltime
# Inside email
ba
blacklist
whitelist
bu
captial
categorie
categories
crypted
clos
contaxt
courant
datea
datee
crypted
errorstring
exten
falsy
master
medias
noe
NOO
noo
od
nd
udate
periode
projet
referer
referers
scrit
ser
ro
slave
savvy
# Inside email
suport
te
technic
thead
udo
ue
ro
whitelist
ws
# Code string
ect
tempdate
# checkES
checkes
sav
files'
# Used as array ke
# Used as array key
seeked
# Used as translation key
developpers
# Used as var
pice
# Used as key
marge
# htdocs/projet/activity/permonth.php
tweek
# moral (var name)
mor
# reyear, remonth, reday
reday
# Strings used as keys for translation
uptodate
reenable
@ -87,5 +57,3 @@ dur
fonction
espace
methode
# Proper names
tim

File diff suppressed because it is too large Load Diff

View File

@ -178,7 +178,7 @@ class EmptyGlobalToFunction extends AbstractRector
* Check if node is a global access with format conf->global->XXX
*
* @param Node $node A node
* @return bool Return true if noe is conf->global->XXX
* @return bool Return true if node is conf->global->XXX
*/
private function isGlobalVar($node)
{

View File

@ -204,7 +204,7 @@ class EmptyUserRightsToFunction extends AbstractRector
* Check if node is a global access with format conf->global->XXX
*
* @param Node $node A node
* @return bool Return true if noe is conf->global->XXX
* @return bool Return true if node is conf->global->XXX
*/
private function isGlobalVar($node)
{

View File

@ -1477,19 +1477,19 @@ class Form
$sql .= " AND (";
$prefix = !getDolGlobalString('COMPANY_DONOTSEARCH_ANYWHERE') ? '%' : ''; // Can use index if COMPANY_DONOTSEARCH_ANYWHERE is on
// For natural search
$scrit = explode(' ', $filterkey);
$search_crit = explode(' ', $filterkey);
$i = 0;
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= "(";
}
foreach ($scrit as $crit) {
foreach ($search_crit as $crit) {
if ($i > 0) {
$sql .= " AND ";
}
$sql .= "(s.nom LIKE '" . $this->db->escape($prefix . $crit) . "%')";
$i++;
}
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= ")";
}
if (isModEnabled('barcode')) {
@ -2889,12 +2889,12 @@ class Form
$sql .= ' AND (';
$prefix = !getDolGlobalString('PRODUCT_DONOTSEARCH_ANYWHERE') ? '%' : ''; // Can use index if PRODUCT_DONOTSEARCH_ANYWHERE is on
// For natural search
$scrit = explode(' ', $filterkey);
$search_crit = explode(' ', $filterkey);
$i = 0;
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= "(";
}
foreach ($scrit as $crit) {
foreach ($search_crit as $crit) {
if ($i > 0) {
$sql .= " AND ";
}
@ -2917,7 +2917,7 @@ class Form
$sql .= ")";
$i++;
}
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= ")";
}
if (isModEnabled('barcode')) {
@ -3537,12 +3537,12 @@ class Form
$sql .= ' AND (';
$prefix = !getDolGlobalString('PRODUCT_DONOTSEARCH_ANYWHERE') ? '%' : ''; // Can use index if PRODUCT_DONOTSEARCH_ANYWHERE is on
// For natural search
$scrit = explode(' ', $filterkey);
$search_crit = explode(' ', $filterkey);
$i = 0;
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= "(";
}
foreach ($scrit as $crit) {
foreach ($search_crit as $crit) {
if ($i > 0) {
$sql .= " AND ";
}
@ -3553,7 +3553,7 @@ class Form
$sql .= ")";
$i++;
}
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= ")";
}
if (isModEnabled('barcode')) {
@ -7469,12 +7469,12 @@ class Form
$sql .= ' AND (';
$prefix = !getDolGlobalString('TICKET_DONOTSEARCH_ANYWHERE') ? '%' : ''; // Can use index if PRODUCT_DONOTSEARCH_ANYWHERE is on
// For natural search
$scrit = explode(' ', $filterkey);
$search_crit = explode(' ', $filterkey);
$i = 0;
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= "(";
}
foreach ($scrit as $crit) {
foreach ($search_crit as $crit) {
if ($i > 0) {
$sql .= " AND ";
}
@ -7482,7 +7482,7 @@ class Form
$sql .= ")";
$i++;
}
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= ")";
}
$sql .= ')';
@ -7694,12 +7694,12 @@ class Form
$sql .= ' AND (';
$prefix = !getDolGlobalString('TICKET_DONOTSEARCH_ANYWHERE') ? '%' : ''; // Can use index if PRODUCT_DONOTSEARCH_ANYWHERE is on
// For natural search
$scrit = explode(' ', $filterkey);
$search_crit = explode(' ', $filterkey);
$i = 0;
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= "(";
}
foreach ($scrit as $crit) {
foreach ($search_crit as $crit) {
if ($i > 0) {
$sql .= " AND ";
}
@ -7707,7 +7707,7 @@ class Form
$sql .= "";
$i++;
}
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= ")";
}
$sql .= ')';
@ -7927,12 +7927,12 @@ class Form
$sql .= ' AND (';
$prefix = !getDolGlobalString('MEMBER_DONOTSEARCH_ANYWHERE') ? '%' : ''; // Can use index if PRODUCT_DONOTSEARCH_ANYWHERE is on
// For natural search
$scrit = explode(' ', $filterkey);
$search_crit = explode(' ', $filterkey);
$i = 0;
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= "(";
}
foreach ($scrit as $crit) {
foreach ($search_crit as $crit) {
if ($i > 0) {
$sql .= " AND ";
}
@ -7940,7 +7940,7 @@ class Form
$sql .= " OR p.lastname LIKE '" . $this->db->escape($prefix . $crit) . "%')";
$i++;
}
if (count($scrit) > 1) {
if (count($search_crit) > 1) {
$sql .= ")";
}
$sql .= ')';

View File

@ -55,7 +55,7 @@ $webPortalTheme = new WebPortalTheme();
}
if (!empty($webPortalTheme->loginLogoUrl)) {
print '--login-logo: url("'.$webPortalTheme->loginLogoUrl.'"); /* for relative path, must be relative od the css file or use full url starting by http:// */'."\n";
print '--login-logo: url("'.$webPortalTheme->loginLogoUrl.'"); /* for relative path, must be relative to the css file or use full url starting by http:// */'."\n";
}
?>
}

View File

@ -398,7 +398,7 @@ class UserTest extends PHPUnit\Framework\TestCase
$localobject->error = '';
$result = $localobject->setPassword($user, '$*11145678AA');
print __METHOD__." set a password with noo too much consecutive chars\n";
print __METHOD__." set a password with not too much consecutive chars\n";
print __METHOD__." localobject->error=".$localobject->error."\n";
$this->assertEquals('$*11145678AA', $result, 'We must get the password as it is valid (pass has not too much similar consecutive chars) and we did not here');