Comments (4)
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.
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.
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.
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)
- Idempotence tests incorrectly succeed when Ansible callback plugin is not default HOT 4
- testinfra 9.0.0 use the same ssh connection as molecule/ansible… which can lead to wrong environment variables
- MOLECULE_REPORT is not generating html report when mentioned in molecule.yml as per docs HOT 2
- Update documentation about default Driver HOT 1
- [Docs] Update user guide with missing sections HOT 4
- [Docs] Add porting guide HOT 1
- dependency step installs roles to user's roles path, not in ephemeral directory HOT 3
- CRITICAL 'molecule/default/molecule.yml' glob failed. Exiting - Unable to run molecule HOT 13
- Unknown command: ansible-playbook
- Switch Releases to CalVer HOT 1
- molecule matrix command produces unreadable colored output HOT 1
- Container drivers are not working
- Is `v24.2.0` wrongly tagged? HOT 1
- wants tmpfs to be dict, not list HOT 8
- Molecule config file in {project}/.config/molecule/config.yml not found HOT 1
- Molecule instance inherits all groups from inventory
- [Docs] Add driver name for podman HOT 2
- The env option of the shell dependency has no effect
- Unable to Create Temporary Directory During Molecule Test Execution in Ansible Role HOT 2
- Molecule converge with specific scenario ends up with an error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from molecule.