Skip to content

Commit f3e66ea

Browse files
p-datadogpivoanjo
authored
Add standard to development guide (DataDog#4242)
Co-authored-by: Oleg Pudeyev <[email protected]> Co-authored-by: Ivo Anjo <[email protected]>
1 parent 6fc4c8e commit f3e66ea

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

docs/DevelopmentGuide.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,31 @@ https://github.com/datadog/dd-apm-test-agent#readme
223223

224224
**Linting**
225225

226-
The trace library uses Rubocop to enforce [code style](https://github.com/bbatsov/ruby-style-guide) and quality. To check, run:
226+
Most of the library uses Rubocop to enforce [code style](https://github.com/bbatsov/ruby-style-guide) and quality. To check, run:
227227

228228
```
229229
$ bundle exec rake rubocop
230230
```
231231

232+
To change your code to the version that rubocop wants, run:
233+
234+
```
235+
$ bundle exec rake rubocop -A
236+
```
237+
238+
Profiling and Dynamic Instrumentation use [standard](https://github.com/standardrb/standard)
239+
instead of Rubocop. To check files with standard, run:
240+
241+
```
242+
$ bundle exec rake standard
243+
```
244+
245+
To change your code to the version that standard wants, run:
246+
247+
```
248+
$ bundle exec rake standard:fix
249+
```
250+
232251
## Appendix
233252

234253
### Writing new integrations

0 commit comments

Comments
 (0)