File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ matrix:
11
11
before_install :
12
12
- " echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
13
13
- rake --version
14
- # Uncomment when we have fewer shipping msftidy warnings.
15
- # Merge committers will still be checking, just not autofailing.
16
- # - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
17
- # - ls -la ./.git/hooks
18
- # - ./.git/hooks/post-merge
14
+ # Fail build if msftidy is not successful
15
+ - ln -sf ../../tools/dev/pre-commit-hook.rb ./.git/hooks/post-merge
16
+ - ls -la ./.git/hooks
17
+ - ./.git/hooks/post-merge
19
18
before_script :
20
19
- cp config/database.yml.travis config/database.yml
21
20
- bundle exec rake --version
Original file line number Diff line number Diff line change @@ -531,12 +531,6 @@ def check_lines
531
531
error ( "Writes to stdout" , idx )
532
532
end
533
533
534
- # You should not change datastore in code. See
535
- # https://github.com/rapid7/metasploit-framework/issues/3853
536
- if ln =~ /(?<!\. )datastore\[ ["'][^"']+["']\] \s *(=|<<)(?![=~>])/
537
- info ( "datastore is modified in code with '#{ Regexp . last_match ( 1 ) } ': #{ ln } " , idx )
538
- end
539
-
540
534
# do not read Set-Cookie header (ignore commented lines)
541
535
if ln =~ /^(?!\s *#).+\[ ['"]Set-Cookie['"]\] (?!\s *=[^=~]+)/i
542
536
warn ( "Do not read Set-Cookie header directly, use res.get_cookies instead: #{ ln } " , idx )
You can’t perform that action at this time.
0 commit comments