check for presence of config file as mentioned in the README

Bug #1939438 reported by Garrett Neugent
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Lint
Fix Released
Wishlist
Marcus Boden

Bug Description

Currently, the README mentions a standard place for configuration options(~/.config/juju-lint/config.yaml ), however, when invoking juju-lint, it requires the config file to be passed in explicitly. It would be nice if juju-lint can check for the presence automatically if not invoked explicitly.

Example failure:

$ juju-lint 2021_08_10_bundle.yaml -t openstack --output-dir juju-lint-output
2021-08-10 16:46:33 [ERROR] Cloud not locate rules file lint-rules.yaml

instead of:

$ juju-lint 2021_08_10_bundle.yaml -t openstack --output-dir juju-lint-output -c /snap/juju-lint/current/contrib/canonical-rules.yaml

rules is an entry in the config, which points to /snap/juju/.... as the location for the rules file. It woudld be great if this could get detected and used automatically.

Related branches

Andrea Ieri (aieri)
Changed in juju-lint:
importance: Undecided → Wishlist
Changed in juju-lint:
assignee: nobody → Marcus Boden (marcusboden)
Changed in juju-lint:
status: New → Fix Committed
Tianqi Xiao (txiao)
Changed in juju-lint:
milestone: none → 1.0.5
Changed in juju-lint:
milestone: 1.0.5 → none
Changed in juju-lint:
milestone: none → 1.0.6
Changed in juju-lint:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.