Coder Social home page Coder Social logo

linting/validators about molecule HOT 4 CLOSED

ansible avatar ansible commented on July 17, 2024
linting/validators

from molecule.

Comments (4)

kireledan avatar kireledan commented on July 17, 2024

To me this seems a bit unnecessary. The only validator that I think molecule would need would be a dry-run or just a quick syntax check.

from molecule.

conorsch avatar conorsch commented on July 17, 2024

OK, I'll bite: i'm a fan of the linting. There are lots of nearly unreadable Ansible roles out there, and Serverspec tests are similarly garish, given that they're mostly written by folks who don't code Ruby full-time for their day jobs. The linting that Molecule runs automatically helps enforce a consistent pattern across projects.

If you don't like the linting setup, you can use the molecule.ignore_paths list to skip linting (docs). In general I'm a fan of configuration, but let's not get lost in the weeds: the goal of Molecule, as I understand it, is to test Ansible roles and ensure they confirm to community standards.

That said, I'll agree that with your breakdown of linters for languages, but I'm skeptical that the additional complexity for "severity signaling" in linting is valuable. It is however consistant with the --destroy=always|passing|never pragma, also used in test-kitchen.

from molecule.

retr0h avatar retr0h commented on July 17, 2024

OK, I'll bite: i'm a fan of the linting. There are lots of nearly unreadable Ansible roles out there, and Serverspec tests are similarly garish, given that they're mostly written by folks who don't code Ruby full-time for their day jobs. The linting that Molecule runs automatically helps enforce a consistent pattern across projects.

I agree with @conorsch. The point of molecule is to be somewhat prescriptive. Everyone may not agree with it, but I'm not asking everyone to.

I would rather see us implement the linters @dhutty suggested above, but not have the ability to turn them on or off. We are enforcing common practices, and we cannot please everyone.

from molecule.

kireledan avatar kireledan commented on July 17, 2024

I definitely agree with the decision of not being able to turn them on or off. If molecule's goal is to enforce a community standard then there should be no option to avoid it.

from molecule.

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.