-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: wdower <[email protected]>
- Loading branch information
Showing
54 changed files
with
394 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
AllCops: | ||
Exclude: | ||
- "libraries/**/*" | ||
|
||
Layout/LineLength: | ||
Max: 1500 | ||
AllowURI: true | ||
IgnoreCopDirectives: true | ||
|
||
Naming/FileName: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Max: 1000 | ||
|
||
Lint/ConstantDefinitionInBlock: | ||
Enabled: false | ||
|
||
# Required for Profiles as it can introduce profile errors | ||
Style/NumericPredicate: | ||
Enabled: false | ||
|
||
Style/WordArray: | ||
Description: "Use %w or %W for an array of words. (https://rubystyle.guide#percent-w)" | ||
Enabled: false | ||
|
||
Style/RedundantPercentQ: | ||
Enabled: true | ||
|
||
Style/NestedParenthesizedCalls: | ||
Enabled: false | ||
|
||
Style/TrailingCommaInHashLiteral: | ||
Description: "https://docs.rubocop.org/rubocop/cops_style.html#styletrailingcommainhashliteral" | ||
Enabled: true | ||
EnforcedStyleForMultiline: no_comma | ||
|
||
Style/TrailingCommaInArrayLiteral: | ||
Enabled: true | ||
EnforcedStyleForMultiline: no_comma | ||
|
||
Style/BlockDelimiters: | ||
Enabled: false | ||
|
||
Lint/AmbiguousBlockAssociation: | ||
Enabled: false | ||
|
||
Metrics/BlockNesting: | ||
Enabled: false | ||
|
||
Lint/ShadowingOuterLocalVariable: | ||
Enabled: false | ||
|
||
Style/FormatStringToken: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# frozen_string_literal: true | ||
|
||
# !/usr/bin/env rake | ||
|
||
require 'rake/testtask' | ||
require 'rubocop/rake_task' | ||
|
||
namespace :inspec do | ||
desc 'validate the inspec profile' | ||
task :check do | ||
system 'bundle exec inspec check .' | ||
end | ||
end | ||
|
||
begin | ||
RuboCop::RakeTask.new(:lint) do |task| | ||
task.options += %w[--display-cop-names --no-color --parallel] | ||
end | ||
rescue LoadError | ||
puts 'rubocop is not available. Install the rubocop gem to run the lint tests.' | ||
end | ||
|
||
desc 'pre-commit checks' | ||
task pre_commit_checks: [:lint, 'inspec:check'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.