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

Create a Rubocop cop for ordering instructions in class (e.g. Models) #499

Closed
Goose97 opened this issue Jan 5, 2024 · 0 comments · Fixed by #509
Closed

Create a Rubocop cop for ordering instructions in class (e.g. Models) #499

Goose97 opened this issue Jan 5, 2024 · 0 comments · Fixed by #509
Assignees

Comments

@Goose97
Copy link
Contributor

Goose97 commented Jan 5, 2024

Why

We have a comprehensive set of style guides in the Compass. Sometimes, it hard to keep them all of your head why developing. Turning it into a custom Rubocop rules can lower the cognitive overhead

  • Implement a custom Rubocop to validate instructions order for class (e.g. Models)

Who Benefits?

Developers on standard admin projects.

@Goose97 Goose97 self-assigned this Jan 5, 2024
Goose97 added a commit that referenced this issue Apr 9, 2024
Goose97 added a commit that referenced this issue Apr 9, 2024
Goose97 added a commit that referenced this issue Apr 9, 2024
Goose97 added a commit that referenced this issue Apr 9, 2024
Goose97 added a commit that referenced this issue Apr 9, 2024
Goose97 added a commit that referenced this issue Apr 11, 2024
Goose97 added a commit that referenced this issue Apr 11, 2024
Goose97 added a commit that referenced this issue Apr 11, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 29, 2024
…Models) (#509)

* [#499] Implement custom Rubocop rule to enforce class template

* [#499] Replace pluck with map

* [#499] Improve error message

* [#499] Fix linter errors

* [#499] Ignore custom rubocop code while running Rubocop on generated projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant