'use strict';
import { countSignificantLines } from '@code-quality/significant-line-counter/significant-line-counter';
import { getReviewableCommitDiff } from '@code-quality/significant-line-counter/reviewable-commit-diff';
import { significantLineCheckStatuses } from '@code-quality/significant-line-counter/significant-line-check-statuses';
import { hardSignificantLineLimit } from '@code-quality/significant-line-counter/significant-line-counter-constants';

var __defProp=Object['defineProperty'],__name=(_0x2778b1,_0x5af2fb)=>__defProp(_0x2778b1,'name',{'value':_0x5af2fb,'configurable':!![]});function getSignificantLineCheckResult(_0x51a837){const _0x115871=getReviewableCommitDiff({'cwd':_0x51a837['repositoryPath'],'targetBranch':_0x51a837['targetBranch']});if(_0x115871['status']===significantLineCheckStatuses['skipped']){const _0x3ad655={'status':significantLineCheckStatuses['skipped'],'skipReason':_0x115871['skipReason'],'skippedSyncMergeCommitShortShas':_0x115871['skippedSyncMergeCommitShortShas']};return _0x3ad655;}const _0x5a26d5=countSignificantLines(_0x115871['diffText']),_0x140716=_0x5a26d5>hardSignificantLineLimit?significantLineCheckStatuses['failed']:significantLineCheckStatuses['passed'],_0xb6c32e={'status':_0x140716,'significantLineCount':_0x5a26d5,'significantLineLimit':hardSignificantLineLimit,'comparisonSummary':_0x115871['comparisonSummary']};return _0xb6c32e;}__name(getSignificantLineCheckResult,'getSignificantLineCheckResult');

export { getSignificantLineCheckResult };
