Commit 2645ac18 authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Increased the scope of Santizer to include SCP urls

Also brought the Sanitizer spec over and added additional coverage
for SCP urls.
parent efda55a3
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+3 −0
Original line number Diff line number Diff line
Gemfile.lock
*.gem
node_modules

.gitlab-ci.yml

0 → 100644
+26 −0
Original line number Diff line number Diff line
.test_template: &test_definition
  stage: test
  script:
    - bundle install
    - bundle exec rake verify build install

test:2.6:
  image: ruby:2.6
  <<: *test_definition

test:2.5:
  image: ruby:2.5
  <<: *test_definition

test:2.4:
  image: ruby:2.4
  <<: *test_definition

deploy:
  stage: deploy
  script:
    - "printf '---\n:rubygems_api_key: $RUBYGEMS_API_KEY\n' > ~/.gem/credentials"
    - bundle install
    - bundle exec rake release[remote]
  only:
    - tags

.rspec

0 → 100644
+2 −0
Original line number Diff line number Diff line
--color
--require ./spec/spec_helper

.rubocop.yml

0 → 100644
+173 −0
Original line number Diff line number Diff line
AllCops:
  TargetRubyVersion: 2.4

require:
  - rubocop-rspec

Style/HashSyntax:
  EnforcedStyle: no_mixed_keys

Style/SymbolLiteral:
  Enabled: No

Style/TrailingCommaInArguments:
  Enabled: No # Delegated to rufo

Style/TrailingCommaInHashLiteral:
  Enabled: No # Delegated to rufo

Style/FrozenStringLiteralComment:
  EnforcedStyle: always

Style/TrailingCommaInArrayLiteral:
  EnforcedStyleForMultiline: comma

Style/StringLiterals:
  EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
  EnforcedStyle: double_quotes

Layout/MultilineMethodCallIndentation:
  Enabled: No

Layout/SpaceInLambdaLiteral:
  Enabled: No

Layout/SpaceInsideBlockBraces:
  Enabled: No

Layout/FirstParameterIndentation:
  Enabled: No

Metrics/AbcSize:
  Enabled: true
  Max: 54.28

Metrics/BlockLength:
  Enabled: false

Metrics/BlockNesting:
  Enabled: true
  Max: 4

Metrics/ClassLength:
  Enabled: false

Metrics/CyclomaticComplexity:
  Enabled: true
  Max: 13

Metrics/LineLength:
  Enabled: false

Metrics/MethodLength:
  Enabled: false

Metrics/ModuleLength:
  Enabled: false

Metrics/ParameterLists:
  Enabled: true
  Max: 8

Metrics/PerceivedComplexity:
  Enabled: true
  Max: 14

RSpec/AnyInstance:
  Enabled: false

RSpec/BeEql:
  Enabled: true

RSpec/BeforeAfterAll:
  Enabled: false

RSpec/DescribeClass:
  Enabled: false

RSpec/DescribeMethod:
  Enabled: false

RSpec/DescribeSymbol:
  Enabled: true

RSpec/DescribedClass:
  Enabled: true

RSpec/EmptyExampleGroup:
  Enabled: true

RSpec/ExampleLength:
  Enabled: false
  Max: 5

RSpec/ExampleWording:
  Enabled: false
  CustomTransform:
    be: is
    have: has
    not: does not
  IgnoredWords: []

RSpec/ExpectActual:
  Enabled: true

RSpec/ExpectOutput:
  Enabled: true

RSpec/FilePath:
  Enabled: true
  IgnoreMethods: true

RSpec/Focus:
  Enabled: true

RSpec/HookArgument:
  Enabled: true
  EnforcedStyle: implicit

RSpec/ImplicitExpect:
  Enabled: true
  EnforcedStyle: is_expected

RSpec/InstanceVariable:
  Enabled: false

RSpec/LeadingSubject:
  Enabled: false

RSpec/LetSetup:
  Enabled: false

RSpec/MessageChain:
  Enabled: false

RSpec/MessageSpies:
  Enabled: false

RSpec/MultipleDescribes:
  Enabled: false

RSpec/MultipleExpectations:
  Enabled: false

RSpec/NamedSubject:
  Enabled: false

RSpec/NestedGroups:
  Enabled: false

RSpec/NotToNot:
  EnforcedStyle: not_to
  Enabled: true

RSpec/RepeatedDescription:
  Enabled: false

RSpec/SubjectStub:
  Enabled: false

RSpec/VerifiedDoubles:
  Enabled: false

.ruby-version

0 → 100644
+1 −0
Original line number Diff line number Diff line
ruby-2.5.3
Loading