Usage • Contributing • License
A maintained collection of templates for usage with ProjLint's file_content_template option.
In your .projlint.yml add a new file_content_template section:
- file_content_template:
matching:
.swiftlint.yml:
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/Community/App/ProjLint.stencil"
parameters:
rightholder: "Jamit Labs GmbH"Note that any parameters will be replaced within the Stencil file. E.g. in the above example all {{ rightholder }} entries would be replaced. You can also use the <:key:> structure to reference any shared variables within your configuration file.
Here's a complete working example content for a .projlint.yml file:
shared_variables:
rightholder: Jamit Labs GmbH
project_name: NewProjectTemplate
rules:
- file_content_template:
matching:
.swiftlint.yml:
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/JamitLabs/App/SwiftLint.stencil"
parameters:
rightholder: <:rightholder:>
.projlint.yml:
template_url: "https://raw.githubusercontent.com/JamitLabs/ProjLintTemplates/master/JamitLabs/App/ProjLint.stencil"
parameters:
rightholder: <:rightholder:>
project_name: <:project_name:>See the file CONTRIBUTING.md.
This library is released under the MIT License. See LICENSE for details.
