Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jkolarik-paylocity committed Nov 25, 2024
1 parent 7170ca9 commit 7ffd35e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Source/SwiftLintBuiltInRules/Models/BuiltInRules.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public let builtInRules: [any Rule.Type] = [
NSObjectPreferIsEqualRule.self,
NestingRule.self,
NimbleOperatorRule.self,
NoAsyncFuncWithoutAwaitRule.self,
NoAsyncWithoutAwaitRule.self,
NoEmptyBlockRule.self,
NoExtensionAccessModifierRule.self,
NoFallthroughOnlyRule.self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import SwiftSyntax

@SwiftSyntaxRule
struct NoAsyncFuncWithoutAwaitRule: OptInRule {
struct NoAsyncWithoutAwaitRule: OptInRule {
var configuration = SeverityConfiguration<Self>(.warning)

static let description = RuleDescription(
identifier: "no_async_func_without_await",
name: "No sync func without await",
identifier: "no_async_without_await",
name: "No sync without await",
description: "Function should not be async if doesn't use await",
kind: .idiomatic,
nonTriggeringExamples: [
Expand Down Expand Up @@ -64,7 +64,7 @@ struct NoAsyncFuncWithoutAwaitRule: OptInRule {
]
)
}
private extension NoAsyncFuncWithoutAwaitRule {
private extension NoAsyncWithoutAwaitRule {
final class Visitor: ViolationsSyntaxVisitor<ConfigurationType> {
private struct FuncInfo {
var awaitCount: Int = 0
Expand Down
2 changes: 1 addition & 1 deletion Tests/GeneratedTests/GeneratedTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ final class NimbleOperatorRuleGeneratedTests: SwiftLintTestCase {

final class NoAsyncFuncWithoutAwaitRuleGeneratedTests: SwiftLintTestCase {
func testWithDefaultConfiguration() {
verifyRule(NoAsyncFuncWithoutAwaitRule.description)
verifyRule(NoAsyncWithoutAwaitRule.description)
}
}

Expand Down

0 comments on commit 7ffd35e

Please sign in to comment.