Comments (3)
分かります、結構面倒だけどまあcommitを分ければdiffとか汚れてもいいやという気持ちで妥協している。
「テストを通すごとに必ず変わってしまう文字列」と「そうではない文字列」を判定するロジックを実装し、もし前者しか変わっていない場合はファイルに書き込まないというのが実装方針として良いと思います。
まあこれの判定ロジックが難しくて実装出来ないかもと思ってるんですが...
from autodoc.
了解。一応、問題意識を共有した
まあこれの判定ロジックが難しくて実装出来ないかもと思ってるんですが...
そうですよね。これが思いつけばpull req投げるんだけど……
from autodoc.
判定ロジックを完璧なものにするのは極めて難しいと思うのですが、ほぼ間違いなく毎回変わるものに関してはデフォルトで、そうでないものに関してはオプションで指定できるようにする(指定の方法はいいのが思いつきませんが…)というのはどうでしょうか。
ほぼ間違いなく毎回変わるもの、というのは、各モデルのIDと外部キー、それにタイムスタンプ(created_at
とupdated_at
)があるかと思います。ひとまずこれだけを除外するだけでもだいぶノイズは減るのではないでしょうか。
from autodoc.
Related Issues (13)
- Autodoc.configuration.template doesn't take String as value HOT 4
- Behavior of the case of generating a document from other than request-specs. HOT 3
- How to specify Required/Optional for params? HOT 2
- Seems not working with Rails Spring HOT 3
- Auto docs generator HOT 5
- travis-ci integration
- 同じコンテキストに複数のexampleがあると後勝ちでdescriptionが上書きされる HOT 1
- query stringにmultibyte文字が含まれていると失敗する
- Encoding::CompatibilityError: incompatible character encodings: ASCII-8BIT and UTF-8 HOT 6
- 配布されているパッケージに"broken symlink"が含まれている HOT 1
- bundle exec rake is failed with broken symlink HOT 4
- Rails7にあげるとwarningが出るようになった HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autodoc.