Skip to content

Commit d07b1a5

Browse files
authored
Merge pull request #34 from OPPIDA/fix/spelling
2 parents 0fb346e + 7925659 commit d07b1a5

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Artefact
1+
# Artifact
22
build/
33
.cache/
44
site/

codesectools/datasets/core/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def is_built(self) -> bool:
185185
return True
186186

187187
def list_prebuilt_files(self) -> list[Path]:
188-
"""List the pre-built artefact files."""
188+
"""List the pre-built artifact files."""
189189
prebuilt_dir, prebuilt_glob = self.prebuilt_expected
190190
prebuilt_path = USER_CACHE_DIR / self.name / prebuilt_dir
191191
return list(prebuilt_path.glob(prebuilt_glob))

codesectools/sasts/all/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ def analyze(
9494
for sast in all_sast.sasts_by_lang.get(lang, []):
9595
if isinstance(sast, PrebuiltBuildlessSAST) and artifacts is None:
9696
print(
97-
f"[i]{sast.name} can use pre-built artifacts ({sast.artefact_name} {sast.artefact_type}) for more accurate analysis"
97+
f"[i]{sast.name} can use pre-built artifacts ({sast.artifact_name} {sast.artifact_type}) for more accurate analysis"
9898
)
9999
print("[i]Use the flag --artifacts to provide the artifacts")
100100
elif isinstance(sast, PrebuiltSAST) and artifacts is None:
101101
print(
102-
f"[b]Skipping {sast.name} because it requires pre-built artifacts ({sast.artefact_name} {sast.artefact_type})"
102+
f"[b]Skipping {sast.name} because it requires pre-built artifacts ({sast.artifact_name} {sast.artifact_type})"
103103
)
104104
print("[b]Use the flag --artifacts to provide the artifacts")
105105
continue

codesectools/sasts/core/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ def add_analyze(self: Self, help: str = "") -> None:
137137
if isinstance(self.sast, PrebuiltBuildlessSAST):
138138
artifacts_default = typer.Option(
139139
default=None,
140-
help=f"Pre-built artifacts ({self.sast.artefact_name} {self.sast.artefact_type}) for more accurate analysis",
140+
help=f"Pre-built artifacts ({self.sast.artifact_name} {self.sast.artifact_type}) for more accurate analysis",
141141
metavar="ARTIFACTS",
142142
)
143143
elif isinstance(self.sast, PrebuiltSAST):
144144
artifacts_default = typer.Option(
145-
help=f"Pre-built artifacts ({self.sast.artefact_name} {self.sast.artefact_type})",
145+
help=f"Pre-built artifacts ({self.sast.artifact_name} {self.sast.artifact_type})",
146146
metavar="ARTIFACTS",
147147
)
148148
else:
@@ -184,7 +184,7 @@ def analyze(
184184
"""
185185
if isinstance(self.sast, PrebuiltBuildlessSAST) and artifacts is None:
186186
print(
187-
f"[i]{self.sast.name} can use pre-built artifacts ({self.sast.artefact_name} {self.sast.artefact_type}) for more accurate analysis"
187+
f"[i]{self.sast.name} can use pre-built artifacts ({self.sast.artifact_name} {self.sast.artifact_type}) for more accurate analysis"
188188
)
189189
print("[i]Use the flag --artifacts to provide the artifacts")
190190

codesectools/sasts/core/sast/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,13 @@ class PrebuiltSAST(SAST):
332332
"""Represent a SAST tool that requires pre-built artifacts for analysis.
333333
334334
Attributes:
335-
artefact_name (str): The name of the expected artifact (e.g., 'Java Bytecode').
336-
artefact_type (Literal["file", "directory"]): The type of artifact expected.
335+
artifact_name (str): The name of the expected artifact (e.g., 'Java Bytecode').
336+
artifact_type (Literal["file", "directory"]): The type of artifact expected.
337337
338338
"""
339339

340-
artefact_name: str
341-
artefact_type: Literal["file", "directory"]
340+
artifact_name: str
341+
artifact_type: Literal["file", "directory"]
342342

343343
def analyze_files(
344344
self,

codesectools/sasts/tools/Cppcheck/sast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ class CppcheckSAST(PrebuiltBuildlessSAST):
6767
}
6868

6969
# PrebuiltSAST
70-
artefact_name = "Compilation database"
71-
artefact_type = "file"
70+
artifact_name = "Compilation database"
71+
artifact_type = "file"

codesectools/sasts/tools/SpotBugs/sast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ class SpotBugsSAST(PrebuiltSAST):
7878
}
7979

8080
# PrebuiltSAST
81-
artefact_name = "Java Bytecode"
82-
artefact_type = "directory"
81+
artifact_name = "Java Bytecode"
82+
artifact_type = "directory"

docs/home/quick_start_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ cstools spotbugs benchmark BenchmarkJava_java
209209
│ Build command: mvn clean compile │
210210
│ Full command: (cd │
211211
│ /home/michel/.codesectools/cache/BenchmarkJava && mvn clean compile) │
212-
│ Expected arteficts: │
212+
│ Expected artifacts: │
213213
│ /home/michel/.codesectools/cache/BenchmarkJava/target/classes/org/owasp │
214214
│ /benchmark/testcode/*.class │
215215
╰─────────────────────────────────────────────────────────────────────────╯

docs/sast/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ classDiagram
4545
}
4646
4747
class PrebuiltBuildlessSAST {
48-
+artefact_name: str
49-
+artefact_type: str
48+
+artifact_name: str
49+
+artifact_type: str
5050
}
5151
5252
SAST <|-- BuildlessSAST

0 commit comments

Comments
 (0)