feat(compliance): validate LICENSE and vscode settings content
Summary
Add content validation for key configuration files to ensure project compliance with organizational standards. Specifically:
- Verify that the
LICENSEfile uses AGPLv3. - Ensure
.vscode/settings.jsonincludesruffanduvfor linting and environment management.
This improves project consistency, legal compliance, and developer tooling alignment across teams.
Problem to Solve
As a project maintainer or compliance officer, I want the tool to inspect the contents of critical files so that I can ensure:
- Projects use the correct open-source license (AGPLv3), not MIT or Apache.
- Development environments are standardized using modern tooling (
uv,ruff).
Currently, the tool only checks file presence, not content — leading to false positives in compliance.
Intended Users
- Project Maintainers – Ensure their repos meet org standards.
- Compliance Officers / DevOps Engineers – Audit multiple projects efficiently.
- New Contributors – Get clear feedback on required configurations.
User Experience Goal
Users should be able to run the compliance check and immediately see:
- If the license is AGPLv3 or invalid.
- If
.vscode/settings.jsonis missing required tools (ruff,uv). - Clear suggestions with images to fix issues.
The experience should guide them from "present" → "correctly configured".
Proposal
Extend the compliance checker to:
-
Read the
LICENSEorLICENSE.mdfile and check for keywords like:"Affero General Public License"-
"AGPL"
→ Flag as invalid if not found.
-
Parse
.vscode/settings.jsonand validate:- Presence of
ruffin linting configuration. - Use of
uvin interpreter path or terminal settings.
- Presence of
-
Add new compliance items:
-
✅ license_valid -
✅ vscode_has_ruff -
✅ vscode_has_uv
-
-
Update UI:
- Show dedicated checks under "Project Configuration".
- Display warning messages and images when content is invalid.
-
Update suggestion logic:
- Show
files.pngbefore template suggestions. - Include new image assets:
license-wrong.png,vscode-ruff.png,vscode-uv.png.
- Show
Further Details
Example Valid Configurations
LICENSE (must contain):