Skip to content

Commit

Permalink
Add fixes for indentation checker
Browse files Browse the repository at this point in the history
  • Loading branch information
greeneca committed Feb 12, 2019
1 parent 4e709ff commit d511cfe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
@@ -1,3 +1,7 @@
= 4.16.1 =

- Fixes for indentation checker

= 4.16.0 =

- Allow plugins to validate themselves
Expand Down
2 changes: 2 additions & 0 deletions lib/roku_builder/plugins/indentation_inspector.rb
Expand Up @@ -42,6 +42,8 @@ def set_indentation(line:)
# Don't change indentation
elsif @prev_line =~ /[\{\[\(:]$/
@ind += @count
elsif @prev_line =~ /:\s*\bfunction\b|:\s*\bsub\b/i
@ind += @count
elsif @prev_line =~ /^\s*\bfunction\b|^\s*\bsub\b/i
@ind += @count
elsif @prev_line =~ /^\s*#?if\b|^\s*#?else\b/i
Expand Down
2 changes: 1 addition & 1 deletion lib/roku_builder/plugins/performance_config.json
@@ -1,6 +1,6 @@
[
{
"regex": "\\sas\\s(Object|Boolean|String|Integer|LongInteger|Double|Float|Function|Dynamic)",
"regex": "\\sas\\s+(Object|Boolean|String|Integer|LongInteger|Double|Float|Function|Dynamic)",
"severity": "warning",
"message": "Found function return type. Consider removing"
} ,
Expand Down
2 changes: 1 addition & 1 deletion lib/roku_builder/version.rb
Expand Up @@ -2,5 +2,5 @@

module RokuBuilder
# Version of the RokuBuilder Gem
VERSION = "4.16.0"
VERSION = "4.16.1"
end

0 comments on commit d511cfe

Please sign in to comment.