MaibornWolff / MaibornWolff/codecharta

Huzky syntax error on WSL

Open
#4,077 0 comments 0 reactions 0 assignees View on GitHub
bug priority:low research tech
Dominant language
TypeScript
Stars
529
Forks
56
Avg merge
7h 17m
Merged PRs (30d)
34

Description

# Bug

## Expected Behavior

WHEN

Developing on WSL and pushing changes that run the formatter

THEN

The code gets correctly formatted and pushed

## Actual Behavior

Huzky (or the pre-commit hook) throws the following error:

```
.husky/pre-push: 6: Syntax error: "(" unexpected (expecting "then")
husky - pre-push hook exited with code 2 (error)
error: failed to push some refs to 'github.com:StefanFl/codecharta.git'
```
(error was thrown after editing formatting of a json file)

## Screenshots

## Steps to Reproduce the Problem
1.
1.
1.

## Specifications
- is released in [online-demo](https://maibornwolff.github.io/codecharta/visualization/app/index.html?file=codecharta.cc.json.gz&file=codecharta_analysis.cc.json.gz¤tFilesAreSampleFiles=true): yes | no
- CodeCharta Version:
- OS:
- Browser:

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with .husky/pre-push and reproduce the formatter-triggered push on WSL to identify which hook syntax causes the reported error. Done means the pre-push hook runs successfully after formatting a JSON file and the changes can be pushed.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.