Merge ~ziyiwang/juju-lint:lp1851485 into juju-lint:master
Proposed by
Celia Wang
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Haw Loeung | ||||
Proposed branch: | ~ziyiwang/juju-lint:lp1851485 | ||||
Merge into: | juju-lint:master | ||||
Diff against target: |
206 lines (+182/-0) 2 files modified
contrib/includes/bindings.yaml (+137/-0) jujulint/lint.py (+45/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Troup (community) | Needs Fixing | ||
Review via email: mp+412782@code.launchpad.net |
Commit message
Add bindings check
1). only check principal charms
2). if bindings are not explicitly set (which means the bindings are
default value "alpha"), print warning message
LP: #1851485
To post a comment you must log in.
Test result:
(juju-lint-test) ziyiwang@selkie:~$ juju-lint -t openstack ../telefonica- func-211202. yaml -c contrib/ includes/ bindings. yaml gbded6f9. d20211204 starting... .config/ juju-lint includes/ bindings. yaml
2021-12-03 08:47:24 [INFO] juju-lint version 1.0.2.dev57+
* Config directory: /home/ziyiwang/
* Rules file: contrib/
* Log level: info
2021-12-03 08:47:24 [INFO] [../telefonica- func-211202. yaml] Linting manual file... func-211202. yaml] [manual/manual] Binding for application ubuntu- controllers- stub has not been set.
2021-12-03 08:47:25 [WARNING] [../telefonica-