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 space after comments hashtag #313

Merged
merged 2 commits into from
Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/cli/docs/gitbook/gitbookCertification.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (openControl *OpenControlGitBook) getControlOrigin(text string, controlOrig

func (openControl *OpenControlGitBook) exportControl(control *ControlGitbook) (string, string) {
key := replaceParentheses(fmt.Sprintf("%s-%s", control.standardKey, control.controlKey))
text := fmt.Sprintf("#%s\n##%s\n", key, control.GetName())
text := fmt.Sprintf("# %s\n## %s\n", key, control.GetName())
if len(control.GetDescription()) > 0 {
text += "#### Description\n"
text += control.GetDescription()
Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/docs/gitbook/gitbookCertification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ var exportControlTests = []exportControlTest{
"NIST-800-53",
"CM-2",
"NIST-800-53-CM-2.md",
`#NIST-800-53-CM-2
##Baseline Configuration
`# NIST-800-53-CM-2
## Baseline Configuration
#### Description
'The organization develops, documents, and maintains under configuration
control, a current baseline configuration of the information system.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-AC-2
##Account Management
# NIST-800-53-AC-2
## Account Management
#### Description
'The organization:
a. Identifies and selects the following types of information system accounts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-AC-6
##Least Privilege
# NIST-800-53-AC-6
## Least Privilege
#### Description
'The organization employs the principle of least privilege, allowing only
authorized accesses for users (or processes acting on behalf of users) which
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-CM-2
##Baseline Configuration
# NIST-800-53-CM-2
## Baseline Configuration
#### Description
'The organization develops, documents, and maintains under configuration
control, a current baseline configuration of the information system.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PCI-DSS-MAY-2015-1.1.1
##A formal process for approving and testing all network connections and changes to the firewall and router configurations
# PCI-DSS-MAY-2015-1.1.1
## A formal process for approving and testing all network connections and changes to the firewall and router configurations

No information found for the combination of standard PCI-DSS-MAY-2015 and control 1.1.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-1.1
##Establish and implement firewall and router configuration standards.
# PCI-DSS-MAY-2015-1.1
## Establish and implement firewall and router configuration standards.

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-2.1
##Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.
# PCI-DSS-MAY-2015-2.1
## Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NIST-800-53-AC-2
##Account Management
# NIST-800-53-AC-2
## Account Management

No information found for the combination of standard NIST-800-53 and control AC-2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NIST-800-53-AC-6
##Least Privilege
# NIST-800-53-AC-6
## Least Privilege

No information found for the combination of standard NIST-800-53 and control AC-6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#NIST-800-53-CM-2
##Baseline Configuration
# NIST-800-53-CM-2
## Baseline Configuration

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#PCI-DSS-MAY-2015-1.1.1
##A formal process for approving and testing all network connections and changes to the firewall and router configurations
# PCI-DSS-MAY-2015-1.1.1
## A formal process for approving and testing all network connections and changes to the firewall and router configurations

No information found for the combination of standard PCI-DSS-MAY-2015 and control 1.1.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-1.1
##Establish and implement firewall and router configuration standards.
# PCI-DSS-MAY-2015-1.1
## Establish and implement firewall and router configuration standards.

#### Amazon Elastic Compute Cloud

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#PCI-DSS-MAY-2015-2.1
##Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.
# PCI-DSS-MAY-2015-2.1
## Always change vendor-supplied defaults and remove or disable unnecessary default accounts before installing a system on the network.

#### Amazon Elastic Compute Cloud

Expand Down