-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from myii/feat/add-powerdns-formula
feat(powerdns): add initial platforms and test structure
- Loading branch information
Showing
4 changed files
with
73 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
# General overrides used across formulas in the org | ||
{%- set LLL = 'Layout/LineLength' %} | ||
{{ LLL }}: | ||
{%- set rbcp_LLL = rubocop.Cops.get(LLL) %} | ||
{%- if rbcp_LLL.Max == rbcp_LLL.Bugbear %} | ||
# Increase from default of `{{ rbcp_LLL.Default }}` | ||
# Based on /~https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`) | ||
{%- endif %} | ||
Max: {{ rbcp_LLL.Max }} | ||
{%- set MBL = 'Metrics/BlockLength' %} | ||
{{ MBL }}: | ||
{%- set rbcp_MBL = rubocop.Cops.get(MBL) %} | ||
ExcludedMethods: | ||
{%- for method in rbcp_MBL.ExcludedMethods %} | ||
- {{ method }} | ||
{%- endfor %} | ||
|
||
{%- if rubocop.AllCops %} | ||
|
||
# General settings across all cops in this formula | ||
AllCops: | ||
{#- This is purposefully simplistic for the time being, | ||
until (if ever) more advanced configuration is necessary #} | ||
{%- if rubocop.AllCops.Exclude %} | ||
# Files to ignore completely | ||
Exclude: | ||
{%- for path in rubocop.AllCops.Exclude %} | ||
- {{ path }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- endif %} | ||
|
||
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config` | ||
{%- for cop, config in rubocop.Cops.items() if cop not in [LLL, MBL] %} | ||
{{ cop }}: | ||
{#- This is purposefully simplistic for the time being, | ||
until (if ever) more advanced configuration is necessary #} | ||
{%- for k, v in config.items() %} | ||
{{ k }}: {{ v }} | ||
{%- endfor %} | ||
{%- endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters