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
fix: resolve PHPStan level 9 errors and bump version to v3.1.3
This commit is contained in:
@@ -35,7 +35,9 @@ class ImageAltPlaceholder extends AbstractRule
|
||||
// Generic placeholder checks
|
||||
$placeholders = [
|
||||
'image', 'photo', 'picture', 'logo', 'icon', 'placeholder', 'untitled', 'temp', 'blank', 'pic', 'dot',
|
||||
'resim', 'foto', 'fotoğraf', 'görsel', 'grafik', 'ikon', 'logo'
|
||||
'resim', 'foto', 'fotoğraf', 'görsel', 'grafik', 'ikon', 'logo',
|
||||
'arkaplan', 'kapak', 'simge', 'ürün', 'dosya', 'adsız', 'varsayılan',
|
||||
'default', 'hero', 'no-image', 'noimage', 'null'
|
||||
];
|
||||
if (in_array($cleanAlt, $placeholders, true)) {
|
||||
return $this->createViolation(
|
||||
@@ -46,7 +48,7 @@ class ImageAltPlaceholder extends AbstractRule
|
||||
}
|
||||
|
||||
// Filename checks
|
||||
if (preg_match('/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i', $cleanAlt)) {
|
||||
if (preg_match('/^[^\s]+\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i', $cleanAlt) || preg_match('/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i', $cleanAlt)) {
|
||||
return $this->createViolation(
|
||||
$element,
|
||||
'Image alt text should not be a filename.',
|
||||
|
||||
Reference in New Issue
Block a user