Skip to content

Conversation

@marcusquinn
Copy link
Owner

Summary

  • Fix 2 corrupted JSON config files that failed parsing (t135.4)
  • Add JSON validation step to CI workflow that fails the build on invalid JSON
  • Fix .agent typo and remove references to non-existent directories in code-quality.yml

Changes

configs/pandoc-config.json.txt

  • Issue: Line 5 contained a literal newline character (0x0a) embedded inside a JSON key, producing "\n": instead of a valid key name
  • Fix: Replaced corrupted key with "paths" (inferred from child keys: input_directory, output_directory, temp_directory, backup_originals)

configs/mcp-templates/chrome-devtools.json

  • Issue: Shell code (return 0 and }) appended after the JSON closing brace; missing closing brace for chrome-devtools object
  • Fix: Removed shell code, added missing brace to restore valid JSON structure

.github/workflows/code-quality.yml

  • Issue: .agent typo (should be .agents), references to non-existent .agents/spec and docs/ directories
  • Fix: Corrected typo, replaced stale directory checks with actual framework structure checks (.agents/AGENTS.md), added exit 1 on critical failures
  • Added: New "JSON Config Validation" step that validates all *.json and *.json.txt files tracked by git, failing the build if any are invalid

Verification

All 89 JSON files in the repo pass python3 -m json.tool validation after these fixes.

Task

Closes t135.4 (P1-A: Fix 2 corrupted JSON config files) from the t135 Codebase Quality Hardening plan.

- Fix pandoc-config.json.txt: replace corrupted control char key with "paths"
- Fix chrome-devtools.json: remove shell code after JSON, fix missing brace
- Fix code-quality.yml: .agent typo to .agents, remove non-existent dir refs
- Add JSON validation step to CI that fails build on invalid JSON files
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 7, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 21 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/t135.4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the robustness and reliability of the codebase by addressing existing JSON configuration corruption and implementing preventative measures. It rectifies two malformed JSON files, ensuring their proper parsing and functionality. Furthermore, a crucial CI validation step has been introduced to automatically detect and prevent any future invalid JSON configurations from being merged, thereby maintaining data integrity across the project.

Highlights

  • JSON Configuration Fixes: Two corrupted JSON configuration files (configs/pandoc-config.json.txt and configs/mcp-templates/chrome-devtools.json) were repaired to ensure valid JSON structure.
  • CI Validation for JSON: A new step was added to the CI workflow to validate all JSON files, failing the build if any are found to be invalid, preventing future corruption.
  • Workflow File Refinements: The .github/workflows/code-quality.yml file was updated to correct a typo (.agent to .agents), remove references to non-existent directories, and add an exit 1 for critical failures.
Changelog
  • configs/mcp-templates/chrome-devtools.json
    • Removed extraneous shell code (return 0 and }) found at the end of the file, which was causing parsing errors.
    • Added a missing closing brace to correctly terminate the chrome-devtools object, restoring valid JSON structure.
  • configs/pandoc-config.json.txt
    • Fixed a corrupted JSON key that contained an embedded newline character, rendering it invalid.
    • Replaced the malformed key with the inferred correct key, "paths", based on its child elements.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/code-quality.yml
Activity
  • No specific activity (comments, reviews, progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 25 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Sat Feb 7 05:31:00 UTC 2026: Code review monitoring started
Sat Feb 7 05:31:01 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 25
Sat Feb 7 05:31:01 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Sat Feb 7 05:31:03 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 25
  • VULNERABILITIES: 0

Generated on: Sat Feb 7 05:31:05 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2026

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively addresses critical JSON parsing issues in configs/mcp-templates/chrome-devtools.json and configs/pandoc-config.json.txt. The changes correctly remove invalid shell code and fix a corrupted key, ensuring the configuration files are valid JSON. The description also mentions the addition of CI validation for JSON files, which is a great proactive measure to prevent similar issues in the future.

I am having trouble creating individual review comments. Click here to see my feedback.

configs/mcp-templates/chrome-devtools.json (15-16)

critical

The lines return 0 and the extraneous closing brace } were invalid JSON syntax appended to the configuration. Removing them correctly restores the file to a valid JSON structure, which is crucial for proper parsing and application functionality.

}

configs/pandoc-config.json.txt (5-6)

critical

The JSON key "\n": was corrupted and invalid, causing parsing failures. Replacing it with "paths" is the correct fix, aligning with the expected structure for directory paths within the configuration. This ensures the file is valid JSON and can be processed correctly.

"paths": {

@marcusquinn marcusquinn merged commit 2ca24c8 into main Feb 7, 2026
11 checks passed
marcusquinn added a commit that referenced this pull request Feb 7, 2026
- Add ShellCheck lint step to framework-validation job
- Enforces error-severity violations that fail the build
- Iterates all git-tracked .sh files with gcc output format
- Mark t135.6 subtasks complete (t135.6.1/t135.6.2 done in PR #423)
marcusquinn added a commit that referenced this pull request Feb 7, 2026
…432)

* chore: mark t139 complete in TODO.md (#427)

* chore: mark t135.14 complete in TODO.md (#426)

* fix: add ShellCheck enforcement to CI code-quality workflow (t135.6.3)

- Add ShellCheck lint step to framework-validation job
- Enforces error-severity violations that fail the build
- Iterates all git-tracked .sh files with gcc output format
- Mark t135.6 subtasks complete (t135.6.1/t135.6.2 done in PR #423)
@marcusquinn marcusquinn deleted the feature/t135.4 branch February 9, 2026 18:40
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.

1 participant