Skip to content

fix(ci): ruboCop excludes the whole test directory while the Gemfile - #117

Open
ronitkhokharr wants to merge 580 commits into
thoth-tech:11.0.xfrom
ontrack-features-t2-2026:fix/tci-03
Open

ronitkhokharr wants to merge 580 commits into
thoth-tech:11.0.xfrom
ontrack-features-t2-2026:fix/tci-03

Conversation

@ronitkhokharr

@ronitkhokharr ronitkhokharr commented Sep 17, 2026 •

Copy link
Copy Markdown

Description

This PR addresses TCI-03 by enabling RuboCop coverage for the test suite and loading the RuboCop extensions that are already included in the Gemfile.

Previously, .rubocop.yml excluded test/**/*, while rubocop-minitest and rubocop-factory_bot were installed but not loaded. As a result, test files were excluded from the normal RuboCop run and the Minitest/FactoryBot-specific cops were inactive.

Changes

  • Removed test/**/* from AllCops.Exclude.
  • Enabled rubocop-minitest.
  • Enabled rubocop-factory_bot.
  • Regenerated .rubocop_todo.yml using bundle exec rubocop --auto-gen-config against the current upstream 11.0.x base so existing offences are baselined while CI remains green.
  • Added test/config/rubocop_configuration_test.rb as a regression test for the required RuboCop configuration.

RuboCop Configuration

The updated configuration now ensures that:

  • The test directory is included in RuboCop analysis.
  • rubocop-minitest is loaded.
  • rubocop-factory_bot is loaded.
  • Existing offences are captured in .rubocop_todo.yml rather than excluding the entire test directory.

Auto-Generated Baseline

The RuboCop todo was regenerated against the current upstream 11.0.x codebase.

Phase 1:

456 files inspected
1047 offenses detected
771 offenses autocorrectable
Created .rubocop_todo.yml.

maplefoxgit and others added 30 commits August 28, 2026 07:19
…s-dedicated-push-queue-20260828

Fix Mobile Notifications push queue delivery
…al-security-evidence-20260827

test(security): tighten FILE-S01 evidence and log privacy
…st-comments-11x-20260827

docs(notifications): correct Edge WNS host guidance on 11.0.x
…ime-followup-20260828

ci: reduce full API test runtime
…es-assess

fix(tasks): require assessment permission to set a task grade
…er-results-to-project

fix(overseer): scope assessment results to the authorised project
…sions-on-finalised-tasks

fix(submission): refuse student uploads to a finalised task
…-deadline-calc

fix(tasks): grant the resubmission extension once per round of feedback
…s-status-authorisation

fix(scorm): authorise the success status wherever it is written
…sition-403

fix(tasks): return 403 when a status transition is refused
…okup-on-asserted-identity

fix(auth): match a federated assertion only on what it asserts
…en-to-subject

fix(lti): bind an enrolment token to its subject and make it single use
…n-set-per-recipient-delivery-errors

fix(communications): keep sending when one recipient's delivery fails
…ification-route-20260828

fix(notifications): open feedback alerts in the feedback pane
maplefoxgit and others added 28 commits September 20, 2026 17:34
Exercise the production application configuration with isolated synthetic credentials and verify individual and combined missing-key diagnostics.
Removes .rspec, .overcommit.yml, FETCH_HEAD, docs/README_FOR_APP, and

the unreferenced User.default method. Adds FETCH_HEAD to .gitignore.

Deletion only, no behaviour changed. Includes Minitest coverage

confirming the deletions and that User.default no longer exists.
…rejection-logging-20260920

fix(uploads): make rejected uploads visible in production logs
…loads-remaining-20260920

feat(uploads): complete safe spreadsheet and chat attachment support
…ion-lifecycle-remaining-20260920

feat(submissions): complete lifecycle controls and reliable deadline events
…-infra-20260920

fix(config): identify each missing production secret (PR-PLAT-10)
…pi-20260920

feat(tutorial): add rollout flag and complete API handover tasks
docs(dx-a02): Four dead config and scaffold files tracked in doubtfire-api, plus one unreachable model method.
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.