Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fulljson formatter #552

Merged
merged 3 commits into from
Mar 18, 2016
Merged

add fulljson formatter #552

merged 3 commits into from
Mar 18, 2016

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented Mar 18, 2016

This is a separate formatter which will always include all information on controls. For regular json runs this is most likely too noisy.

inspec exec example/profile --format fulljson

snips from example output:

  "examples": [
    {
      "id": "tmp-1.0",
      "title": "Create /tmp directory",
      "desc": "An optional description...",
      "code": "control \"tmp-1.0\" do                        # A unique ID for this control\n  impact 0.7                                # The criticality, if this control fails.\n  title \"Create /tmp directory\"             # A human-readable title\n  desc \"An optional description...\"         # Describe why this is needed\n  ref \"Document A-12\", url: 'http://...'    # Additional references\n\n  describe file('/tmp') do                  # The actual test\n    it { should be_directory }\n  end\nend\n",
      "impact": 0.7,
      "status": "passed",
      "code_desc": "File /tmp should be directory",
      "ref": "examples/profile/controls/example.rb",
      "ref_line": 14,
      "run_time": 0.001749978,
      "start_time": "2016-03-18 02:45:29 +0100"
    }]

  "profiles": [
    {
      "name": "profile",
      "title": "InSpec Example Profile",
      "maintainer": "Chef Software, Inc.",
      "copyright": "Chef Software, Inc.",
...

@arlimus arlimus added the Type: Enhancement Improves an existing feature label Mar 18, 2016
@arlimus arlimus self-assigned this Mar 18, 2016
@arlimus
Copy link
Contributor Author

arlimus commented Mar 18, 2016

@vjeffrey this should help you ^^

@chris-rock
Copy link
Contributor

This looks very good. Thanks @arlimus

chris-rock added a commit that referenced this pull request Mar 18, 2016
@chris-rock chris-rock merged commit 914a4bf into master Mar 18, 2016
@chris-rock chris-rock deleted the dr/tags branch March 18, 2016 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants