MoritzWittwer / week5-challenge

MIT License
0 stars 0 forks source link

Linting #1

Open therod opened 2 years ago

therod commented 2 years ago

What is Linting?

Linting is the automated checking of your source code for programmatic and stylistic errors. This is done by using a lint tool (otherwise known as linter). A lint tool is a basic static code analyzer. The term linting originally comes from a Unix utility for C.

https://github.com/MoritzWittwer/week5-challenge/blob/8a6c3699bcc7eb028a90eec88ffdfb090c9dce07/guess_the_number.rb#L5

Beim zuweisen von variablen verwenden wir immer einen abstand zwischen der variabel, dem "=" und dem zugewiesenen wert.

Konkret: eingabe = gets.chomp.to_i

Kannst du mal versuchen RuboCop für Visual Studio code zu installieren? Der gibt dir dann automatisch solche "best practice" Style Vorschläge.