Skip to content

Conversation

crivetimihai
Copy link
Member

Add lint-web to CI/CD and add additional linters to Makefile (jshint jscpd markuplint) - closes #390

Add web linting to our CI/CD pipeline to ensure frontend code quality and security. This includes creating a new GitHub workflow (lint-web.yml) that runs HTML, CSS, and JavaScript linters in parallel jobs, similar to our existing Python lint workflow.

Tasks:

  • Create .github/workflows/lint-web.yml with matrix jobs for:
    • htmlhint (HTML validation)
    • stylelint (CSS linting)
    • eslint (JavaScript linting)
    • retire (vulnerability scanning)
    • npm audit (dependency security)
    • jshint (Additional JS analysis with ES11 support)
    • jscpd (Copy/paste detection across JS/HTML/CSS)
    • markuplint (Modern HTML validation)
    • nodejsscan (JS security analysis - separate Python job)
  • Add new linter targets to Makefile:
    • jshint - Additional JS analysis with ES11 support
    • jscpd - Copy/paste detection across JS/HTML/CSS
    • markuplint - Modern HTML validation
  • Update install-web-linters target to include new tools
  • Create .jshintrc config file for consistent JS standards

Benefits:

  • Automated frontend code quality checks on every PR
  • Early detection of security vulnerabilities
  • Consistent code standards across HTML/CSS/JS
  • Reduced technical debt through duplicate code detection
  • Comprehensive coverage with 9 different linting tools

…jscpd markuplint) - closes #390

Signed-off-by: Mihai Criveti <[email protected]>
@crivetimihai crivetimihai added this to the Release 0.5.0 milestone Jul 28, 2025
@crivetimihai crivetimihai self-assigned this Jul 28, 2025
@crivetimihai crivetimihai added the devops DevOps activities (containers, automation, deployment, makefiles, etc) label Jul 28, 2025
@crivetimihai crivetimihai merged commit e87727d into main Jul 28, 2025
35 of 37 checks passed
@crivetimihai crivetimihai deleted the 390-add-lint-web-action branch July 28, 2025 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops DevOps activities (containers, automation, deployment, makefiles, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CHORE]: Add lint-web to CI/CD and add additional linters to Makefile (jshint jscpd markuplint)
1 participant