Repository: crytic/slither

Issue:
Spelling mistake in detector output
The `uninitialized-local` and `uninitialized-storage` detectors each have a minor spelling mistake in their output. The word *initiali~a~zed* is misspelled.

**Current output**

```(tests/uninitialized_local_variable.sol#4) is a local variable never initialiazed```
```(tests/uninitialized_storage_pointer.sol#10) is a storage variable never initialiazed```

**Expected output**

```(tests/uninitialized_local_variable.sol#4) is a local variable never initialized```
```(tests/uninitialized_storage_pointer.sol#10) is a storage variable never initialized```


Discussion:
Hi @nicholashc.

Good catch, thank you for reporting this, I will fix it soon.

Resolving patch:
diff --git a/slither/detectors/variables/uninitialized_local_variables.py b/slither/detectors/variables/uninitialized_local_variables.py
--- a/slither/detectors/variables/uninitialized_local_variables.py
+++ b/slither/detectors/variables/uninitialized_local_variables.py
@@ -98,7 +98,7 @@ def _detect(self):
         all_results = list(set(self.results))
         for(function, uninitialized_local_variable) in all_results:
 
-            info = [uninitialized_local_variable, " is a local variable never initialiazed\n"]
+            info = [uninitialized_local_variable, " is a local variable never initialized\n"]
             json = self.generate_result(info)
             results.append(json)
 
diff --git a/slither/detectors/variables/uninitialized_storage_variables.py b/slither/detectors/variables/uninitialized_storage_variables.py
--- a/slither/detectors/variables/uninitialized_storage_variables.py
+++ b/slither/detectors/variables/uninitialized_storage_variables.py
@@ -101,7 +101,7 @@ def _detect(self):
                     self._detect_uninitialized(function, function.entry_point, [])
 
         for(function, uninitialized_storage_variable) in self.results:
-            info = [uninitialized_storage_variable, " is a storage variable never initialiazed\n"]
+            info = [uninitialized_storage_variable, " is a storage variable never initialized\n"]
             json = self.generate_result(info)
             results.append(json)
 


Test patch:
diff --git a/scripts/travis_test_dapp.sh b/scripts/travis_test_dapp.sh
--- a/scripts/travis_test_dapp.sh
+++ b/scripts/travis_test_dapp.sh
@@ -20,7 +20,7 @@ dapp init
 
 slither .
 
-if [ $? -eq 23 ]
+if [ $? -eq 21 ]
 then
     exit 0
 fi
diff --git a/tests/expected_json/uninitialized_local_variable.uninitialized-local.json b/tests/expected_json/uninitialized_local_variable.uninitialized-local.json
--- a/tests/expected_json/uninitialized_local_variable.uninitialized-local.json
+++ b/tests/expected_json/uninitialized_local_variable.uninitialized-local.json
@@ -77,9 +77,9 @@
             }
           }
         ],
-        "description": "Uninitialized.func().uint_not_init (tests/uninitialized_local_variable.sol#4) is a local variable never initialiazed\n",
-        "markdown": "[Uninitialized.func().uint_not_init](tests/uninitialized_local_variable.sol#L4) is a local variable never initialiazed\n",
-        "id": "8cb0b6b473ffecf3c2284584eb0012c742d36709f75c7516c3ba9748f3c27a98",
+        "description": "Uninitialized.func().uint_not_init (tests/uninitialized_local_variable.sol#4) is a local variable never initialized\n",
+        "markdown": "[Uninitialized.func().uint_not_init](tests/uninitialized_local_variable.sol#L4) is a local variable never initialized\n",
+        "id": "6ef627d0a3f7234c0d3dd339ae4cf3c1adf898f03384e08c3c8d846c67e0d476",
         "check": "uninitialized-local",
         "impact": "Medium",
         "confidence": "Medium"
diff --git a/tests/expected_json/uninitialized_local_variable.uninitialized-local.txt b/tests/expected_json/uninitialized_local_variable.uninitialized-local.txt
--- a/tests/expected_json/uninitialized_local_variable.uninitialized-local.txt
+++ b/tests/expected_json/uninitialized_local_variable.uninitialized-local.txt
@@ -1,4 +1,5 @@
 [93m
-Uninitialized.func().uint_not_init (tests/uninitialized_local_variable.sol#4) is a local variable never initialiazed
+Uninitialized.func().uint_not_init (tests/uninitialized_local_variable.sol#4) is a local variable never initialized
 Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#uninitialized-local-variables[0m
 tests/uninitialized_local_variable.sol analyzed (1 contracts with 1 detectors), 1 result(s) found
+[94mUse https://crytic.io/ to get access to additional detectors and Github integration[0m
diff --git a/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.json b/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.json
--- a/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.json
+++ b/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.json
@@ -83,9 +83,9 @@
             }
           }
         ],
-        "description": "Uninitialized.func().st_bug (tests/uninitialized_storage_pointer.sol#10) is a storage variable never initialiazed\n",
-        "markdown": "[Uninitialized.func().st_bug](tests/uninitialized_storage_pointer.sol#L10) is a storage variable never initialiazed\n",
-        "id": "af9ceb591701024a2199a04e66a121086d330d4cdeb3b160514cce2bb440579f",
+        "description": "Uninitialized.func().st_bug (tests/uninitialized_storage_pointer.sol#10) is a storage variable never initialized\n",
+        "markdown": "[Uninitialized.func().st_bug](tests/uninitialized_storage_pointer.sol#L10) is a storage variable never initialized\n",
+        "id": "b8f7c2470a8a7f83fd42dca40c50cbf2070e7fa5486c674585f2b0b39d3dc429",
         "check": "uninitialized-storage",
         "impact": "High",
         "confidence": "High"
diff --git a/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.txt b/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.txt
--- a/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.txt
+++ b/tests/expected_json/uninitialized_storage_pointer.uninitialized-storage.txt
@@ -1,4 +1,5 @@
 [91m
-Uninitialized.func().st_bug (tests/uninitialized_storage_pointer.sol#10) is a storage variable never initialiazed
+Uninitialized.func().st_bug (tests/uninitialized_storage_pointer.sol#10) is a storage variable never initialized
 Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#uninitialized-storage-variables[0m
 tests/uninitialized_storage_pointer.sol analyzed (1 contracts with 1 detectors), 1 result(s) found
+[94mUse https://crytic.io/ to get access to additional detectors and Github integration[0m