Skip to content

Commit

Permalink
Merge pull request #710 from deronnax/fix-spelling-errors
Browse files Browse the repository at this point in the history
chore(spelling): fix spelling errors
  • Loading branch information
agateau-gg authored Aug 24, 2023
2 parents 3e3d289 + f9c8478 commit b6aaec7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/pre-receive.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# ggshield as a pre-commit hook
# Prequirements:
# Requirements:
# python >= 3.8, pip
# Installation instructions:
# Run: pip install ggshield
Expand Down
2 changes: 1 addition & 1 deletion ggshield/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_lines_from_patch(content: str, filemode: Filemode) -> Iterable[Line]:
line_content = line[1:]
category = LineCategory.deletion
elif line_type == "\\":
# This type of line should'nt contain any secret; no need to set indices
# This type of line shouldn't contain any secret; no need to set indices
line_content = line[1:]

if line_type and line_content is not None:
Expand Down
4 changes: 2 additions & 2 deletions ggshield/verticals/auth/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _wait_for_callback(self) -> None:
try:
while not self._handler_wrapper.complete:
# Wait for callback on localserver including an authorization code
# any matchin request will get processed by the request handler and
# any matching request will get processed by the request handler and
# the `process_callback` function
self.server.handle_request() # type: ignore
except KeyboardInterrupt:
Expand Down Expand Up @@ -370,7 +370,7 @@ def _print_login_success(self) -> None:

def get_server_error_message(self, error_code: str) -> str:
"""
Return the human readable message associated to the given error code
Return the human-readable message associated to the given error code
"""
if error_code == "too_many_tokens":
url = urljoin(self.dashboard_url, "/api/personal-access-tokens")
Expand Down
2 changes: 1 addition & 1 deletion ggshield/verticals/iac/output/iac_text_output_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _process_diff_scan_impl_verbose(self, scan: IaCDiffScanCollection) -> str:
"REMOVED",
)
)
# List unchagned incidents if any
# List unchanged incidents if any
for file_result in unchanged:
scan_buf.write(
self.process_iac_diff_result(
Expand Down
2 changes: 1 addition & 1 deletion ggshield/verticals/sca/output/text_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _process_scan_diff_impl(self, scan: SCAScanDiffVulnerabilityCollection) -> s
if len(scan.result.added_vulns) == 0:
scan_buf.write(no_sca_vulnerability_added())

# Removed vulnerabilites
# Removed vulnerabilities
# List removed incidents if any
for file_result in scan.result.removed_vulns:
scan_buf.write(
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/iac/test_iac_scan_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_ci_diff_no_vuln(
)

# THEN a vulnerability should be found if and only if
# the commited file contains one
# the committed file contains one
assert "iac_file.tf" not in result.stdout
assert ("test_file.tf" in result.stdout) == (
file_content == _IAC_SINGLE_VULNERABILITY
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/cmd/auth/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def test_valid_process(
- timedelta(days=2)
)
if existing_unrelated_token:
# add a dummy unrelated confif
# add a dummy unrelated config
add_instance_config(instance_url="http://some-gg-instance.com")

exit_code, output = self.run_cmd(cli_fs_runner)
Expand Down

0 comments on commit b6aaec7

Please sign in to comment.