webhintio / hint

πŸ’‘ A hinting engine for the web

Home Page:https://webhint.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Throws exception when used in development mode in a git worktree

timcleaver opened this issue Β· comments

🐞 Bug report

Description

Throws exception when using hint cli in a git worktree.

Details

Steps to reproduce:

  1. git clone repository
  2. git worktree add develop ../develop
  3. cd ../develop
  4. hint /.

- (node:39249) [DEP0040] DeprecationWarning: The punycodemodule is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ... to show where the warning was created) βœ– Analyzing file:///Users/timcleave … e-static-assets-properly AnalyzerError: ENOTDIR: not a directory, stat '/Users/timcleaver/Documents/Idemitsu/idemitsu-harlequin-ui/worktrees/serve-static-assets-properly/.git/**' at Analyzer.analyze (/usr/local/lib/node_modules/hint/dist/src/lib/analyzer.js:151:23) at async exports.default (/usr/local/lib/node_modules/hint/dist/src/lib/cli/analyze.js:219:9) at async /usr/local/lib/node_modules/hint/dist/src/lib/cli/actions.js:8:20 at async Object.execute (/usr/local/lib/node_modules/hint/dist/src/lib/cli.js:38:23) at async run (/usr/local/lib/node_modules/hint/dist/src/bin/hint.js:21:24) { status: 'AnalyzeError' }

As per the way git worktrees work, .git is a file. The contents of the file point to the files in the real .git folder. see: https://git-scm.com/docs/git-worktree

Contents of .hintrc:
{ "extends": ["development"] }