Coder Social home page Coder Social logo

Comments (6)

retr0h avatar retr0h commented on July 17, 2024

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.

retr0h avatar retr0h commented on July 17, 2024

Actually let me think this over. Rubocop, will probably only search for a .rubocop.yml from the current directory.

from molecule.

retr0h avatar retr0h commented on July 17, 2024

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.

sandinak avatar sandinak commented on July 17, 2024

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.

retr0h avatar retr0h commented on July 17, 2024

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.

dhutty avatar dhutty commented on July 17, 2024

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)

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.