Coder Social home page Coder Social logo

Comments (13)

orta avatar orta commented on September 24, 2024

odd I thought we were linking for making sure all github links used https.

from core.

neonichu avatar neonichu commented on September 24, 2024

Nah, the goal is to not fail on private spec repos, see #83. The GitHub check only verifies that you don't use http.

from core.

squarefrog avatar squarefrog commented on September 24, 2024

https://github.com/CocoaPods/Core/blob/master/spec/specification/linter_spec.rb#L266-L276

I don't suppose there is a method to check if the repo is the master? Maybe a kludgey hack would be to check if the lint is running on Travis LOCALLY in the master repo, but that definitely makes me feel uncormfortable enough that it is not the correct solution

from core.

neonichu avatar neonichu commented on September 24, 2024

It is already failing on Travis, though, with a somewhat understandable error message.

Personally, I can only see the goal to have people realise this before making a PR, for that the lint commands would need a switch to specify they are for the master repo or one to specify that they are for a private one.

from core.

squarefrog avatar squarefrog commented on September 24, 2024

I'm sorry yes that was a mistake on my part - I believe the issue was I linted the file locally and it passed which confused me when providing support in Specs.

It's definitely something I can manually look out for now, but it could be an opportunity to clear things up when locally linting.

from core.

fabiopelosin avatar fabiopelosin commented on September 24, 2024

@neonichu when trunk will be introduced that full check performed by Travis will be removed (because waiting for the pull-request made Trunk too much complex... if I'm correct... @alloy ?). So @squarefrog makes sense in my opinion.

We could pass to the Validator whether we are submitting to the master repo and in that case run additional checks.

from core.

neonichu avatar neonichu commented on September 24, 2024

Ah, I see.

I would suggest assuming the master repo by default and passing something to the Validator if some other spec repo is used. That way it would do the right thing for inexperienced users.

from core.

squarefrog avatar squarefrog commented on September 24, 2024

👍

from core.

alloy avatar alloy commented on September 24, 2024

because waiting for the pull-request made Trunk too much complex... if I'm correct...

@irrationalfab Aye, it adds complexity while not educating spec authors, as some use it as a way to get their specs in order instead of trying in a real app etc.

from core.

alloy avatar alloy commented on September 24, 2024

I agree with @neonichu.

At some point it might be nice if you could have a default options config inside a spec repo. That way private spec repos could indicate what type of linting they want etc.

from core.

fabiopelosin avatar fabiopelosin commented on September 24, 2024

At some point it might be nice if you could have a default options config inside a spec repo. That way private spec repos could indicate what type of linting they want etc.

Is there any benefit in maintaining this?

from core.

alloy avatar alloy commented on September 24, 2024

The idea is that you then no longer have to specify certain options for certain repos. However, this only makes sense if we really really really need options at all.

from core.

fabiopelosin avatar fabiopelosin commented on September 24, 2024

I think that having a higher set of checks for just the master repo is simpler and sufficient for the moment.

from core.

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.