Coder Social home page Coder Social logo

Windows issues about gitlint HOT 7 CLOSED

jorisroovers avatar jorisroovers commented on May 18, 2024 2
Windows issues

from gitlint.

Comments (7)

jorisroovers avatar jorisroovers commented on May 18, 2024 1

Keeping this open, as we might still consider this in the future.

from gitlint.

jorisroovers avatar jorisroovers commented on May 18, 2024

gitlint currently doesn't support Windows. No concrete plans either, might be something for the future.

from gitlint.

 avatar commented on May 18, 2024

thanks

from gitlint.

Kristinita avatar Kristinita commented on May 18, 2024

gitlint currently doesn't support Windows.

@jorisroovers , I think, it would be nice, if you will show it at the beginning of README and documentation, that Windows users do not waste their time.

Thanks.

from gitlint.

jorisroovers avatar jorisroovers commented on May 18, 2024

Made some time to work on this a bit. Relevant commits: cc5e6d8 and 20ac439.

I'm not a Windows user myself, but from the basic testing I did on a Windows 10 VM using Python 2.7 and Python 3.7, basic linting functionality seems to work. I'd appreciate anyone doing additional testing to confirm its working and report any bugs they find. I've already merged this work into master.

Things that work:

# lint latest commit
gitlint
gitlint -v --ignore T3,T5 # Options seem to work too

# Pass a message via stdin
echo "WIP: foöbar" > gitlint
git log -1 --pretty=%B | gitlint

# Commit ranges
gitlint --commits HEAD~2^..HEAD

However, I've also found a number of issues (some worse than others):
https://github.com/jorisroovers/gitlint/issues?q=is%3Aissue+is%3Aopen+label%3Awindows

I'll be releasing this (marked as experimental) as part of the 0.12.0 release later this week.

from gitlint.

ttwister avatar ttwister commented on May 18, 2024

edit(jorisroovers): Moved this comment to a new issue - see #107

Hello,

I tried creating user-defined rules on a Windows host (using Git-Bash) and those are not discovered.
I have created a CommitRule UC1 based on one of your examples.

Do you experience the same behavior?

$ gitlint --debug --extra-path myextensions/rules.py
DEBUG: gitlint.cli To report issues, please visit https://github.com/jorisroovers/gitlint/issues
DEBUG: gitlint.cli Platform: Windows-10-10.0.17763
DEBUG: gitlint.cli Python version: 2.7.16 (v2.7.16:413a49145e, Mar  4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)]
DEBUG: gitlint.cli Git version: git version 2.18.0.windows.1
DEBUG: gitlint.cli Gitlint version: 0.12.0
DEBUG: gitlint.cli GITLINT_USE_SH_LIB: [NOT SET]
DEBUG: gitlint.cli Configuration
config-path: C:\Users\xyz\path\.gitlint
[GENERAL]
extra-path: C:\Users\xyz\path\myextensions\rules.py
contrib: [u'contrib-title-conventional-commits']
ignore:
ignore-merge-commits: True
ignore-fixup-commits: True
ignore-squash-commits: True
ignore-stdin: True
verbosity: 3
debug: True
target: C:\Users\xyz\path
[RULES]
  I1: ignore-by-title
     ignore=all
     regex=^Release(.*)
  I2: ignore-by-body
     ignore=all
     regex=None
  T1: title-max-length
     line-length=70
[...]
  CT1: contrib-title-conventional-commits
     types=build,ci,doc,feat,fix,perf,refactor,style,test
[...]

from gitlint.

jorisroovers avatar jorisroovers commented on May 18, 2024

Since gitlint supports windows now and this issue is about nothing specific, I'm closing it

from gitlint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.