0

I am trying to allow TeamCity do JavaScript code inspection by following this tutorial: https://blog.jetbrains.com/teamcity/2012/06/javascript-code-inspection-server-side/

The problem is that the first step tells me to Share Scope in WebStorm and then commit it to source control. I have .idea/* added to gitignore file but right underneath to NOT ignore .idea/scopes/* where the necessary .idea/scopes/JavaScript.xml lives.

So eventually it looks like this

.idea/*
!.idea/scopes/*

Even with this added to gitignore I still cannot commit my JavaScript.xml file. Has anyone came across this and knows how to fix/commit it?

It looks like the problem is with the !.idea/scopes/* bit because after running git status --ignored I can see .idea/ on the list

LazioTibijczyk
  • 1,701
  • 21
  • 48

2 Answers2

0

Try adding a slash before .idea

/.idea/*
!/.idea/scopes/*
Angelo Ortega
  • 441
  • 4
  • 9
0

git add -f .idea/scopes did the job

LazioTibijczyk
  • 1,701
  • 21
  • 48
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/20555367) – Greenstick Aug 10 '18 at 17:29
  • I am the author and this fixed my problem. File appeared in 'Files to commit' – LazioTibijczyk Aug 14 '18 at 08:39