Skip to content

Commit 1a9abc4

Browse files
authored
Fix: CLI Issues
cli/assets commands adjustments cli/guides adjustments analyze commands
2 parents 5325182 + 8749092 commit 1a9abc4

File tree

7 files changed

+16
-101
lines changed

7 files changed

+16
-101
lines changed

cli/src/commands/wheels/analyze/code.cfc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ component extends="../base" {
190190
var icon = getSeverityIcon(issue.severity);
191191
var color = getSeverityColor(issue.severity);
192192

193-
detailOutput.colored(" #icon# Line #issue.line#:#issue.column# - #issue.message#", color);
194-
print.grayLine(" Rule: #issue.rule#" & (issue.fixable ? " [Auto-fixable]" : "")).toConsole();
193+
detailOutput.output(" #icon# Line #issue.line#:#issue.column# - #issue.message#");
194+
print.cyanLine(" Rule: #issue.rule#" & (issue.fixable ? " [Auto-fixable]" : "")).toConsole();
195195
}
196196
}
197197
}
@@ -313,12 +313,6 @@ component extends="../base" {
313313
arrayAppend(recommendations, "Address code smells to improve maintainability");
314314
}
315315
316-
if (!fileExists(".wheelscheck")) {
317-
arrayAppend(recommendations, "Create a .wheelscheck config file for custom rules");
318-
}
319-
320-
arrayAppend(recommendations, "Integrate this check into your CI/CD pipeline");
321-
322316
for (var rec in recommendations) {
323317
detailOutput.output(" * #rec#");
324318
}

cli/src/commands/wheels/analyze/performance.cfc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,7 @@ component extends="../base" {
500500
var score = calculatePerformanceScore(arguments.results);
501501
var grade = getPerformanceGrade(score);
502502

503-
detailOutput.divider("=", 50);
504-
print.boldLine("Performance Grade: #grade# (#score#/100)").toConsole();
505-
detailOutput.divider("=", 50);
503+
detailOutput.header("Performance Grade: #grade# (#score#/100)");
506504
detailOutput.line();
507505

508506
// Recommendations

cli/src/commands/wheels/analyze/security.cfc

Lines changed: 0 additions & 31 deletions
This file was deleted.

cli/src/commands/wheels/assets/precompile.cfc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ component extends="../base" {
5050
// Normalize environment aliases
5151
arguments.environment = normalizeEnvironment(arguments.environment);
5252

53-
print.greenBoldLine("==> Precompiling assets for #arguments.environment#...").toConsole();
53+
detailOutput.output("Precompiling assets for #arguments.environment#...");
5454
detailOutput.line();
5555

5656
// Define asset directories
@@ -74,7 +74,7 @@ component extends="../base" {
7474

7575
// Process JavaScript files
7676
if (directoryExists(jsDir)) {
77-
print.boldLine("Processing JavaScript files...").toConsole();
77+
detailOutput.output("Processing JavaScript files...");
7878
var jsFiles = directoryList(jsDir, true, "query", "*.js");
7979
for (var file in jsFiles) {
8080
if (file.type == "File" && !findNoCase(".min.js", file.name)) {
@@ -91,7 +91,7 @@ component extends="../base" {
9191

9292
// Process CSS files
9393
if (directoryExists(cssDir)) {
94-
print.boldLine("Processing CSS files...").toConsole();
94+
detailOutput.output("Processing CSS files...");
9595
var cssFiles = directoryList(cssDir, true, "query", "*.css");
9696
for (var file in cssFiles) {
9797
if (file.type == "File" && !findNoCase(".min.css", file.name)) {
@@ -108,7 +108,7 @@ component extends="../base" {
108108

109109
// Process image files
110110
if (directoryExists(imagesDir)) {
111-
print.boldLine("Processing image files...").toConsole();
111+
detailOutput.output("Processing image files...");
112112
var imageFiles = directoryList(imagesDir, true, "query");
113113
for (var file in imageFiles) {
114114
if (file.type == "File" && isImageFile(file.name)) {
@@ -128,16 +128,16 @@ component extends="../base" {
128128
detailOutput.output("Asset manifest written to: #manifestPath#");
129129

130130
detailOutput.line();
131-
print.greenBoldLine("==> Asset precompilation complete!").toConsole();
132-
print.greenLine(" Processed #processedCount# files").toConsole();
133-
detailOutput.output(" Compiled assets location: #compiledDir#");
131+
detailOutput.statusSuccess("Asset precompilation complete!");
132+
detailOutput.output("Processed #processedCount# files", true);
133+
detailOutput.output("Compiled assets location: #compiledDir#", true);
134134

135135
// Provide instructions for production
136136
detailOutput.line();
137-
print.yellowLine("To use precompiled assets in production:").toConsole();
138-
detailOutput.output("1. Configure your web server to serve static files from /public/assets/compiled");
139-
detailOutput.output("2. Update your application to use the asset manifest for cache-busted URLs");
140-
detailOutput.output("3. Set wheels.assetManifest = true in your production environment");
137+
detailOutput.output("To use precompiled assets in production:");
138+
detailOutput.output("1. Configure your web server to serve static files from /public/assets/compiled", true);
139+
detailOutput.output("2. Update your application to use the asset manifest for cache-busted URLs", true);
140+
detailOutput.output("3. Set wheels.assetManifest = true in your production environment", true);
141141
}
142142

143143
/**

docs/src/SUMMARY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
* Code Analysis
6767
* [wheels analyze code](command-line-tools/commands/analysis/analyze-code.md)
6868
* [wheels analyze performance](command-line-tools/commands/analysis/analyze-performance.md)
69-
* [wheels analyze security](command-line-tools/commands/analysis/analyze-security.md)
7069
* Config
7170
* [wheels config check](command-line-tools/commands/config/config-check.md)
7271
* [wheels config diff](command-line-tools/commands/config/config-diff.md)

docs/src/command-line-tools/commands/analysis/analyze-security.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/src/command-line-tools/commands/analysis/analyze.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ wheels analyze [subcommand] [options]
1111

1212
## Description
1313

14-
The `wheels analyze` command provides comprehensive code analysis tools for Wheels applications. It helps identify code quality issues, performance bottlenecks, security vulnerabilities, and provides actionable insights for improvement.
14+
The `wheels analyze` command provides comprehensive code analysis tools for Wheels applications. It helps identify code quality issues, performance bottlenecks, and provides actionable insights for improvement.
1515

1616
## Subcommands
1717

1818
| Command | Description |
1919
|---------|-------------|
2020
| `code` | Analyze code quality and patterns |
2121
| `performance` | Analyze performance characteristics |
22-
| `security` | Security vulnerability analysis (deprecated) |
2322

2423

2524
## Direct Usage
@@ -32,7 +31,7 @@ wheels analyze help
3231

3332
## Analysis Overview
3433

35-
The analyze [code, performance, security] commands examines:
34+
The analyze [code, performance] commands examines:
3635

3736
### Code Quality
3837
- Coding standards compliance
@@ -46,12 +45,6 @@ The analyze [code, performance, security] commands examines:
4645
- Memory usage patterns
4746
- Cache effectiveness
4847

49-
### Security
50-
- SQL injection risks
51-
- XSS vulnerabilities
52-
- Insecure configurations
53-
- Outdated dependencies
54-
5548
## Best Practices
5649

5750
1. Run analysis regularly
@@ -83,5 +76,4 @@ The analyze [code, performance, security] commands examines:
8376

8477
- [wheels analyze code](analyze-code.md) - Code quality analysis
8578
- [wheels analyze performance](analyze-performance.md) - Performance analysis
86-
- [wheels security scan](../security/security-scan.md) - Security scanning
8779
- [wheels test](../testing/test.md) - Run tests

0 commit comments

Comments
 (0)