Skip to content

Commit

Permalink
(Fixed) Config updates (#42)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
MarjovanLier authored Feb 11, 2025
1 parent ddeda7f commit 678d6d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: "en"
early_access: true
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."
reviews:
request_changes_workflow: true
high_level_summary: true
Expand All @@ -16,5 +17,9 @@ reviews:
- "develop"
- "feat/.*"
- "main"
path_instructions:
- path: "**/*.php"
instructions: |
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.
chat:
auto_reply: true
auto_reply: true
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ updates:
directory: "/"
schedule:
interval: "daily"
ignore:
- dependency-name: "roave/security-advisories"
commit-message:
prefix: "chore"
include: scope
Expand Down

0 comments on commit 678d6d8

Please sign in to comment.