Skip to content

[WIP] Adds a template system for local, remote & github configs#37

Open
Jeehut wants to merge 16 commits intomainfrom
wip/cg_template-system
Open

[WIP] Adds a template system for local, remote & github configs#37
Jeehut wants to merge 16 commits intomainfrom
wip/cg_template-system

Conversation

@Jeehut
Copy link
Member

@Jeehut Jeehut commented Jun 12, 2020

Fixes #2.

Proposed Changes

  • Adds a new runChecks method to run local, remote or community config files.
  • Adds a new reportResultsToFile wrapper method for template config files.

@Jeehut Jeehut changed the title Adds a template system for local, remote & community configs [WIP] Adds a template system for local, remote & community configs Jun 12, 2020
@Jeehut Jeehut changed the title [WIP] Adds a template system for local, remote & community configs [WIP] Adds a template system for local, remote & github configs Jun 13, 2020
@Jeehut Jeehut force-pushed the wip/cg_template-system branch from 38d5659 to d64165a Compare June 14, 2020 21:32
@Jeehut Jeehut force-pushed the wip/cg_template-system branch 4 times, most recently from a845804 to 25f3547 Compare June 15, 2020 10:56
@Jeehut Jeehut force-pushed the wip/cg_template-system branch from 25f3547 to 781274d Compare June 15, 2020 11:23
@Jeehut Jeehut changed the title [WIP] Adds a template system for local, remote & github configs Adds a template system for local, remote & github configs Jun 15, 2020
Copy link
Member Author

Jeehut commented Jun 15, 2020

Codacy 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()
Copy link
Member Author

Choose a reason for hiding this comment

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

}

func testPerformWithRemoteSource() {
let violations = try! TemplateChecker(
Copy link
Member Author

Choose a reason for hiding this comment

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

static var allTests: [(String, (TemplateCheckerTests) -> () throws -> Void)] = [
("testPerformWithLocalSource", testPerformWithLocalSource),
("testPerformWithRemoteSource", testPerformWithRemoteSource),
("testPerformWithGithubSource", testPerformWithGithubSource)
Copy link
Member Author

Choose a reason for hiding this comment

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

@Jeehut Jeehut changed the title Adds a template system for local, remote & github configs [WIP] Adds a template system for local, remote & github configs Jun 15, 2020
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.

Add template system

1 participant