Comments (6)
Unfortunately, no matter what number we pick here, someone will not like it. RuboCop, has adopted the community driven Ruby Style Guide. However, I do not see anything specific to line length numbers in the spec.
Since these cops can be changed or disabled, feel free to submit a PR to ansible-sytem's .rubocop.yml
with:
LineLength:
Enabled: false
from molecule.
Actually let me think this over. Rubocop, will probably only search for a .rubocop.yml
from the current directory.
from molecule.
I'm leaning towards having the user manually create a .rubocop.yml
that meets their linting requirements vs molecule managing default rules.
So if you don't like the long lines, I suggest creating a .rubocop.yml
with something like the following in the base of your role.
LineLength:
Enabled: false
from molecule.
I've done this to get the role working .. however i think that many people will have paths that will require this setting and this fix is a bit nebulous .. i'd recommend disabling it entirely as the constraint isn't useful to this application.
from molecule.
I don't have a problem with this. I actually like this requirement. However, if people don't they can disable just as you did.
from molecule.
Please add a note about this to the molecule docs – or even just a link to an existing discussion of .rubocop.yml. Perhaps we should have a Tips/Conveniences section (both for molecule directly and for the tools molecule uses: rubocop in this case, but also, serverspec/testinfra/vagrant/etc). Since the whole point of molecule is to reduce the barrier for testing Ansible roles as part of the development process, it’s at least partly an educational project as well as a tool project.
From: John Dewey [mailto:[email protected]]
Sent: Wednesday, November 18, 2015 8:40 PM
To: metacloud/molecule
Subject: Re: [molecule] 100 chars is too short for spec files (#2)
I'm leaning towards having the user manually create a .rubocop.yml that meets their requirements around linting vs us managing a default one.
So if you don't like the long lines, I suggest creating a .rubocop.yml with something like the following in the base of your role.
LineLength:
Enabled: false
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-157919888.
from molecule.
Related Issues (20)
- RFE: Introduce the `--all-except` command line parameter
- RFE: Summary reporting when running multiple scenarios
- RFE: New `molecule.provisoning` collection HOT 1
- RFE: `ansible-navigator` as playbook executor
- Environment variables can no longer be be passed to the verifier since Molecule 6 HOT 3
- v6 fails due to collection path not aligning with ansible collection path HOT 14
- molecule fails in GitHub actions with: ansible_compat.errors.InvalidPrerequisiteError: Collection 'community.docker' not found in '['/home/runner/.ansible/collections', '/usr/share/ansible/collections']' HOT 17
- RFE: Use the output of list to find a scenario
- New collection --pre handling breaks on empty list HOT 2
- created: true is ignored in state.yml HOT 1
- RFE: Use inventory plugin to manage molecule dynamic inventory
- Getting Started example: Molecule looking for namespace.collection.role within the molecule directory structure HOT 9
- Incorrect pip install documentation
- Development of dependent roles requires workarounds because of non configurable symlinking
- molecule login does not work with podman containers HOT 2
- When including more than 1 entry in platforms molecule_inventory.yml doesn't contain all entries HOT 2
- Documentation still mentions "Docker" as the default driver in certain places
- Molecule Reset overwrites projects in COLLECTIONS_PATHS HOT 3
- 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
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.