File tree Expand file tree Collapse file tree 8 files changed +17
-17
lines changed
Expand file tree Collapse file tree 8 files changed +17
-17
lines changed Original file line number Diff line number Diff 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 ))
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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╰─────────────────────────────────────────────────────────────────────────╯
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments