Giter VIP home page Giter VIP logo

Comments (7)

ZevEisenberg avatar ZevEisenberg commented on September 10, 2024 1

If @rakaramos is ok with it then I am too. Maybe make it a default part of the config file in case the user wants to modify it? But I can't think of a case where we'd want to mutate Package.swift, so just ignoring it internally would probably be ok too.

from muter.

Nikoloutsos avatar Nikoloutsos commented on September 10, 2024 1

@rakaramos follow up message.
Are you okay with that?

from muter.

rakaramos avatar rakaramos commented on September 10, 2024 1

hi @Nikoloutsos sure thing, go ahead! Thanks for this!

from muter.

Nikoloutsos avatar Nikoloutsos commented on September 10, 2024

After some investigation I found the culprit behind this. It's the Package.swift.
After muter creates a copy of my SPM it messes up with Package.swift
More specifically it creates the following:

// swiftformat:disable all
// swiftlint:disable all

import Foundation

// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Analytics",
    ...

while I think the // swift-tools-version: 5.9 should have been used as first comment as stated in swift docs

Therefore I fixed it by adding the Package.swift in the excluded files 🚀
Should we exclude Package.swift files by default though? Or should we make a special handling there so that the swiftlint comments comes after? Or at least provide a more meaningful error message so that the developer understands what caused the issue?

What do you think?

from muter.

ZevEisenberg avatar ZevEisenberg commented on September 10, 2024

I think it makes sense to exclude Package.swift!

from muter.

Nikoloutsos avatar Nikoloutsos commented on September 10, 2024

@ZevEisenberg I am interested in contributing. So are we okay to make a PR that will exclude it by default?

from muter.

rakaramos avatar rakaramos commented on September 10, 2024

@Nikoloutsos closing it as it was already fixed in #258

from muter.

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.