소스 검색

Disable the Rubocop Style/GuardClause cop (#3316)

There are many spots throughout the codebase which are showing as covered by
specs in the simplecov output -- but which are not actually run, because they
are on the same line as a guard clause.

I plan on fixing some of these issues, but don't want to keep triggering this
rubocop style violation.

My preference would be that we use the PR review process to identify places
where a guard clause might be appropriate, but that we leave this cop turned off
by default.
master
Matt Jankowski 7 년 전
committed by Eugen Rochko
부모
커밋
6267759607
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      .rubocop.yml

+ 3
- 0
.rubocop.yml 파일 보기

@@ -74,6 +74,9 @@ Style/RegexpLiteral:
Style/Lambda:
Enabled: false

Style/GuardClause:
Enabled: false

Rails/HasAndBelongsToMany:
Enabled: false



불러오는 중...
취소
저장