Skip to content

Rework file content handling - #8

Merged
darthsharp merged 7 commits into
mainfrom
feature/rework-file-content-handling
Oct 24, 2026
Merged

darthsharp merged 7 commits into
mainfrom
feature/rework-file-content-handling

Conversation

@darthsharp

Copy link
Copy Markdown
Contributor

No description provided.

…it attribute resolution, and line ending logic

- Removed unused `TextFileLine` struct.
- Resolved `.editorconfig` parsing errors with fallback warnings and detailed diagnostics for invalid content.
- Fixed inconsistencies between Git attribute evaluation and `convert.c` behavior (`crlf`, `binary`).
- Allowed resolution of line endings for staging paths based on final feature paths.
- Introduced repository-wide caching to reduce redundant `git` operations on file writes.
- Improved exception handling and warning messages for `.editorconfig` failures.
- Updated tests to cover edge cases for Windows-specific behavior and malformed `.editorconfig` files.
- Replaced target-typed `new()` expressions with full type declarations to improve readability and maintain consistency.
…d add Git warnings

- Introduced `EditorConfigGlobExpansion` to prevent `.editorconfig` glob expansions exceeding 10,000 patterns.
- Standardized UTF-8 validation for JSON files; errors now throw `InvalidKitFileException`.
- Normalized handling of CR-only line endings in templates and source files.
- Added `GitAttributesUnavailableWarning` for cases where `git` fails but exists.
- Consolidated repository file path validation and introduced `RepositoryFile` type to reduce redundancy.
- Enhanced immutability of `TextFileContent` by switching to `ImmutableArray<string>`.
…ling, and skill naming

- Clarified checklist handling with placeholder replacement logic.
- Updated feature package statuses with documentation checks and rework notes.
- Standardized skill names (`shade-kit-*`) and clarified purposes.
- Documented the `coverageThreshold` implementation and configuration details.
- Improved descriptions of artifact handling, line endings, and error codes.
@darthsharp
darthsharp merged commit db3a8d2 into main Oct 24, 2026
7 checks passed
@darthsharp
darthsharp deleted the feature/rework-file-content-handling branch October 24, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant