11# frozen_string_literal: true
22
3- .PHONY : help test lint fix setup dev clean frontend- setup frontend-format frontend-format-check frontend-lint
3+ .PHONY : help test lint lint-js lint-ruby lintfix lintfix-js lintfix-ruby setup dev clean frontend-setup
44
55# Default target
66help : # # Show this help message
@@ -51,11 +51,31 @@ test-frontend-unit: ## Run frontend unit tests only
5151test-frontend-integration : # # Run frontend integration tests only
5252 @cd frontend && npm run test:integration
5353
54- lint : # # Run linter
54+ lint : lint-ruby lint-js # # Run all linters (Ruby + Frontend) - errors when issues found
55+ @echo " All linting complete!"
56+
57+ lint-ruby : # # Run Ruby linter (RuboCop) - errors when issues found
58+ @echo " Running RuboCop linting..."
5559 bundle exec rubocop
60+ @echo " Ruby linting complete!"
61+
62+ lint-js : # # Run JavaScript/Frontend linter (Prettier) - errors when issues found
63+ @echo " Running Prettier format check..."
64+ @cd frontend && npm run format:check
65+ @echo " JavaScript linting complete!"
5666
57- fix : # # Auto-fix linting issues
58- bundle exec rubocop -a
67+ lintfix : lintfix-ruby lintfix-js # # Auto-fix all linting issues (Ruby + Frontend)
68+ @echo " All lintfix complete!"
69+
70+ lintfix-ruby : # # Auto-fix Ruby linting issues
71+ @echo " Running RuboCop auto-correct..."
72+ -bundle exec rubocop --auto-correct
73+ @echo " Ruby lintfix complete!"
74+
75+ lintfix-js : # # Auto-fix JavaScript/Frontend linting issues
76+ @echo " Running Prettier formatting..."
77+ @cd frontend && npm run format
78+ @echo " JavaScript lintfix complete!"
5979
6080clean : # # Clean temporary files
6181 @rm -rf tmp/rack-cache-* coverage/
@@ -66,15 +86,3 @@ frontend-setup: ## Setup frontend dependencies
6686 @echo " Setting up frontend dependencies..."
6787 @cd frontend && npm install
6888 @echo " Frontend setup complete!"
69-
70- frontend-format : # # Format frontend code
71- @echo " Formatting frontend code..."
72- @cd frontend && npm run format
73- @echo " Frontend formatting complete!"
74-
75- frontend-format-check : # # Check frontend code formatting
76- @echo " Checking frontend code formatting..."
77- @cd frontend && npm run format:check
78-
79- frontend-lint : frontend-format-check # # Lint frontend code (formatting check)
80- @echo " Frontend linting complete!"
0 commit comments