Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout cop でコード内に全角文字があるときの誤検知(偽陽性)を修正する #18

Open
onk opened this issue Nov 12, 2017 · 0 comments
Labels

Comments

@onk
Copy link
Collaborator

onk commented Nov 12, 2017

ascii = {
  "a"  => 1,
  "ab" => 2,
}

fullwidth = {
  "あ"   => 1,
  "あい" => 2,
}
$ rubocop --only Layout/SpaceAroundOperators -D hoge.rb
Inspecting 1 file
C

Offenses:

hoge.rb:7:9: C: Layout/SpaceAroundOperators: Operator => should be surrounded by a single space.
  "あ"   => 1,
        ^^

1 file inspected, 1 offense detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants