inspec/lib
eramoto c7e87ca3e3 Unify method in which file content is read across all resources (#2359)
* Create file-check functionality into utility file

There are the similar issues as PR #2302. Almost resources return false
positives when a file does not exist or is not read.

* Replace to file-check functionality
* Fix dh_params and x509_certificate resources

If a file is empty, OpenSSL::PKey::DH and OpenSSL::X509::Certificate have
raised an exception and have skipped the inspection. Thus x509_certificate
and dh_params resources are not allowed to read a empty file.

* to_s of shadow expects filters is not nil
* Remove workaround of sshd_config

Removes the workaround of sshd_config since Travis CI fails due to a bug
of dev-sec/ssh-baseline and the PR #100 will fix it.

* Use init block variable in methods

Signed-off-by: ERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>
2018-03-22 08:25:45 -04:00
..
bundles Fix typo in some docs (#2841) 2018-03-20 08:43:30 -04:00
fetchers Rubocop: disable GuardClause and ClassLength (#2382) 2017-12-07 20:22:55 +01:00
inspec Bump version to 2.1.4 by Expeditor 2018-03-21 17:53:35 +00:00
matchers Remove deprecations for InSpec 2.0 (#2506) 2018-02-08 11:05:21 +01:00
resource_support Skelatal resource: aws_s3_bucket_object (#2620) 2018-03-19 13:10:17 -04:00
resources Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
source_readers Bump Rubocop to 0.49.1 (#2323) 2017-11-21 08:49:41 +01:00
utils Unify method in which file content is read across all resources (#2359) 2018-03-22 08:25:45 -04:00
inspec.rb Add new "reporter" system (replacement for "formatters"), support multiple reporters per run (#2464) 2018-02-08 10:06:58 +01:00