Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Run swift linter #3

Closed
aalemayhu opened this issue Nov 14, 2018 · 2 comments
Closed

Run swift linter #3

aalemayhu opened this issue Nov 14, 2018 · 2 comments

Comments

@aalemayhu
Copy link
Owner

add it to the project and while at it also copy the configuration from the FinniversKit repo

@aalemayhu
Copy link
Owner Author

Alexanders-MacBook-Pro:cantera scanf$ swiftlint
Loading configuration from '.swiftlint.yml'
Configuration contains invalid keys:
["analyzer_rules"]
Linting Swift files at paths 
Linting 'ViewController.swift' (1/4)
Linting 'AppDelegate.swift' (2/4)
Linting 'canteraTests.swift' (3/4)
Linting 'canteraUITests.swift' (4/4)
/Users/scanf/src/github.com/scanf/cantera/canteraUITests/canteraUITests.swift:11:7: error: Type Name Violation: Type name should start with an uppercase character: 'canteraUITests' (type_name)
/Users/scanf/src/github.com/scanf/cantera/canteraTests/canteraTests.swift:12:7: error: Type Name Violation: Type name should start with an uppercase character: 'canteraTests' (type_name)
/Users/scanf/src/github.com/scanf/cantera/cantera/ViewController.swift:18: warning: Vertical Whitespace Violation: Limit vertical whitespace to a single empty line. Currently 2. (vertical_whitespace)
/Users/scanf/src/github.com/scanf/cantera/cantera/ViewController.swift:20: warning: Trailing Newline Violation: Files should have a single trailing newline. (trailing_newline)
/Users/scanf/src/github.com/scanf/cantera/cantera/AppDelegate.swift:16: warning: Vertical Whitespace Violation: Limit vertical whitespace to a single empty line. Currently 2. (vertical_whitespace)
/Users/scanf/src/github.com/scanf/cantera/cantera/AppDelegate.swift:44: warning: Vertical Whitespace Violation: Limit vertical whitespace to a single empty line. Currently 2. (vertical_whitespace)
/Users/scanf/src/github.com/scanf/cantera/cantera/AppDelegate.swift:46: warning: Trailing Newline Violation: Files should have a single trailing newline. (trailing_newline)
Done linting! Found 7 violations, 2 serious in 4 files.

@aalemayhu
Copy link
Owner Author

Will fix the above issues before this issue is closed automatically.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant