Skip to content

Commit 579d775

Browse files
committed
Change Baseline filename
1 parent d55ed9f commit 579d775

13 files changed

Lines changed: 49 additions & 43 deletions

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ dist/TEMPLATES/*.txt
2323

2424
# Baseline files (contain project-specific findings)
2525
# Exception: Test fixture baseline is needed for CI tests
26-
!dist/tests/fixtures/.neochrome-baseline
27-
.neochrome-baseline
28-
*.neochrome-baseline
29-
**/.neochrome-baseline
26+
!dist/tests/fixtures/.hcc-baseline
27+
.hcc-baseline
28+
*.hcc-baseline
29+
**/.hcc-baseline
3030

3131
# ============================================
3232
# DEVELOPMENT & TESTING

CHANGELOG.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,24 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.59] - 2025-12-31
9+
10+
### Changed
11+
- **Baseline File Renamed** - Renamed `.neochrome-baseline` to `.hcc-baseline` (HCC = Hypercart Code Check)
12+
- Updated default baseline filename in `check-performance.sh`
13+
- Updated all documentation references
14+
- Updated test fixtures and test scripts
15+
- Updated `.gitignore` patterns
16+
- Renamed `dist/tests/fixtures/.neochrome-baseline` to `.hcc-baseline`
17+
18+
---
19+
820
## [1.0.58] - 2025-12-31
921

1022
### Fixed
11-
- **Test Fixture Baseline File** - Added `.neochrome-baseline` test fixture to git
23+
- **Test Fixture Baseline File** - Added `.hcc-baseline` test fixture to git
1224
- File was being ignored by `.gitignore`, causing CI test failures
13-
- Added exception in `.gitignore` for `dist/tests/fixtures/.neochrome-baseline`
25+
- Added exception in `.gitignore` for `dist/tests/fixtures/.hcc-baseline`
1426
- Fixes "JSON baseline behavior" test failure in GitHub Actions
1527

1628
### Added
@@ -609,7 +621,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
609621
### Added
610622

611623
- **Baseline regression coverage**
612-
- Added a dedicated `.neochrome-baseline` fixture and JSON-based test in `dist/tests/run-fixture-tests.sh` to validate `baselined` and `stale_baseline` behavior end-to-end.
624+
- Added a dedicated `.hcc-baseline` fixture and JSON-based test in `dist/tests/run-fixture-tests.sh` to validate `baselined` and `stale_baseline` behavior end-to-end.
613625
- **Developer documentation updates**
614626
- Updated `dist/README.md` with JSON output and baseline usage instructions for CI/tooling, and bumped example/version references to 1.0.33.
615627

@@ -620,7 +632,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
620632
### Added
621633

622634
- **Baseline support for performance findings**
623-
- New `--generate-baseline` flag to scan the current codebase and write a `.neochrome-baseline` file with per-rule, per-file allowed counts
635+
- New `--generate-baseline` flag to scan the current codebase and write a `.hcc-baseline` file with per-rule, per-file allowed counts
624636
- New `--baseline` flag to point to a custom baseline file path and `--ignore-baseline` to disable baseline usage when needed
625637
- Runtime checks now consult the baseline and suppress findings that are within the recorded allowance while still emitting new or increased findings
626638
- JSON summary now includes `baselined` (total suppressed findings) and `stale_baseline` (entries where the recorded allowance exceeds current matches)

DISTRIBUTION-README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The `.gitignore` file ensures users won't accidentally commit:
5656
-**Logs** (`dist/logs/*.log`, `dist/logs/*.json`)
5757
-**Reports** (`dist/reports/*.html`)
5858
-**User templates** (`dist/TEMPLATES/*.txt` except base files)
59-
-**Baseline files** (`.neochrome-baseline`)
59+
-**Baseline files** (`.hcc-baseline`)
6060
-**Credentials** (`.env`, `*.pem`, `*.key`)
6161

6262
---

FAQS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This is perfect for:
9090
- Large plugins/themes where fixing everything at once isn't practical
9191
- Teams that want to prevent regression without a massive refactor
9292

93-
The baseline file (`.neochrome-baseline`) is human-readable and can be committed to version control.
93+
The baseline file (`.hcc-baseline`) is human-readable and can be committed to version control.
9494

9595
---
9696

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![CI](https://github.com/YOUR_ORG/wp-code-check/actions/workflows/ci.yml/badge.svg)](https://github.com/YOUR_ORG/wp-code-check/actions)
66
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
7-
[![Version](https://img.shields.io/badge/version-1.0.58-green.svg)](CHANGELOG.md)
7+
[![Version](https://img.shields.io/badge/version-1.0.59-green.svg)](CHANGELOG.md)
88

99
---
1010

dist/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ wp-analyze ~/Sites/my-plugin --no-context
189189
# Generate baseline from current state
190190
wp-analyze ~/Sites/my-plugin --format json --generate-baseline
191191

192-
# This creates .neochrome-baseline in the scanned directory
192+
# This creates .hcc-baseline in the scanned directory
193193
# Commit this file to version control
194194

195195
# Future runs will only fail on NEW or INCREASED issues
@@ -220,7 +220,7 @@ Validate that baseline features work correctly on any project:
220220
```
221221

222222
**What it tests:**
223-
-**Baseline generation**: Creates `.neochrome-baseline` file correctly
223+
-**Baseline generation**: Creates `.hcc-baseline` file correctly
224224
-**Issue suppression**: Baselined issues don't cause failures
225225
-**New issue detection**: Issues above baseline are caught
226226
-**Stale baseline detection**: Reduced issues are flagged

dist/TEMPLATES/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ FORMAT=json
9191

9292
```bash
9393
# Use a baseline file
94-
BASELINE=.neochrome-baseline
94+
BASELINE=.hcc-baseline
9595

9696
# Custom log directory
9797
LOG_DIR=./custom-logs
@@ -202,7 +202,7 @@ Use templates in CI/CD pipelines:
202202
2. Add baseline to template:
203203
```bash
204204
# In my-plugin.txt
205-
BASELINE=.neochrome-baseline
205+
BASELINE=.hcc-baseline
206206
```
207207

208208
3. Future scans only report NEW issues

dist/TEMPLATES/_AI_INSTRUCTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ VERSION='2.1.3'
134134
# ============================================================
135135

136136
# Baseline file for suppressing known issues
137-
# BASELINE=.neochrome-baseline
137+
# BASELINE=.hcc-baseline
138138

139139
# Custom log directory
140140
# LOG_DIR=./logs

dist/TEMPLATES/_TEMPLATE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ VERSION=''
5353

5454
# Baseline file for suppressing known issues
5555
# Use this to track and suppress existing issues while preventing new ones
56-
# Default: .neochrome-baseline
57-
# BASELINE=.neochrome-baseline
56+
# Default: .hcc-baseline
57+
# BASELINE=.hcc-baseline
5858

5959
# Custom log directory
6060
# Where to store scan logs and reports

dist/bin/check-performance.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
#
33
# WP Code Check by Hypercart - Performance Analysis Script
4-
# Version: 1.0.58
4+
# Version: 1.0.59
55
#
66
# Fast, zero-dependency WordPress performance analyzer
77
# Catches critical issues before they crash your site
@@ -18,8 +18,8 @@
1818
# --no-log Disable logging to file
1919
# --no-context Disable context lines around findings
2020
# --context-lines N Number of context lines to show (default: 3)
21-
# --generate-baseline Generate .neochrome-baseline from current findings
22-
# --baseline <path> Use custom baseline file path (default: .neochrome-baseline)
21+
# --generate-baseline Generate .hcc-baseline from current findings
22+
# --baseline <path> Use custom baseline file path (default: .hcc-baseline)
2323
# --ignore-baseline Ignore baseline file even if present
2424
# --help Show this help message
2525

@@ -49,7 +49,7 @@ CONTEXT_LINES=3 # Number of lines to show before/after findings (0 to disa
4949
EXCLUDE_DIRS="vendor node_modules .git tests"
5050

5151
# Baseline configuration
52-
BASELINE_FILE=".neochrome-baseline"
52+
BASELINE_FILE=".hcc-baseline"
5353
GENERATE_BASELINE=false
5454
IGNORE_BASELINE=false
5555
BASELINE_ENABLED=false
@@ -1157,7 +1157,7 @@ generate_baseline_file() {
11571157
done
11581158

11591159
local tmp
1160-
tmp="$(mktemp 2>/dev/null || echo "/tmp/neochrome-baseline.$$")"
1160+
tmp="$(mktemp 2>/dev/null || echo "/tmp/hcc-baseline.$$")"
11611161

11621162
for i in "${!NEW_BASELINE_KEYS[@]}"; do
11631163
local key="${NEW_BASELINE_KEYS[$i]}"
@@ -1171,7 +1171,7 @@ generate_baseline_file() {
11711171
done
11721172

11731173
{
1174-
echo "# .neochrome-baseline"
1174+
echo "# .hcc-baseline"
11751175
echo "# Generated: $(date '+%Y-%m-%d %H:%M:%S')"
11761176
echo "# Tool: WP Code Check by Hypercart $(grep -m1 'Version:' "$0" 2>/dev/null | sed 's/^# Version: //')"
11771177
echo "# Total baselined: ${total}"

0 commit comments

Comments
 (0)