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

module-folder-structure: add fix capability #37

Open
flaviostutz opened this issue Nov 4, 2022 · 2 comments
Open

module-folder-structure: add fix capability #37

flaviostutz opened this issue Nov 4, 2022 · 2 comments
Assignees

Comments

@flaviostutz
Copy link
Owner

flaviostutz commented Nov 4, 2022

When a "simple" folder structure is required, "fix" creates those folders.

Example:

{
  "rules": {
    "module-folder-structure": {
      "strict": false,
      "folders": [
        "src",
        "libs/**/release"
      ]
    }
  }
}

In case a module has no folders in it:

  • Folder "src" would be created (it will fix the problem)
  • Folder "libs" would be created to indicate the "direction" of the structure (but won't fix the problem, which is ok)

In case a module has folder "src" and "libs/mylib":

  • Folder "libs/mylib/release" is created (it will fix the problem)

The overall idea with the rules is to iteratively work with the dev, in the loop. It shows an issue, the dev fix something, it fixes another and shows new issues on and on... until all is fixed. This will be nice specially when we have our VSCode plugin #12

@sergioflores-j @tiagostutz what do you think?

@tiagostutz
Copy link
Collaborator

Nice one.!! I'll tackle that on my open source friday!

@tiagostutz tiagostutz self-assigned this Nov 4, 2022
@flaviostutz
Copy link
Owner Author

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants