Comments (10)
I think it would be the most appropriate. I'm a bit weary of suggesting people should only submit rubocop validated code; for instance, I think it's worthwhile to have a discussion about quoting style (I get nitpicked all the time about this; I actually use my own convention for this, which I think is worthwhile, and find interesting to discuss to see what others see). Or to give another example, this would conflict with the Weirich block style.
Maybe it would be better to suggest rubocop along with a exercism approved 'minimum' config? I'm sure everyone agrees we should indent 2, not 4 spaces.
from ruby.
Yeah, for Ruby I think that the value of linting is consistency within a team, and a discussion about why you prefer one way over the other. I don't think there should be any sort of style guide (aside from the aforementioned 2 spaces for indentation).
I've never used rubocop, so I don't know how easy it is to turn rules on and off.
from ruby.
You can configure this with a yaml file. You can also easily take an existing codebase (say the current examples), run rubocop on them, and automatically generate an ignore file for all rules which weren't followed.
from ruby.
I'm not sure I want to suggest a default set of styles per se, only suggest that people experiment with rubocop to see what it can do for them, and perhaps suggest some styles they might try (or point to a good blog post on the matter).
from ruby.
Ah yes, that would be a good idea. You can probably point them towards https://github.com/bbatsov/ruby-style-guide now, since it allows multiple interpretations of controversial issues. Then maybe add how they can generate a config they like with --autogen-config
from ruby.
Perfect.
from ruby.
As far as style goes, I think the sentiment you brought up elsewhere was "I want people to say 'Look at Exercism as a source of great style and clarity.'" (which is paraphrased, as I don't remember the exact quote), and so Rubocop as a tool for this to promote standards convention is a good thing. So for the tests, I think using Rubocop to enforce style is a good thing, with the freedom, of course, to ignore those 'cops' based on judgement for the authors. For those participating and learning, it is good to leave the discussion point open for style. (Even tabs vs spaces vs 2 spaces vs 4 or 6 || 8 spaces).
from ruby.
Agreed, the consistency would be useful here.
from ruby.
Also merged #60 so thinking this should be closed as an issue?
from ruby.
Thanks!
from ruby.
Related Issues (20)
- Kindergarten Garden may be harder than defined HOT 4
- [SavingAccounts]: Suggestion: change negative interest rate tests to return positive value HOT 5
- Hacktoberfest 2022 HOT 2
- Binary Search Ruby HOT 3
- TwoBucket - possible error in test suite HOT 4
- Question about function name in "Moviegoer" exercism HOT 2
- Typo in final bird_count test where "whith" should be "with" HOT 2
- Typo in locomotive_engineer instrucions HOT 2
- Locomotive Engineer exercise relies on implicit Ruby behavior HOT 1
- the pythagorean triplet exercise has something wrong with it HOT 1
- Add analyzer for leap HOT 2
- Armstrong exercise tests confusion HOT 7
- 🤖 Sync error for commit 3312f6 HOT 1
- The Symbols document contains a factual error. HOT 2
- Building a training set of tags for ruby HOT 22
- Should the Attendee query methods end in a question mark? HOT 2
- Issue with savings_account interest_rate test HOT 2
- Parallel Letter Frequency times out in the web interface HOT 3
- Correction: Conditional concept document introduction.md HOT 2
- Insufficient test cases in `house` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby.