-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
[WIP] Adds a template system for local, remote & github configs #37
base: main
Are you sure you want to change the base?
Conversation
38d5659
to
d64165a
Compare
a845804
to
25f3547
Compare
25f3547
to
781274d
Compare
Here is an overview of what got changed by this pull request: Issues
======
- Added 3
Clones added
============
- Tests/AnyLintTests/StatisticsTests.swift 4
See the complete overview on Codacy |
), | ||
] | ||
) { filePaths in | ||
let violations = try! TemplateChecker(source: .local(filePaths[0]), runOnly: nil, exclude: nil, logDebugLevel: false).performCheck() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Force tries should be avoided.
} | ||
|
||
func testPerformWithRemoteSource() { | ||
let violations = try! TemplateChecker( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: Force tries should be avoided.
static var allTests: [(String, (TemplateCheckerTests) -> () throws -> Void)] = [ | ||
("testPerformWithLocalSource", testPerformWithLocalSource), | ||
("testPerformWithRemoteSource", testPerformWithRemoteSource), | ||
("testPerformWithGithubSource", testPerformWithGithubSource) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fae4a6f
to
4c21d88
Compare
Fixes #2.
Proposed Changes
runChecks
method to run local, remote or community config files.reportResultsToFile
wrapper method for template config files.