Skip to content

Commit af883f3

Browse files
James Stockschris-rock
authored andcommitted
Declare control source as UTF-8 encoding.
Fixes #33 There are a number of issues open and closed for encoding in InSpec profiles https://github.com/inspec/inspec/issues?utf8=%E2%9C%93&q=is%3Aissue+encoding To work in all versions of InSpec currently supported, this profile should keep the `# encoding: UTF-8` declaration. Signed-off-by: James Stocks <jstocks@chef.io>
1 parent 17d94bc commit af883f3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ Metrics/PerceivedComplexity:
2424
Max: 10
2525
Metrics/AbcSize:
2626
Max: 30
27+
# Some releases of InSpec have issues with character encoding unless the encoding is declared.
28+
Style/Encoding:
29+
Enabled: false

controls/nginx_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# encoding: UTF-8
2+
13
# Copyright 2015, Patrick Muench
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)