Skip to content

Commit

Permalink
Inline disable devskim false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Aug 1, 2023
1 parent cb5cab9 commit 6213348
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/app/src/report/components/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const Details: FC = () => {
</Typography>
);

// DevSkim: ignore DS126858
return (
<Paper className={classes.reportDetails} elevation={1}>
{resourceType === AnalysisType.File && (
Expand All @@ -27,7 +28,7 @@ export const Details: FC = () => {
label="File Size"
value={filesize(fileDetails.fileSize).toString()}
/>
<DetailsItem label="MD5" value={fileDetails.md5} />
<DetailsItem label="MD5" value={fileDetails.md5} />
<DetailsItem label="ssdeep" value={fileDetails.ssdeep} />
<DetailsItem label="Encoding" value={fileDetails.encoding} />
</>
Expand Down
6 changes: 3 additions & 3 deletions packages/backend/src/actions/create-analysis-request.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";
import FormData from "form-data";
import md5 from "md5";
import md5 from "md5"; // DevSkim: ignore DS126858
import {
Analysis,
AnalysisType,
Expand All @@ -23,7 +23,7 @@ export const createAnalysisRequestData = async (
];
}
case AnalysisType.Snippet: {
const snippetMd5 = md5((<SnippetAnalysis>action).snippet);
const snippetMd5 = md5((<SnippetAnalysis>action).snippet); // DevSkim: ignore DS126858
const snippetAction = action as SnippetAnalysis;
const languageId = snippetAction.language?.id;
const snippetExtension = languageId ? `.${languageId}` : undefined;
Expand All @@ -32,7 +32,7 @@ export const createAnalysisRequestData = async (
snippet: snippetAction.snippet,
snippetExtension,
},
snippetMd5,
snippetMd5, // DevSkim: ignore DS126858
snippetAction.language,
];
}
Expand Down
2 changes: 1 addition & 1 deletion packages/shared-types/src/report-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export interface ReportLanguage {
interface FileDetails {
language: string;
fileSize: number;
md5: string;
md5: string; // DevSkim: ignore DS126858
ssdeep: string;
encoding: string;
}
Expand Down

0 comments on commit 6213348

Please sign in to comment.