Skip to content

Fixed exception in Scala file parsing:#865

Merged
aure merged 1 commit intoAudioKit:developfrom
marcus-w-hobbs:aktuningtable_proposal
Apr 28, 2017
Merged

Fixed exception in Scala file parsing:#865
aure merged 1 commit intoAudioKit:developfrom
marcus-w-hobbs:aktuningtable_proposal

Conversation

@marcus-w-hobbs
Copy link
Contributor

Fixes bug reported by Allan Hoeltje:
AKPolyphonicNode.tuningTable.numberField(fromScalaString:"! ptolemy.scl\n!\nPtolemy Intense Syntonon\n 7\n!\n 9/8\n 5/4\n 4/3\n 3/2\n 5/3\n 15/8\n 2/1\n")
// now correctly parses numberField: [1.0, 1.125, 1.25, 1.3333333333333333, 1.5, 1.6666666666666667, 1.875]

AKPolyphonicNode.tuningTable.numberField(fromScalaString:"! ptolemy.scl\n!\nPtolemy Intense Syntonon\n 7\n!\n 9/8\n 5/4\n 4/3\n 3/2\n 5/3\n 15/8\n 2/1\n")
// now correctly parses numberField: [1.0, 1.125, 1.25, 1.3333333333333333, 1.5, 1.6666666666666667, 1.875]
}

fileprivate func numberField(fromScalaString rawStr: String?) -> [Element]? {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)


fileprivate func numberField(fromScalaString rawStr: String?) -> [Element]? {


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vertical Whitespace Violation: Limit vertical whitespace to a single empty line. Currently 3. (vertical_whitespace)
Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

fileprivate func numberField(fromScalaString rawStr: String?) -> [Element]? {


open func numberField(fromScalaString rawStr: String?) -> [Element]? {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cyclomatic Complexity Violation: Function should have complexity 10 or less: currently complexity equals 22 (cyclomatic_complexity)
Function Body Length Violation: Function body should span 100 lines or less excluding comments and whitespace: currently spans 105 lines (function_body_length)

@aure aure merged commit 8027882 into AudioKit:develop Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants