Eslint Report false possitive

0

I have an Eslint report that has one Finding, but is being analize and passed, when it should fail: Report Screen Capture

mmellaa
질문됨 2달 전126회 조회
2개 답변
0

Hello, there are a few things I would ask you to check:

  • Check the ESLint configuration file (typically .eslintrc file) and make sure the rules and severity levels are set up correctly. The rule corresponding to the finding may have been set to warn instead of error.
  • Check if there are any suppression comments added next to the lines triggering the finding. Suppression comments like /* eslint-disable */ can ignore rule violations on certain lines.
  • Check if there are any global suppression rules defined that may be overriding the severity of the finding. The AWS documentation mentions you can define suppression rules to ignore certain findings.
  • Ensure the ESLint plugin or library being used supports failing on certain severity levels. Some may not fail the build or analysis even if high severity issues are found.
  • Check the CLI command or configuration used to run ESLint. Options like --max-warnings could be preventing it from failing on warnings.
profile picture
전문가
답변함 2달 전
  • As you can see in the screen shot. There is one finding in that report. The finding severity is HIGH The success criteria is set to 0 findings with Low and above.

    The report should FAIL, but is not

-1

You will need to configure the success criteria from the workflow YAML to fail the report. Please follow this link.

답변함 2달 전
  • It is already configured, that's why the text circled in red shows 0 findings as maximun

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠