python script/run-clang-format.py -r -c --fix found some errors.

提交代碼遇到如下報錯:

husky > pre-commit (node v8.11.3)
  ↓ Stashing changes... [skipped]
    → No partially staged files found...
  ❯ Running linters...
    ↓ Running tasks for *.{js,ts} [skipped]
      → No staged files match *.{js,ts}
    ↓ Running tasks for *.{js,ts,d.ts} [skipped]
      → No staged files match *.{js,ts,d.ts}
    ❯ Running tasks for *.{cc,mm,c,h}
      ✖ python script/run-clang-format.py -r -c --fix
        git add
    ↓ Running tasks for *.md [skipped]
      → No staged files match *.md
    ↓ Running tasks for *.{gn,gni} [skipped]
      → No staged files match *.{gn,gni}
    ↓ Running tasks for *.py [skipped]
      → No staged files match *.py
    ↓ Running tasks for docs/api/**/*.md [skipped]
      → No staged files match docs/api/**/*.md
    ↓ Running tasks for {*.patch,.patches} [skipped]
      → No staged files match {*.patch,.patches}
    ↓ Running tasks for DEPS [skipped]
      → No staged files match DEPS



✖ python script/run-clang-format.py -r -c --fix found some errors. Please fix them and try committing again.

run-clang-format.py: error: clang-format exited with status 126: 'shell/browser/api/atom_api_web_contents.h'

解決:

git commit -m "modify" --no-verify

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章