Skip to content

Commit

Permalink
Generator for asciidoc representation of all ECS fields (#347)
Browse files Browse the repository at this point in the history
This code generates both the index page for the fields section, and the detailed page for each fieldset.

Also in this PR:

- If `short` not set, copy `definition` to it
- If `short` contains \n, fail. Beginning of an ECS linter.
- Beef up the local file imports in tests.
  - autopep8 ignore E402, in order to leave local imports alone
- Create generators/ecs_helpers.py, to start reusing functionality beween generators
  • Loading branch information
webmat authored Mar 20, 2019
1 parent 92614eb commit 37cbd2a
Show file tree
Hide file tree
Showing 19 changed files with 3,768 additions and 550 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fields_legacy:
# Format code and files in the repo.
.PHONY: fmt
fmt: ve
$(FIND) -name '*.py' -exec build/ve/bin/autopep8 --in-place --max-line-length 120 {} \;
$(FIND) -name '*.py' -exec build/ve/bin/autopep8 --ignore E402 --in-place --max-line-length 120 {} \;
go get golang.org/x/tools/cmd/goimports
goimports -w -l -local github.com/elastic $(shell $(FIND) -name '*.go')

Expand Down
Loading

0 comments on commit 37cbd2a

Please sign in to comment.