Comments (7)
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.
@rakaramos follow up message.
Are you okay with that?
from muter.
hi @Nikoloutsos sure thing, go ahead! Thanks for this!
from muter.
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.
I think it makes sense to exclude Package.swift!
from muter.
@ZevEisenberg I am interested in contributing. So are we okay to make a PR that will exclude it by default?
from muter.
@Nikoloutsos closing it as it was already fixed in #258
from muter.
Related Issues (20)
- Migrate to versioned formulae (homebrew)
- Cannot write to file when run from Xcode 15 HOT 4
- Add Linux support HOT 2
- Use coverage to short-circuit mutation HOT 2
- Improve schemata testing HOT 2
- [Error]Swift/StringCharacterView.swift:158 Fatal error: String index is out of bounds HOT 7
- Reconsider defaultExcludeList values to be more specific HOT 3
- Muter discovered 0 mutants in 0 files or wrongfully fails tests when running on a new project with default config HOT 3
- RemoveSideEffectsOperator doesn't check for implicit return scenario HOT 4
- ApplySchemata step doesn't generate formatted code HOT 4
- Could not parse buildRequest.json from build description path HOT 1
- "error: invalid branch name: 'master'" when running on fresh swift package HOT 7
- Run mutations in parallel HOT 2
- Homebrew version of Muter very broken HOT 1
- Support xcodebuild as an executable for SPM projects HOT 2
- AcceptanceTests fail locally when using Sonoma 14.4.1 + Xcode 15.2 HOT 1
- Muter hangs when mutation change causes test hang HOT 6
- Wrong results mutating HOT 8
- Error Running Muter Version 16 with Xcode 15 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 muter.