Lint
린트
린트는 코드를 실행하지 않고 검사합니다. 가능한 버그, 안전하지 않은 패턴, 스타일 문제 및 깨진 프로젝트 규칙을 찾아냅니다.
다른 예시
리뷰하기 전에 린트가 처리되지 않은 Promise, 접근할 수 없는 이미지, 서버 전용 모듈에서 가져온 항목을 찾아요.
주요 부분
- 01Code or behavior under test
- 02Observable evidence
- 03Coverage, failure, and recovery
사용할 때
에디터 및 CI에서 안정적인 규칙 실행. 자동 수정은 안전하고 예측 가능한 변경으로 제한하십시오.
다음 경우에는 사용하지 마세요
시끄러운 규칙을 활성화하지 말고, 린트를 테스트처럼 취급하지 않으며, 집중 작업 중에 관련 없는 파일을 수정하지 마십시오.
코드에서 사용된 이름
AST rules + diagnostics + optional autofix 출시하기 전에
Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule.
Outcome:Complete the task with 린트 (Lint)。 User context:리뷰하기 전에 린트가 처리되지 않은 Promise, 접근할 수 없는 이미지, 서버 전용 모듈에서 가져온 항목을 찾아요. Validation approach:린트 (Lint)。 Why it fits:에디터 및 CI에서 안정적인 규칙 실행. 자동 수정은 안전하고 예측 가능한 변경으로 제한하십시오. Do not use it when:시끄러운 규칙을 활성화하지 말고, 린트를 테스트처럼 취급하지 않으며, 집중 작업 중에 관련 없는 파일을 수정하지 마십시오. Test requirements: Name the system and test environment. Define prepared test data, other inputs, and the result you can observe. Include failure and edge cases, allowed error, isolation, and cleanup. Test operations: Make failures easy to diagnose. Control random or changing inputs. Name an owner. Keep the test fast and simple enough for its release gate. Acceptance criteria: The test fails for the known bug and passes after the fix. It repeats in the target environment, gives useful evidence, and does not expose or change unrelated data. Evidence and limits (evidence boundary):하나의 공식 표준이 전체 용어를 통제하지 않음. 의미는 팀, 플랫폼 또는 프레임워크마다 달라질 수 있음. Unknowns to confirm: Release gate, environment, prepared test data, allowed error, time budget, owner, and flaky-test rule.
이 요청을 확인하세요
Review how 린트 (Lint) is used now. Definition: 린트는 코드를 실행하지 않고 검사합니다. 가능한 버그, 안전하지 않은 패턴, 스타일 문제 및 깨진 프로젝트 규칙을 찾아냅니다. Release checks: Check the environment and prepared test data (fixture). Define a result you can observe, failure and edge cases, isolation, stable inputs, useful error details, and cleanup. Set a time budget, owner, and flaky-test rule. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.