Skip to content

Commit cd45f4f

Browse files
committed
Fixes typos and improves code consistency
Addresses various typos and inconsistencies across multiple files, enhancing code readability and maintainability. Adds codespell and flake8 configurations for linting. Relates to #4696
1 parent 35eab4a commit cd45f4f

30 files changed

+168
-105
lines changed

.github/linters/.codespellrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[codespell]
2+
# Skip data tables that contain many short server identifiers (e.g. "fof", "nd")
3+
skip =
4+
lgsm/data/*.csv,
5+
package-lock.json,
6+
node_modules
7+
8+
# Ignore common identifiers/acronyms and extensions used throughout LinuxGSM
9+
ignore-words-list = distroname,fof,nd,sav,parms,ThirdParty

.github/linters/.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length = 120

lgsm/config-default/config-lgsm/armarserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#### Game Server Settings ####
1010

1111
# https://community.bistudio.com/wiki/Arma_Reforger:Server_Hosting
12-
# MaxFPS to limit the used Server resouces
12+
# MaxFPS to limit the used Server resources
1313
maxfps="60"
1414

1515
# Profile Name

lgsm/config-default/config-lgsm/necserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#### Game Server Settings ####
1010

11-
## Pre-defined Paramters | https://docs.linuxgsm.com/configuration/start-parameters#predefined-parameters
11+
## Pre-defined Parameters | https://docs.linuxgsm.com/configuration/start-parameters#predefined-parameters
1212
worldname="MyWorld"
1313

1414
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters

lgsm/config-default/config-lgsm/ns2cserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ httppassword="CHANGE_ME"
1919
httpport="8080"
2020
mods=""
2121
serverpassword=""
22-
# Add the following line to the parms if you want a private server. Ensuring
22+
# Add the following line to the params if you want a private server. Ensuring
2323
# that the password variable above is not left empty.
2424
# -password \"${serverpassword}\"
2525

lgsm/config-default/config-lgsm/ns2server/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ httppassword="CHANGE_ME"
2020
httpport="8080"
2121
modserverport="27031"
2222
serverpassword=""
23-
# Add the following line to the parms if you want a private server. Ensuring
23+
# Add the following line to the params if you want a private server. Ensuring
2424
# that the password variable above is not left empty.
2525
# -password '${serverpassword}'
2626

lgsm/config-default/config-lgsm/pwserver/_default.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
1212
servername="LinuxGSM"
1313

14-
# For community servers (serverlist) you need to change these settings (publicip & publicport) in the gameserver config file aswell
14+
# For community servers (serverlist) you need to change these settings (publicip & publicport) in the gameserver config file as well
1515
port="8211"
1616
steamport="27015"
1717

lgsm/modules/check_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ fn_install_missing_deps() {
234234
}
235235

236236
fn_check_loop() {
237-
# Loop though required depenencies checking if they are installed.
237+
# Loop though required dependencies checking if they are installed.
238238
for deptocheck in "${array_deps_required[@]}"; do
239239
fn_deps_detector
240240
done

lgsm/modules/check_permissions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ fn_sys_perm_error_process() {
249249
fi
250250
}
251251

252-
## Run permisions checks when not root.
252+
## Run permissions checks when not root.
253253
if [ "$(whoami)" != "root" ]; then
254254
fn_check_ownership
255255
fn_check_permissions

lgsm/modules/check_system_requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fi
7171
if [ "${ramrequirementgb}" ]; then
7272
if (($(echo "${physmemtotalgb} < ${ramrequirementgb}" | bc -l))); then
7373
fn_print_dots "Checking RAM"
74-
fn_print_warn_nl "Checking RAM: Minumum RAM requirements not met"
74+
fn_print_warn_nl "Checking RAM: Minimum RAM requirements not met"
7575
fn_print_nl "* ${ramrequirementgb}G is required, but only ${physmemtotal} is available."
7676
fn_print_nl "* ${gamename} server may fail to run or experience poor performance."
7777
fn_sleep_time_5

0 commit comments

Comments
 (0)