mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Extend validate-modules to check the next to last line (#34819)
* Add validation for the next to last line of a module * Fix last error code * Reduce to a single conditional * Fix conditionals * Move the final warnings statement to main() in mysql_replication
This commit is contained in:
@@ -70,6 +70,7 @@ Errors
|
||||
``DOCUMENTATION``/``EXAMPLES``/``RETURN``/``ANSIBLE_METADATA``
|
||||
107 Imports should be directly below ``DOCUMENTATION``/``EXAMPLES``/``RETURN``/``ANSIBLE_METADATA``
|
||||
108 GPLv3 license header should be the :ref:`short form <copyright>` for new modules
|
||||
109 Next to last line is not ``if __name__ == "__main__":``
|
||||
..
|
||||
--------- -------------------
|
||||
**2xx** **Imports**
|
||||
|
||||
Reference in New Issue
Block a user