Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ability To Turn Off Formatting For Subdirectory#873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
samdeane wants to merge26 commits intoswiftlang:main
base:main
Choose a base branch
Loading
fromelegantchaos:main
Open
Changes from1 commit
Commits
Show all changes
26 commits
Select commitHold shift + click to select a range
eb29cb8
Initial stab at option to disable all formatting.
samdeaneNov 7, 2024
356b55f
Updated config documentation in README.
samdeaneNov 7, 2024
021d6b3
Fixed typo, initialiser.
samdeaneNov 7, 2024
3e4c5d2
Documented allDisabled key
samdeaneNov 7, 2024
8bade83
Emit unmodified source if allDisabled is true.
samdeaneNov 7, 2024
aac6fe8
Don't lint if allDisabled is set.
samdeaneNov 7, 2024
a7d4c24
Change flag to skipAll.
samdeaneNov 7, 2024
3046d92
Tweaked docs
samdeaneNov 7, 2024
bb4382e
Check for suppression file first.
samdeaneNov 7, 2024
17dc1bd
Use .swift-format-ignore as the file name.
samdeaneNov 7, 2024
cf27a3c
Move suppression logic up to FileIterator
samdeaneNov 7, 2024
7b22d51
Removed spurious newlines
samdeaneNov 7, 2024
fb8b06f
Filter urls to remove ignored ones.
samdeaneNov 7, 2024
5d85e22
Tweaked readme.
samdeaneNov 7, 2024
9ab91a5
Removed obsolete addition.
samdeaneNov 7, 2024
7b35513
Oops - skipping initial directory...
samdeaneNov 7, 2024
b2975de
Documentation tweaks.
samdeaneNov 7, 2024
ed1d3c4
Add minimal IgnoreFile abstraction.
samdeaneNov 27, 2024
3bc036e
Comment for IgnoreFile class
samdeaneNov 27, 2024
cff2b22
Added IgnoreFile unit tests
samdeaneNov 27, 2024
e9861ca
Added test for nested directory.
samdeaneNov 27, 2024
ba343ca
Added string constructor. Don't skip dir.
samdeaneDec 11, 2024
c9a14e3
Removed test resources
samdeaneDec 11, 2024
707061f
fixed nested test with explanatory comment
samdeaneDec 11, 2024
85840d6
Fixed merge conflict
samdeaneDec 11, 2024
5b5db57
Actually, this test should fail (currently)
samdeaneDec 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Comment for IgnoreFile class
  • Loading branch information
@samdeane
samdeane committedDec 11, 2024
commit3bc036e0717e26d8bfe64edbe648805208b433c5
6 changes: 6 additions & 0 deletionsSources/SwiftFormat/Core/IgnoreFile.swift
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,6 +12,12 @@

import Foundation

/// A file that describes which files and directories should be ignored by the formatter.
/// In the future, this file may contain complex rules for ignoring files, based
/// on pattern matching file paths.
///
/// Currently, the only valid content for an ignore file is a single asterisk "*",
/// optionally surrounded by whitespace.
public class IgnoreFile {
/// Name of the ignore file to look for.
/// The presence of this file in a directory will cause the formatter
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp