Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder-256 committed Jun 5, 2018
1 parent 5c0e7c8 commit fc5f1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SwiftLintFramework/Rules/IdentifierNameRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public struct IdentifierNameRule: ASTRule, ConfigurationProviderRule {
let description = Swift.type(of: self).description

let type = self.type(for: kind)
if !isFunction {
if !isFunction && kind != .enumelement {
let allowedSymbols = configuration.allowedSymbols.union(.alphanumerics)
if !allowedSymbols.isSuperset(of: CharacterSet(safeCharactersIn: name)) {
return [
Expand Down

0 comments on commit fc5f1f2

Please sign in to comment.