Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
feat: extend scan level range 1-9 and confirm PHPStan level 9 zero errors
This commit is contained in:
@@ -31,7 +31,7 @@ class ScanCommand extends Command
|
|||||||
->addOption('crawl', null, InputOption::VALUE_NONE, 'Crawl internal links recursively')
|
->addOption('crawl', null, InputOption::VALUE_NONE, 'Crawl internal links recursively')
|
||||||
->addOption('depth', null, InputOption::VALUE_REQUIRED, 'Maximum crawling depth', '3')
|
->addOption('depth', null, InputOption::VALUE_REQUIRED, 'Maximum crawling depth', '3')
|
||||||
->addOption('max-pages', null, InputOption::VALUE_REQUIRED, 'Maximum number of pages to crawl', '20')
|
->addOption('max-pages', null, InputOption::VALUE_REQUIRED, 'Maximum number of pages to crawl', '20')
|
||||||
->addOption('level', 'l', InputOption::VALUE_REQUIRED, 'Accessibility scan level (1-5)', '4');
|
->addOption('level', 'l', InputOption::VALUE_REQUIRED, 'Accessibility scan level (1-9)', '4');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||||
@@ -51,8 +51,8 @@ class ScanCommand extends Command
|
|||||||
|
|
||||||
$levelOption = $input->getOption('level');
|
$levelOption = $input->getOption('level');
|
||||||
$level = is_numeric($levelOption) ? (int)$levelOption : 4;
|
$level = is_numeric($levelOption) ? (int)$levelOption : 4;
|
||||||
if ($level < 1 || $level > 5) {
|
if ($level < 1 || $level > 9) {
|
||||||
$io->error("Scan level must be between 1 and 5.");
|
$io->error("Scan level must be between 1 and 9.");
|
||||||
return Command::FAILURE;
|
return Command::FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user