Skip to content

Commit d7708a1

Browse files
cbleckerclaude
andcommitted
Extract startYear constant and update election validation to 2026
- Add startYear constant set to 2026 for easier configuration - Update findBioFiles to use startYear constant instead of hardcoded 2025 - Update comments to reference the constant instead of specific years 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 000e6d0 commit d7708a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/verify-steering-election-tool.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
const (
3131
maxWordCount = 450
3232
recommendedWordCount = 300
33+
startYear = 2026
3334
)
3435

3536
type ValidationError struct {
@@ -133,12 +134,11 @@ func findBioFiles(electionsPath string) ([]string, error) {
133134
return nil
134135
}
135136

136-
// Only include elections from 2025 forward
137+
// Only include elections from startYear forward
137138
pathLower := strings.ToLower(path)
138139
includeFile := false
139140
currentYear := time.Now().Year()
140-
// Check from 2025 to a few years ahead of current year
141-
startYear := 2025
141+
// Check from startYear to a few years ahead of current year
142142
endYear := currentYear + 5
143143
for year := startYear; year <= endYear; year++ {
144144
yearStr := fmt.Sprintf("/%d/", year)

0 commit comments

Comments
 (0)