File: rules

package info (click to toggle)
node-eslint-plugin-requirejs 4.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 916 kB
  • sloc: javascript: 4,677; perl: 48; makefile: 31; sh: 6
file content (43 lines) | stat: -rwxr-xr-x 1,344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f

# generate documentation unless nodoc requested
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
DOCS = README.html README.txt
endif

ESLINT = eslint --format tap
MOCHA = mocha --reporter tap

ESLINT_BROKEN = \
 lib/utils/rjs.js \
 lib/utils/ast.js \
 lib/rules/amd-function-arity.js \
 lib/rules/sort-amd-paths.js

override_dh_auto_build: $(DOCS)

override_dh_auto_test:
	$(strip find lib tests/lib -type f -name '*.js' \
		$(patsubst %,-not -path '%',$(ESLINT_BROKEN)) \
		-exec $(ESLINT) {} +)
	$(ESLINT) $(ESLINT_BROKEN) | debian/tap-todo \
		'lib/utils/rjs.js::Arrow function used ambiguously with a conditional expression.*line: 82.*ruleId: no-confusing-arrow' \
		"lib/utils/ast.js::Assignment to function parameter 'node'.*line: 151.*ruleId: no-param-reassign" \
		'lib/rules/amd-function-arity.js::Arrow function used ambiguously with a conditional expression.*line: 82.*ruleId: no-confusing-arrow' \
		'lib/rules/sort-amd-paths.js::Arrow function used ambiguously with a conditional expression.*line: 74.*ruleId: no-confusing-arrow'
	$(MOCHA) tests/lib/*/*.js

override_dh_installdocs:
	dh_installdocs --all -- $(DOCS)

override_dh_clean:
	dh_clean -- $(DOCS)

%.html: %.md
	pandoc --from gfm-raw_html --to html --standalone --output $@ $<

%.txt: %.md
	pandoc --from gfm-raw_html --to plain --output $@ $<

%:
	dh $@