Skip to content
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

Support module paths in append_rules #1216

Merged
merged 6 commits into from
Dec 3, 2019

Conversation

zroger
Copy link
Contributor

@zroger zroger commented Nov 22, 2019

Addresses Issue #1209

This makes it so that the append_rules option accepts module import paths as well as directory paths. If the value is a directory, then the existing loading operation takes place. Otherwise, the path is used as an import path, and the resulting module is scanned for rules classes in the same way as any module found by the directory scanner.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@zroger zroger changed the title Append rules Support module paths in append_rules Nov 22, 2019
@codecov
Copy link

codecov bot commented Nov 22, 2019

Codecov Report

Merging #1216 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1216      +/-   ##
==========================================
- Coverage   87.72%   87.71%   -0.01%     
==========================================
  Files         136      136              
  Lines        8062     8069       +7     
  Branches     1984     1983       -1     
==========================================
+ Hits         7072     7078       +6     
- Misses        584      586       +2     
+ Partials      406      405       -1
Impacted Files Coverage Δ
src/cfnlint/core.py 61.26% <100%> (+0.71%) ⬆️
src/cfnlint/helpers.py 85.02% <100%> (-0.25%) ⬇️
src/cfnlint/rules/__init__.py 88.49% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 988c1d7...23ebe26. Read the comment docs.

@kddejong kddejong self-requested a review November 26, 2019 15:09
@kddejong kddejong self-assigned this Nov 26, 2019
@kddejong
Copy link
Contributor

kddejong commented Dec 2, 2019

Very cool work. Should have this in shortly.

@kddejong kddejong merged commit 184b674 into aws-cloudformation:master Dec 3, 2019
@mithun mithun mentioned this pull request Jan 12, 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.

2 participants