Skip to content

Promote Generic.Arrays.DisallowLongArraySyntax to error #202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrewnicols
Copy link
Contributor

Fixes #58

Copy link

codecov bot commented Jul 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.21%. Comparing base (05f1823) to head (2b5a76a).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #202   +/-   ##
=========================================
  Coverage     98.21%   98.21%           
  Complexity      954      954           
=========================================
  Files            40       40           
  Lines          2962     2962           
=========================================
  Hits           2909     2909           
  Misses           53       53           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andrewnicols andrewnicols requested a review from Copilot July 9, 2025 03:22
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Promote the Generic.Arrays.DisallowLongArraySyntax sniff to an error, remove its redundant definition in the extra ruleset, and document the change.

  • Changed the DisallowLongArraySyntax rule level from warning to error in the main ruleset
  • Removed the duplicate rule (and its TODO) from moodle-extra/ruleset.xml
  • Added an Unreleased changelog entry for this promotion

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
moodle/ruleset.xml Updated DisallowLongArraySyntax rule type to error
moodle-extra/ruleset.xml Removed redundant DisallowLongArraySyntax rule block
CHANGELOG.md Documented the rule promotion under Unreleased changes

@@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
The format of this change log follows the advice given at [Keep a CHANGELOG](https://keepachangelog.com).

## [Unreleased]
### Changed
- The `Generic.Arrays.DisallowLongArraySyntax` rule has been changed to an error as planned in #58.
Copy link
Preview

Copilot AI Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] There is a double space before #58. Consider removing the extra space to read 'as planned in #58.'

Suggested change
- The `Generic.Arrays.DisallowLongArraySyntax` rule has been changed to an error as planned in #58.
- The `Generic.Arrays.DisallowLongArraySyntax` rule has been changed to an error as planned in #58.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raise Generic.Arrays.DisallowLongArraySyntax to error - September 2024
1 participant