Add spell check (#3544)

I felt like adding a spell checker, but it's okay if you find it
superfluous. At least then we could fix the found spell issues.

What is still missing is an automatic integration so that the spell
checker does not have to be called manually. Would it perhaps make sense
to always do it before a release?
This commit is contained in:
Kristjan ESPERANTO
2024-09-18 07:37:09 +02:00
committed by GitHub
parent ea3a323581
commit d9f9f41e98
17 changed files with 1338 additions and 46 deletions

View File

@@ -42,7 +42,7 @@ module.exports = {
return modulePositions;
},
// return if postion is on modulePositions Array (true/false)
// return if position is on modulePositions Array (true/false)
moduleHasValidPosition (position) {
if (this.getAvailableModulePositions().indexOf(position) === -1) return false;
return true;
@@ -57,7 +57,7 @@ module.exports = {
const results = regionRegEx.exec(line);
// if the regex returned something
if (results && results.length > 0) {
// get the postition parts and replace space with underscore
// get the position parts and replace space with underscore
const positionName = results[1].replace(" ", "_");
// add it to the list
modulePositions.push(positionName);