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
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40dc04d328 | ||
|
|
3f262b7b35 |
@@ -45,8 +45,7 @@ PROMPT;
|
|||||||
|
|
||||||
return $suggestion;
|
return $suggestion;
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// Log error if needed
|
return "AI Düzeltme Hatası: " . $e->getMessage();
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10,22 +10,23 @@ abstract class AbstractRule
|
|||||||
abstract public function check(\DOMDocument $doc): array;
|
abstract public function check(\DOMDocument $doc): array;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the WCAG standard ID (e.g., WCAG 2.1 1.1.1)
|
* Get the WCAG standard Enum
|
||||||
*/
|
*/
|
||||||
abstract public function getStandardId(): string;
|
abstract public function getStandard(): WCAGStandard;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the severity level (Critical, Major, Minor)
|
* Get the severity level Enum
|
||||||
*/
|
*/
|
||||||
abstract public function getSeverity(): string;
|
abstract public function getSeverity(): Severity;
|
||||||
|
|
||||||
protected function createViolation(string $message, \DOMElement $element): Violation
|
protected function createViolation(string $message, \DOMElement $element): Violation
|
||||||
{
|
{
|
||||||
return new Violation(
|
return new Violation(
|
||||||
|
ruleId: (new \ReflectionClass($this))->getShortName(),
|
||||||
message: $message,
|
message: $message,
|
||||||
htmlSnippet: $element->ownerDocument->saveHTML($element),
|
|
||||||
severity: $this->getSeverity(),
|
severity: $this->getSeverity(),
|
||||||
standard: $this->getStandardId()
|
standard: $this->getStandard(),
|
||||||
|
htmlSnippet: $element->ownerDocument->saveHTML($element)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
namespace YakNet\AccessibilityConsole\Rules;
|
namespace YakNet\AccessibilityConsole\Rules;
|
||||||
|
|
||||||
use YakNet\AccessibilityConsole\Core\AbstractRule;
|
use YakNet\AccessibilityConsole\Core\AbstractRule;
|
||||||
|
use YakNet\AccessibilityConsole\Core\Severity;
|
||||||
|
use YakNet\AccessibilityConsole\Core\WCAGStandard;
|
||||||
|
|
||||||
class EmptyLinkRule extends AbstractRule
|
class EmptyLinkRule extends AbstractRule
|
||||||
{
|
{
|
||||||
@@ -22,6 +24,6 @@ class EmptyLinkRule extends AbstractRule
|
|||||||
return $violations;
|
return $violations;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStandardId(): string { return 'WCAG 2.1 2.4.4'; }
|
public function getStandard(): WCAGStandard { return WCAGStandard::A; }
|
||||||
public function getSeverity(): string { return 'Critical'; }
|
public function getSeverity(): Severity { return Severity::CRITICAL; }
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
namespace YakNet\AccessibilityConsole\Rules;
|
namespace YakNet\AccessibilityConsole\Rules;
|
||||||
|
|
||||||
use YakNet\AccessibilityConsole\Core\AbstractRule;
|
use YakNet\AccessibilityConsole\Core\AbstractRule;
|
||||||
|
use YakNet\AccessibilityConsole\Core\Severity;
|
||||||
|
use YakNet\AccessibilityConsole\Core\WCAGStandard;
|
||||||
|
|
||||||
class HeadingOrderRule extends AbstractRule
|
class HeadingOrderRule extends AbstractRule
|
||||||
{
|
{
|
||||||
@@ -26,6 +28,6 @@ class HeadingOrderRule extends AbstractRule
|
|||||||
return $violations;
|
return $violations;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStandardId(): string { return 'WCAG 2.1 1.3.1'; }
|
public function getStandard(): WCAGStandard { return WCAGStandard::A; }
|
||||||
public function getSeverity(): string { return 'Major'; }
|
public function getSeverity(): Severity { return Severity::WARNING; }
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
namespace YakNet\AccessibilityConsole\Rules;
|
namespace YakNet\AccessibilityConsole\Rules;
|
||||||
|
|
||||||
use YakNet\AccessibilityConsole\Core\AbstractRule;
|
use YakNet\AccessibilityConsole\Core\AbstractRule;
|
||||||
|
use YakNet\AccessibilityConsole\Core\Severity;
|
||||||
|
use YakNet\AccessibilityConsole\Core\WCAGStandard;
|
||||||
|
|
||||||
class ImageAltRule extends AbstractRule
|
class ImageAltRule extends AbstractRule
|
||||||
{
|
{
|
||||||
@@ -22,6 +24,6 @@ class ImageAltRule extends AbstractRule
|
|||||||
return $violations;
|
return $violations;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getStandardId(): string { return 'WCAG 2.1 1.1.1'; }
|
public function getStandard(): WCAGStandard { return WCAGStandard::A; }
|
||||||
public function getSeverity(): string { return 'Critical'; }
|
public function getSeverity(): Severity { return Severity::CRITICAL; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user