File: checkScalaAndJavaFiles.sh

package info (click to toggle)
htsjdk 3.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 93,064 kB
  • sloc: java: 116,359; xml: 1,026; sh: 343; python: 27; makefile: 25; javascript: 24
file content (17 lines) | stat: -rwxr-xr-x 511 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

# Check that Scala files only exist in the scala test dir and
# that java files do not reside in the scala test dir

if `find src | grep -v '^src/test/scala' | grep -q '\.scala$' ` ; then
	echo 'Found scala file(s) outside of scala test directory';
	find src | grep -v '^src/test/scala' | grep '\.scala$'
	exit 1; 
fi

if `find src/test/scala | grep -q '\.java$' ` ; then
        echo 'Found java file(s) in scala test directory';
	find src/test/scala | grep '\.java$'        
	exit 1;
fi