Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some rules fails to correct or crashes on autocorrect #623

Closed
norio-nomura opened this issue Apr 17, 2016 · 2 comments
Closed

Some rules fails to correct or crashes on autocorrect #623

norio-nomura opened this issue Apr 17, 2016 · 2 comments

Comments

@norio-nomura
Copy link
Collaborator

norio-nomura commented Apr 17, 2016

Failing example test/623.swift:

let a = CGRectInfinite
let b = CGPointZero
let c = CGRectZero
let d = CGSizeZero
let e = CGRectNull
$ swiftlint autocorrect --config ~/.swiftlint-test.yml --path test/623.swift
Loading configuration from '/Users/norio/.swiftlint-test.yml'
Correcting Swift files at path test/623.swift
Correcting '623.swift' (1/1)
/Users/norio/github/SwiftLint/test/623.swift:1:1 Corrected Legacy Constant
/Users/norio/github/SwiftLint/test/623.swift:2:1 Corrected Legacy Constant
/Users/norio/github/SwiftLint/test/623.swift:3:1 Corrected Legacy Constant
/Users/norio/github/SwiftLint/test/623.swift:4:1 Corrected Legacy Constant
/Users/norio/github/SwiftLint/test/623.swift:5:1 Corrected Legacy Constant
Done correcting 1 files!

corrected test/623.swift:

let a = CGRect.infinite
let b = CGPointZero
let c = CGRectZero
let d = CGSizeZero
let e = CGRectNull
@norio-nomura
Copy link
Collaborator Author

Crashing example: #618 (comment)

@norio-nomura
Copy link
Collaborator Author

Updated the example.

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

No branches or pull requests

1 participant