karan / joe

:running: A .gitignore magician in your command line

Home Page:http://karan.github.io/joe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested .idea directories created by JetBrains Rider IDE not recognized

chronodm opened this issue · comments

The JetBrains Rider IDE creates nested .idea configuration directories under the project name:

.idea
└── .idea.MyProject
    ├── .idea
    │   ├── .name
    │   ├── modules.xml
    │   ├── vcs.xml
    │   └── workspace.xml
    └── riderModule.iml

Files in the inner .idea/.idea.MyProject/.idea aren't caught by the .idea lines in the joe-generated JetBrains .gitignore, so (e.g.) .idea/.idea.MyProject/.idea/workspace.xml gets added. I worked around this by prefacing the .idea lines in my .gitignore with **, thus:

# User-specific stuff:
**/.idea/workspace.xml
**/.idea/tasks.xml
**/.idea/dictionaries
**/.idea/vcs.xml
**/.idea/jsLibraryMappings.xml

# Sensitive or high-churn files:
**/.idea/dataSources.ids
**/.idea/dataSources.xml
**/.idea/dataSources.local.xml
**/.idea/sqlDataSources.xml
**/.idea/dynamic.xml
**/.idea/uiDesigner.xml

# Gradle:
**/.idea/gradle.xml
**/.idea/libraries

# Mongo Explorer plugin:
**/.idea/mongoSettings.xml