Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions cli/src/commands/wheels/analyze/code.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ component extends="../base" {
var icon = getSeverityIcon(issue.severity);
var color = getSeverityColor(issue.severity);

detailOutput.colored(" #icon# Line #issue.line#:#issue.column# - #issue.message#", color);
print.grayLine(" Rule: #issue.rule#" & (issue.fixable ? " [Auto-fixable]" : "")).toConsole();
detailOutput.output(" #icon# Line #issue.line#:#issue.column# - #issue.message#");
print.cyanLine(" Rule: #issue.rule#" & (issue.fixable ? " [Auto-fixable]" : "")).toConsole();
}
}
}
Expand Down Expand Up @@ -313,12 +313,6 @@ component extends="../base" {
arrayAppend(recommendations, "Address code smells to improve maintainability");
}

if (!fileExists(".wheelscheck")) {
arrayAppend(recommendations, "Create a .wheelscheck config file for custom rules");
}

arrayAppend(recommendations, "Integrate this check into your CI/CD pipeline");

for (var rec in recommendations) {
detailOutput.output(" * #rec#");
}
Expand Down
4 changes: 1 addition & 3 deletions cli/src/commands/wheels/analyze/performance.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,7 @@ component extends="../base" {
var score = calculatePerformanceScore(arguments.results);
var grade = getPerformanceGrade(score);

detailOutput.divider("=", 50);
print.boldLine("Performance Grade: #grade# (#score#/100)").toConsole();
detailOutput.divider("=", 50);
detailOutput.header("Performance Grade: #grade# (#score#/100)");
detailOutput.line();

// Recommendations
Expand Down
31 changes: 0 additions & 31 deletions cli/src/commands/wheels/analyze/security.cfc

This file was deleted.

22 changes: 11 additions & 11 deletions cli/src/commands/wheels/assets/precompile.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ component extends="../base" {
// Normalize environment aliases
arguments.environment = normalizeEnvironment(arguments.environment);

print.greenBoldLine("==> Precompiling assets for #arguments.environment#...").toConsole();
detailOutput.output("Precompiling assets for #arguments.environment#...");
detailOutput.line();

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

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

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

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

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

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

/**
Expand Down
4 changes: 2 additions & 2 deletions cli/src/commands/wheels/generate/app-wizard.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ component aliases="wheels g app-wizard, wheels new" extends="../base" {

var template = multiselect( 'Which Wheels Template shall we use? ' )
.options( [
{value: 'wheels-base-template@^3.0.0-rc.1', display: '3.0.0-rc - Wheels Base Template - Release Candidate', selected: true},
{value: 'cfwheels-base-template', display: '2.5.x - Wheels Base Template - Stable Release'},
{value: 'wheels-base-template@^3.0.0', display: '3.0 - Wheels Base Template - Stable', selected: true},
{value: 'wheels-base-template@BE', display: 'Bleeding Edge - Wheels Base Template'},
{value: 'cfwheels-template-htmx-alpine-simple', display: 'Wheels Template - HTMX - Alpine.js - Simple.css'},
{value: 'wheels-starter-app', display: 'Wheels Starter App'},
{value: 'cfwheels-todomvc-htmx', display: 'Wheels - TodoMVC - HTMX - Demo App'},
Expand Down
6 changes: 3 additions & 3 deletions cli/src/commands/wheels/generate/app.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* {code}
*
* Here are the basic templates that are available for you that come from ForgeBox
* - Wheels Base Template - 3.0 Bleeding Edge (default)
* - CFWheels Base Template - 2.5 Stable
* - Wheels Base Template - 3.0 Stable (default)
* - Wheels Base Template - Bleeding Edge
* - Wheels Template - HelloWorld
* - Wheels Template - HelloDynamic
* - Wheels Template - HelloPages
Expand Down Expand Up @@ -55,7 +55,7 @@ component aliases="wheels g app" extends="../base" {

/**
* @name The name of the app you want to create
* @template The name of the app template to generate (or an endpoint ID like a forgebox slug). Default is Base@BE (Bleeding Edge)
* @template The name of the app template to generate (or an endpoint ID like a forgebox slug). Default is Bleeding Edge
* @directory The directory to create the app in
* @reloadPassword The reload passwrod to set for the app
* @datasourceName The datasource name to set for the app
Expand Down
2 changes: 1 addition & 1 deletion core/box.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "wheels-core",
"version": "3.0.0",
"version": "3.0.1-SNAPSHOT",
"location": "https://github.com/cfwheels/cfwheels/tree/3.0/core"
}
1 change: 0 additions & 1 deletion docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
* Code Analysis
* [wheels analyze code](command-line-tools/commands/analysis/analyze-code.md)
* [wheels analyze performance](command-line-tools/commands/analysis/analyze-performance.md)
* [wheels analyze security](command-line-tools/commands/analysis/analyze-security.md)
* Config
* [wheels config check](command-line-tools/commands/config/config-check.md)
* [wheels config diff](command-line-tools/commands/config/config-diff.md)
Expand Down
37 changes: 0 additions & 37 deletions docs/src/command-line-tools/commands/analysis/analyze-security.md

This file was deleted.

12 changes: 2 additions & 10 deletions docs/src/command-line-tools/commands/analysis/analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ wheels analyze [subcommand] [options]

## Description

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.
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.

## Subcommands

| Command | Description |
|---------|-------------|
| `code` | Analyze code quality and patterns |
| `performance` | Analyze performance characteristics |
| `security` | Security vulnerability analysis (deprecated) |


## Direct Usage
Expand All @@ -32,7 +31,7 @@ wheels analyze help

## Analysis Overview

The analyze [code, performance, security] commands examines:
The analyze [code, performance] commands examines:

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

### Security
- SQL injection risks
- XSS vulnerabilities
- Insecure configurations
- Outdated dependencies

## Best Practices

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

- [wheels analyze code](analyze-code.md) - Code quality analysis
- [wheels analyze performance](analyze-performance.md) - Performance analysis
- [wheels security scan](../security/security-scan.md) - Security scanning
- [wheels test](../testing/test.md) - Run tests
2 changes: 1 addition & 1 deletion templates/base/src/box.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"Wheels.fw",
"version":"3.0.0",
"version":"3.0.1-SNAPSHOT",
"author":"Wheels Core Team and Community",
"shortDescription":"Wheels MVC Framework Core Directory",
"location":"ForgeboxStorage",
Expand Down
Loading