Skip to content

Commit a64e12b

Browse files
authored
Merge pull request #133 from allevato/remove-old-comments
[NFC] Remove links to Google's style guide in comments.
2 parents c445070 + 3fc582b commit a64e12b

35 files changed

+0
-74
lines changed

Sources/SwiftFormatRules/AllPublicDeclarationsHaveDocumentation.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import SwiftSyntax
1717
/// All public or open declarations must have a top-level documentation comment.
1818
///
1919
/// Lint: If a public declaration is missing a documentation comment, a lint error is raised.
20-
///
21-
/// - SeeAlso: https://google.github.io/swift#where-to-document
2220
public final class AllPublicDeclarationsHaveDocumentation: SyntaxLintRule {
2321

2422
public override func visit(_ node: FunctionDeclSyntax) -> SyntaxVisitorContinueKind {

Sources/SwiftFormatRules/AlwaysUseLowerCamelCase.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import SwiftSyntax
1919
///
2020
/// Lint: If an identifier contains underscores or begins with a capital letter, a lint error is
2121
/// raised.
22-
///
23-
/// - SeeAlso: https://google.github.io/swift#identifiers
2422
public final class AlwaysUseLowerCamelCase: SyntaxLintRule {
2523

2624
public override func visit(_ node: VariableDeclSyntax) -> SyntaxVisitorContinueKind {

Sources/SwiftFormatRules/AmbiguousTrailingClosureOverload.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import SwiftSyntax
1818
///
1919
/// Lint: If two overloaded functions with one closure parameter appear in the same scope, a lint
2020
/// error is raised.
21-
///
22-
/// - SeeAlso: https://google.github.io/swift#trailing-closures
2321
public final class AmbiguousTrailingClosureOverload: SyntaxLintRule {
2422

2523
func diagnoseBadOverloads(_ overloads: [String: [FunctionDeclSyntax]]) {

Sources/SwiftFormatRules/BeginDocumentationCommentWithOneLineSummary.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import SwiftSyntax
1717
/// All documentation comments must begin with a one-line summary of the declaration.
1818
///
1919
/// Lint: If a comment does not begin with a single-line summary, a lint error is raised.
20-
///
21-
/// - SeeAlso: https://google.github.io/swift#single-sentence-summary
2220
public final class BeginDocumentationCommentWithOneLineSummary: SyntaxLintRule {
2321

2422
/// Unit tests can testably import this module and set this to true in order to force the rule

Sources/SwiftFormatRules/DoNotUseSemicolons.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import SwiftSyntax
1919
/// Lint: If a semicolon appears anywhere, a lint error is raised.
2020
///
2121
/// Format: All semicolons will be replaced with line breaks.
22-
///
23-
/// - SeeAlso: https://google.github.io/swift#semicolons
2422
public final class DoNotUseSemicolons: SyntaxFormatRule {
2523

2624
/// Creates a new version of the given node which doesn't contain any semicolons. The node's

Sources/SwiftFormatRules/DontRepeatTypeInStaticProperties.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import SwiftSyntax
2121
/// `public class var redColor: UIColor` would trigger this rule.
2222
///
2323
/// Lint: Static properties of a type that return that type will yield a lint error.
24-
///
25-
/// - SeeAlso: https://google.github.io/swift#static-and-class-properties
2624
public final class DontRepeatTypeInStaticProperties: SyntaxLintRule {
2725

2826
public override func visit(_ node: ClassDeclSyntax) -> SyntaxVisitorContinueKind {

Sources/SwiftFormatRules/FullyIndirectEnum.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import SwiftSyntax
2121
///
2222
/// Format: Enums where all cases are `indirect` will be rewritten such that the enum is marked
2323
/// `indirect`, and each case is not.
24-
///
25-
/// - SeeAlso: https://google.github.io/swift#enum-cases
2624
public final class FullyIndirectEnum: SyntaxFormatRule {
2725

2826
public override func visit(_ node: EnumDeclSyntax) -> DeclSyntax {

Sources/SwiftFormatRules/GroupNumericLiterals.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ import SwiftSyntax
2626
/// TODO: Minimum numeric literal length bounds and numeric groupings have been selected arbitrarily;
2727
/// these could be reevaluated.
2828
/// TODO: Handle floating point literals.
29-
///
30-
/// - SeeAlso: https://google.github.io/swift#numeric-literals
3129
public final class GroupNumericLiterals: SyntaxFormatRule {
3230
public override func visit(_ node: IntegerLiteralExprSyntax) -> ExprSyntax {
3331
var originalDigits = node.digits.text

Sources/SwiftFormatRules/IdentifiersMustBeASCII.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import SwiftSyntax
1717
/// All identifiers must be ASCII.
1818
///
1919
/// Lint: If an identifier contains non-ASCII characters, a lint error is raised.
20-
///
21-
/// - SeeAlso: https://google.github.io/swift#identifiers
2220
public final class IdentifiersMustBeASCII: SyntaxLintRule {
2321

2422
public override func visit(_ node: IdentifierPatternSyntax) -> SyntaxVisitorContinueKind {

Sources/SwiftFormatRules/NeverForceUnwrap.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ import SwiftSyntax
1616
/// Force-unwraps are strongly discouraged and must be documented.
1717
///
1818
/// Lint: If a force unwrap is used, a lint warning is raised.
19-
/// TODO(abl): consider having documentation (e.g. a comment) cancel the warning?
20-
///
21-
/// - SeeAlso: https://google.github.io/swift#force-unwrapping-and-force-casts
2219
public final class NeverForceUnwrap: SyntaxLintRule {
2320

2421
public override func visit(_ node: SourceFileSyntax) -> SyntaxVisitorContinueKind {

0 commit comments

Comments
 (0)