To contribute to ansible-lint, please use pull requests on a branch of your own fork.
After creating your fork on github, you can do:
git clone git@github.com:yourname/ansible-lint
cd ansible-lint
git checkout -b your-branch-name
DO SOME CODING HERE
git add your new files
git commit
git push origin your-branch-name
You will then be able to create a pull request from your commit.
All fixes to core functionality (i.e. anything except rules or examples) should be accompanied by tests that fail prior to your change and succeed afterwards.
Feel free to raise issues in the repo if you don't feel able to contribute a code fix.
ansible-lint is flake8 compliant with max-line-length
set to 100
(see setup.cfg).
ansible-lint works with both Ansible 1.9 and Ansible 2.0 onwards. This will be the case for the foreseeable future, so please ensure all contributions work with both.
Automated tests will be run against all PRs for flake8 compliance and Ansible
compatibility - to check before pushing commits, just use tox
.