ansible/test/sanity/code-smell
Julien Champseix 19dc267e4c Allow specifying the output encoding in the template module (#42171)
Allow specifying the source and destination files' encodings in the template module

* Added output_encoding to the template module, default to utf-8
* Added documentation for the new variables
* Leveraged the encoding argument on to_text() and to_bytes() to keep the implementation as simple as possible
* Added integration tests with files in utf-8 and windows-1252 encodings, testing all combinations
* fix bad smell test by excluding windows-1252 files from the utf8 checks
* fix bad smell test by excluding valid files from the smart quote test
2018-07-25 13:10:40 -07:00
..
azure-requirements.json Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
azure-requirements.py More code-smell sanity test updates. (#36830) 2018-02-28 00:50:00 -08:00
boilerplate.json Update more code-smell tests. (#36570) 2018-02-22 08:08:29 -08:00
boilerplate.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
changelog.json Implement new changelog generator. 2018-06-05 19:08:15 -07:00
changelog.py Implement new changelog generator. 2018-06-05 19:08:15 -07:00
configure-remoting-ps1.json Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
configure-remoting-ps1.py Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
docs-build.json Make docs-build sanity test disabled by default. 2018-05-09 17:55:00 -07:00
docs-build.py Last docs link fixes (#39391) 2018-04-27 13:21:39 -05:00
empty-init.json Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
empty-init.py Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
line-endings.json Complete updates of remaining code-smell tests. (#37743) 2018-03-21 12:02:06 -07:00
line-endings.py Tolerate win line endings on windows module_util load (#37291) 2018-04-06 07:13:31 +10:00
no-assert.json Add support for enhanced code-smell tests. (#36332) 2018-02-20 13:37:23 -08:00
no-assert.py Adds the ipaddress compat library backport from Python 3.x (#42265) 2018-07-17 11:37:23 -07:00
no-basestring.json Upgrade more code-smell tests. (#36560) 2018-02-21 20:09:13 -08:00
no-basestring.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
no-dict-iteritems.json Upgrade more code-smell tests. (#36560) 2018-02-21 20:09:13 -08:00
no-dict-iteritems.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
no-dict-iterkeys.json Upgrade more code-smell tests. (#36560) 2018-02-21 20:09:13 -08:00
no-dict-iterkeys.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
no-dict-itervalues.json Upgrade more code-smell tests. (#36560) 2018-02-21 20:09:13 -08:00
no-dict-itervalues.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
no-get-exception.json Upgrade more code-smell tests. (#36560) 2018-02-21 20:09:13 -08:00
no-get-exception.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
no-illegal-filenames.json Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
no-illegal-filenames.py Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
no-smart-quotes.json Complete updates of remaining code-smell tests. (#37743) 2018-03-21 12:02:06 -07:00
no-smart-quotes.py Allow specifying the output encoding in the template module (#42171) 2018-07-25 13:10:40 -07:00
no-tests-as-filters.json Add support for enhanced code-smell tests. (#36332) 2018-02-20 13:37:23 -08:00
no-tests-as-filters.py Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
no-underscore-variable.json Update more code-smell tests. (#36570) 2018-02-22 08:08:29 -08:00
no-underscore-variable.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
no-unicode-literals.json More code-smell sanity test updates. (#36830) 2018-02-28 00:50:00 -08:00
no-unicode-literals.py Adds the ipaddress compat library backport from Python 3.x (#42265) 2018-07-17 11:37:23 -07:00
replace-urlopen.json Update more code-smell tests. (#36570) 2018-02-22 08:08:29 -08:00
replace-urlopen.py Add requests.Session like class (#37622) 2018-06-01 11:44:20 -05:00
required-and-default-attributes.json Upgrade more code-smell tests. (#36560) 2018-02-21 20:09:13 -08:00
required-and-default-attributes.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00
shebang.json Complete updates of remaining code-smell tests. (#37743) 2018-03-21 12:02:06 -07:00
shebang.py Fix shebangs and file modes and update tests. (#40563) 2018-05-22 14:25:36 -07:00
skip.txt Upgrade more code-smell tests. (#36560) 2018-02-21 20:09:13 -08:00
test-constraints.json Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
test-constraints.py Overhaul additional sanity tests. (#36803) 2018-02-27 15:05:39 -08:00
use-argspec-type-path.json Update more code-smell tests. (#36570) 2018-02-22 08:08:29 -08:00
use-argspec-type-path.py expand user before calling abspath (#40196) 2018-06-13 21:18:02 -04:00
use-compat-six.json Update more code-smell tests. (#36570) 2018-02-22 08:08:29 -08:00
use-compat-six.py Pass code-smell paths on stdin. 2018-02-27 00:36:16 -08:00