Skip to content

Commit 678d6d8

Browse files
authored
(Fixed) Config updates (#42)
* feat(code-review): Update .coderabbit guidelines - Revise tone_instructions to enforce PER Coding Style 2.0, SOLID principles, and FOOP techniques. - Add path_instructions for "**/*.php" to ensure proper namespace usage, code organisation, and separation of concerns. - Enhance automated review configuration to promote robust and maintainable PHP code. * chore(dependabot): Exclude roave/security-advisories from updates - Add an ignore rule in dependabot.yml for the roave/security-advisories package. - Prevent dependency resolution errors since the package is always set to "dev-latest" and doesn’t require version bumps. * fix(config): Condense tone_instructions in .coderabbit.yaml - Shorten and adjust tone_instructions to comply with the 250-character limit. - Correct spelling in "code organisation" for UK English consistency. - Ensure CodeRabbit applies our custom settings rather than default settings.
1 parent ddeda7f commit 678d6d8

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.coderabbit.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: "en"
22
early_access: true
3+
tone_instructions: "You're an expert PHP reviewer, proficient in PER Coding Style 2.0 (extending PSR-12 & PSR-1), SOLID, and FOOP. Advise on immutable data, pure functions, and functional composition while ensuring robust OOP. Provide concise, actionable feedback."
34
reviews:
45
request_changes_workflow: true
56
high_level_summary: true
@@ -16,5 +17,9 @@ reviews:
1617
- "develop"
1718
- "feat/.*"
1819
- "main"
20+
path_instructions:
21+
- path: "**/*.php"
22+
instructions: |
23+
Review PHP code for adherence to PER Coding Style 2.0 guidelines. Ensure proper namespace usage, code organisation, and separation of concerns. Verify that SOLID principles are followed and encourage FOOP techniques—such as employing immutable data, pure functions, and functional composition—to improve maintainability, testability, and performance.
1924
chat:
20-
auto_reply: true
25+
auto_reply: true

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
ignore:
8+
- dependency-name: "roave/security-advisories"
79
commit-message:
810
prefix: "chore"
911
include: scope

0 commit comments

Comments
 (0)