Coder Social home page Coder Social logo

Ignore stdin by default in CI about gitlint HOT 7 OPEN

scop avatar scop commented on June 9, 2024
Ignore stdin by default in CI

from gitlint.

Comments (7)

jorisroovers avatar jorisroovers commented on June 9, 2024

We can do this yes (not sure whether this is the right implementation, need to check).

However, is the implication here that gitlint doesn't work out of the box in your CI environment without specifying --ignore-stdin? I haven't looked at TTY/STDIN detection for a while, but there have been other reports, mostly on windows IIRC (#91 and #171). Would like to hear more...

from gitlint.

sigmavirus24 avatar sigmavirus24 commented on June 9, 2024

That's what concerns me as I haven't needed to ignore stdin at all

from gitlint.

scop avatar scop commented on June 9, 2024

I haven't come across a case where I would have actually needed it, rather just decided to follow gitlint's documentation on it being useful in (some?) CI :)

from gitlint.

sigmavirus24 avatar sigmavirus24 commented on June 9, 2024

So this should really be "improve documentation to indicate that this might be useful in CI"?

from gitlint.

scop avatar scop commented on June 9, 2024

Would be good to be more specific than that. I'm not sure what audience would such a change serve, and there wouldn't be much of a difference to the current situation. Alternatively, the note about CI could be removed altogether, I suppose people who need it will either find the option or not, no matter if CI is mentioned.

from gitlint.

jorisroovers avatar jorisroovers commented on June 9, 2024

Sorry for the delay - and thanks for opening issues and your doc fix PRs @scop, please keep them coming. We might not always move forward with everything, but the discussion and suggestions make gitlint better overall - greatly appreciated!

On topic:

So if we don't know of any CI environment where detection fails, I think I'm now undecided on the usefulness of this.

I agree with using sane defaults ("batteries included" ftw!) but you could also argue it's better to have a hard fail on TTY/STDIN detection (and people opening a bug) than it silently being bypassed because CI was set.

Alternatively, the note about CI could be removed altogether, I suppose people who need it will either find the option or not, no matter if CI is mentioned.

Are you referring to the mention of CI here, in the CLI flag? Or do you mean elsewhere in the gitlint docs?

help="Ignore any stdin data. Useful for running in CI server.")

from gitlint.

scop avatar scop commented on June 9, 2024

Both. There's a mention at least in docs/configuration.md (marked "sometimes useful" there).

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.